fixes rve settings
This commit is contained in:
parent
4d25972e4d
commit
3389875643
2
env/common-gcc.mk
vendored
2
env/common-gcc.mk
vendored
@ -2,6 +2,7 @@ ifndef _MK_COMMON
|
||||
_MK_COMMON := # defined
|
||||
|
||||
TL_TARGET?=all
|
||||
BOARD?=iss
|
||||
|
||||
.PHONY: $(TL_TARGET)
|
||||
$(TL_TARGET): $(TARGET)
|
||||
@ -12,7 +13,6 @@ PLATFORM_DIR = $(ENV_DIR)/$(BOARD)
|
||||
|
||||
include $(BSP_BASE)/libwrap/libwrap.mk
|
||||
|
||||
BOARD?=iss
|
||||
|
||||
ASM_SRCS += $(ENV_DIR)/start.S $(ENV_DIR)/entry.S
|
||||
C_SRCS += $(PLATFORM_DIR)/init.c
|
||||
|
4
env/entry.S
vendored
4
env/entry.S
vendored
@ -10,7 +10,7 @@
|
||||
.align 2
|
||||
.global trap_entry
|
||||
trap_entry:
|
||||
#ifndef __riscv_abi_rve
|
||||
#ifdef __riscv_abi_rve
|
||||
addi sp, sp, -8*REGBYTES
|
||||
STORE x1, 1*REGBYTES(sp) // ra
|
||||
STORE x5, 2*REGBYTES(sp) // t0
|
||||
@ -43,7 +43,7 @@ trap_entry:
|
||||
mv a2, sp
|
||||
call handle_trap
|
||||
csrw mepc, a0
|
||||
#ifndef __riscv_abi_rve
|
||||
#ifdef __riscv_abi_rve
|
||||
addi sp, sp, -8*REGBYTES
|
||||
LOAD x1, 1*REGBYTES(sp) // ra
|
||||
LOAD x5, 2*REGBYTES(sp) // t0
|
||||
|
Loading…
Reference in New Issue
Block a user