提交 0a3eeb9f 编写于 作者: wuyangyong's avatar wuyangyong

fix context bug(flag not clean)

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1695 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 446db862
...@@ -93,17 +93,15 @@ _reswitch: ...@@ -93,17 +93,15 @@ _reswitch:
.globl CoreSW0Handler .globl CoreSW0Handler
CoreSW0Handler: CoreSW0Handler:
SAVE_ALL SAVE_ALL
/* mCS0ClearIntFlag(); */ /* mCS0ClearIntFlag(); */
la t0, IFS0CLR /* t0 = IFS0CLR */ la t0, IFS0CLR /* t0 = IFS0CLR */
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 */
/* tol rd2 */ la k0, rt_thread_switch_interrput_flag
lui v1,0xbf88 sw zero, 0(k0) /* clear flag */
addiu v0,zero,(1<<0)
sw v0,24812(v1)
/* /*
* switch to the new thread * switch to the new thread
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册