riscv/common: add CURRENT_REGS declare in RV32

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2021-08-18 17:41:03 +08:00 committed by Xiang Xiao
parent ef4ba8cb6c
commit e37d8da074

View File

@ -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