board: nsim: remove wrong definition

Signed-off-by: Jingru <jingru@synopsys.com>
This commit is contained in:
Jingru
2020-03-30 13:07:56 +08:00
parent 733f22d1b9
commit a0eca8f6eb
3 changed files with 29 additions and 9 deletions

View File

@@ -11,7 +11,6 @@
.global k_curr_task
.global k_next_task
.global g_exc_nest_count
.global g_context_switch_reqflg
.global tos_knl_irq_enter
@@ -142,9 +141,9 @@ exc_entry_cpu:
mov blink, sp
mov r3, sp /* as exception handler's para(p_excinfo) */
ld r0, [g_exc_nest_count]
ld r0, [k_irq_nest_cnt]
add r1, r0, 1
st r1, [g_exc_nest_count]
st r1, [k_irq_nest_cnt]
brne r0, 0, exc_handler_1
/* change to exception stack if interrupt happened in task context */
mov sp, _e_stack
@@ -166,7 +165,7 @@ exc_handler_1:
/* interrupts are not allowed */
ret_exc:
POP sp
mov r1, g_exc_nest_count
mov r1, k_irq_nest_cnt
ld r0, [r1]
sub r0, r0, 1
st r0, [r1]
@@ -233,9 +232,9 @@ exc_entry_int:
mov blink, sp
clri /* disable interrupt */
ld r3, [g_exc_nest_count]
ld r3, [k_irq_nest_cnt]
add r2, r3, 1
st r2, [g_exc_nest_count]
st r2, [k_irq_nest_cnt]
seti /* enable higher priority interrupt */
brne r3, 0, irq_handler_1
@@ -279,7 +278,7 @@ ret_int:
clri /* disable interrupt */
POP r3 /* irq priority */
POP sp
mov r1, g_exc_nest_count
mov r1, k_irq_nest_cnt
ld r0, [r1]
sub r0, r0, 1
st r0, [r1]

View File

@@ -200,7 +200,6 @@ __KNL__ void cpu_standby_mode_enter(void)
#endif /* TOS_CFG_PWR_MGR_EN */
uint32_t g_context_switch_reqflg;
uint32_t g_exc_nest_count;
extern void start_r(void);