From e37d8da0748c0a77d47dd9a776b50fce8d3426e7 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Wed, 18 Aug 2021 17:41:03 +0800 Subject: [PATCH] riscv/common: add CURRENT_REGS declare in RV32 Signed-off-by: chao.an --- arch/risc-v/src/common/riscv_internal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/risc-v/src/common/riscv_internal.h b/arch/risc-v/src/common/riscv_internal.h index 80d89d1678..c11cfcc930 100644 --- a/arch/risc-v/src/common/riscv_internal.h +++ b/arch/risc-v/src/common/riscv_internal.h @@ -108,6 +108,7 @@ EXTERN volatile uint64_t *g_current_regs[1]; EXTERN uintptr_t g_idle_topstack; #else EXTERN volatile uint32_t *g_current_regs; +# define CURRENT_REGS (g_current_regs) EXTERN uint32_t g_idle_topstack; #endif