organize risc-v code for spike and bumblebee

This commit is contained in:
acevest
2019-09-25 21:53:27 +08:00
parent 379427f879
commit b1b2d1eabc
15 changed files with 129 additions and 30 deletions

View File

@@ -41,6 +41,7 @@ KERNEL_SRC = \
ARCH_SRC = \
${wildcard $(TOP_DIR)/arch/risc-v/rv32i/gcc/*.c} \
${wildcard $(TOP_DIR)/arch/risc-v/spike/gcc/*.c} \
${wildcard $(TOP_DIR)/arch/risc-v/common/*.c}
C_SOURCES += $(ARCH_SRC)
@@ -108,6 +109,7 @@ KERNEL_INC = \
-I $(TOP_DIR)/kernel/hal/include \
-I $(TOP_DIR)/arch/risc-v/common/include \
-I $(TOP_DIR)/arch/risc-v/rv32i/gcc \
-I $(TOP_DIR)/arch/risc-v/spike/gcc \
-I $(TOP_DIR)/platform/vendor_bsp/gd/GD32VF103_Firmware_Library/RISCV/drivers \
-I $(TOP_DIR)/board/QEMU_Spike/TOS-CONFIG
C_INCLUDES += $(KERNEL_INC)

View File

@@ -6,9 +6,6 @@
.globl _start
.type _start,@function
_start:
lui s0, 0x20000
lw a0, 148(s0)
csrc mstatus, MSTATUS_MIE
csrw mie, 0