fix gcc compiling error

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1265 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2011-01-30 01:55:24 +00:00
parent 981d15812b
commit 6bcf028cc2
1 changed files with 41 additions and 41 deletions

View File

@ -146,9 +146,9 @@ rt_hw_context_switch_to:
/* set the PendSV exception priority */ /* set the PendSV exception priority */
LDR r0, =NVIC_SYSPRI2 LDR r0, =NVIC_SYSPRI2
LDR r1, =NVIC_PENDSV_PRI LDR r1, =NVIC_PENDSV_PRI
LDR.W R2, [r0,#0x00] ; read LDR.W R2, [r0,#0x00] /* read */
ORR r1,r1,r2 ; modify ORR r1,r1,r2 /* modify */
STR r1, [r0] ; write-bak STR r1, [r0] /* write-back */
LDR r0, =NVIC_INT_CTRL /* trigger the PendSV exception (causes context switch) */ LDR r0, =NVIC_INT_CTRL /* trigger the PendSV exception (causes context switch) */
LDR r1, =NVIC_PENDSVSET LDR r1, =NVIC_PENDSVSET