|
@@ -55,17 +55,17 @@ rt_hw_context_switch:
|
|
/*
|
|
/*
|
|
* void rt_hw_context_switch_interrupt(rt_uint32 from, rt_uint32 to)/*
|
|
* void rt_hw_context_switch_interrupt(rt_uint32 from, rt_uint32 to)/*
|
|
*/
|
|
*/
|
|
- .globl rt_thread_switch_interrput_flag
|
|
|
|
|
|
+ .globl rt_thread_switch_interrupt_flag
|
|
.globl rt_interrupt_from_thread
|
|
.globl rt_interrupt_from_thread
|
|
.globl rt_interrupt_to_thread
|
|
.globl rt_interrupt_to_thread
|
|
.globl rt_hw_context_switch_interrupt
|
|
.globl rt_hw_context_switch_interrupt
|
|
rt_hw_context_switch_interrupt:
|
|
rt_hw_context_switch_interrupt:
|
|
- la t0, rt_thread_switch_interrput_flag
|
|
|
|
|
|
+ la t0, rt_thread_switch_interrupt_flag
|
|
lw t1, 0(t0)
|
|
lw t1, 0(t0)
|
|
nop
|
|
nop
|
|
bnez t1, _reswitch
|
|
bnez t1, _reswitch
|
|
nop
|
|
nop
|
|
- li t1, 0x01 /* set rt_thread_switch_interrput_flag to 1 */
|
|
|
|
|
|
+ li t1, 0x01 /* set rt_thread_switch_interrupt_flag to 1 */
|
|
sw t1, 0(t0)
|
|
sw t1, 0(t0)
|
|
la t0, rt_interrupt_from_thread /* set rt_interrupt_from_thread */
|
|
la t0, rt_interrupt_from_thread /* set rt_interrupt_from_thread */
|
|
sw a0, 0(t0)
|
|
sw a0, 0(t0)
|
|
@@ -100,7 +100,7 @@ CoreSW0Handler:
|
|
addiu t1,zero,0x02 /* t1 = (1<<2) */
|
|
addiu t1,zero,0x02 /* t1 = (1<<2) */
|
|
sw t1, 0(t0) /* IFS0CLR = t1 */
|
|
sw t1, 0(t0) /* IFS0CLR = t1 */
|
|
|
|
|
|
- la k0, rt_thread_switch_interrput_flag
|
|
|
|
|
|
+ la k0, rt_thread_switch_interrupt_flag
|
|
sw zero, 0(k0) /* clear flag */
|
|
sw zero, 0(k0) /* clear flag */
|
|
|
|
|
|
/*
|
|
/*
|