From fc2e122ee291ee4240305e9f795e4eb274c80705 Mon Sep 17 00:00:00 2001 From: Yaochenger <1516081466@qq.com> Date: Thu, 2 Mar 2023 14:29:10 +0800 Subject: [libcpu/risc-v]迁移libcpu/risc-v/hpmicro中的文件至bsp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libcpu/risc-v/hpmicro/SConscript | 18 ------------------ libcpu/risc-v/hpmicro/trap_gcc.S | 12 ------------ 2 files changed, 30 deletions(-) delete mode 100644 libcpu/risc-v/hpmicro/SConscript delete mode 100644 libcpu/risc-v/hpmicro/trap_gcc.S (limited to 'libcpu') diff --git a/libcpu/risc-v/hpmicro/SConscript b/libcpu/risc-v/hpmicro/SConscript deleted file mode 100644 index 7a7620168b..0000000000 --- a/libcpu/risc-v/hpmicro/SConscript +++ /dev/null @@ -1,18 +0,0 @@ -# RT-Thread building script for component - -from building import * - -Import('rtconfig') - -cwd = GetCurrentDir() -src = Glob('*.c') + Glob('*.cpp') - -if rtconfig.PLATFORM == 'gcc': - src += Glob('*_gcc.S') - -CPPPATH = [cwd] -ASFLAGS = ' -I ' + cwd - -group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS) - -Return('group') diff --git a/libcpu/risc-v/hpmicro/trap_gcc.S b/libcpu/risc-v/hpmicro/trap_gcc.S deleted file mode 100644 index 40de7b31c5..0000000000 --- a/libcpu/risc-v/hpmicro/trap_gcc.S +++ /dev/null @@ -1,12 +0,0 @@ -#include "cpuport.h" - - .globl rt_hw_do_after_save_above - .type rt_hw_do_after_save_above,@function -rt_hw_do_after_save_above: - addi sp, sp, -4 - STORE ra, 0 * REGBYTES(sp) - csrr a0, mscratch - call trap_entry - LOAD ra, 0 * REGBYTES(sp) - addi sp, sp, 4 - ret \ No newline at end of file -- cgit v1.3.1