summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-10-29 05:59:11 +0000
committerbernard.xiong <[email protected]>2010-10-29 05:59:11 +0000
commite91e82d166d7a5aabd402e3ea98c67495428b51a (patch)
treee1dc79d77c92bcceadef0797551f8d8a95b367a1 /libcpu
parent5f85cb2f782c8c295cd2c41ff078fef99b5b5109 (diff)
remove usr mode stack setting.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1033 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/arm/AT91SAM7S/start_rvds.S7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcpu/arm/AT91SAM7S/start_rvds.S b/libcpu/arm/AT91SAM7S/start_rvds.S
index 1dd4dd61a0..64d65b6fbf 100644
--- a/libcpu/arm/AT91SAM7S/start_rvds.S
+++ b/libcpu/arm/AT91SAM7S/start_rvds.S
@@ -393,8 +393,9 @@ MC_RCR EQU 0x00 ; MC_RCR Offset
ELSE
- MOV SP, R0
- SUB SL, SP, #USR_Stack_Size
+ ; No usr mode stack here.
+ ;MOV SP, R0
+ ;SUB SL, SP, #USR_Stack_Size
ENDIF
@@ -489,7 +490,7 @@ rt_hw_context_switch_interrupt_do PROC
__user_initial_stackheap
LDR R0, = Heap_Mem
- LDR R1, =(Stack_Mem + USR_Stack_Size)
+ LDR R1, = (Stack_Mem + IRQ_Stack_Size)
LDR R2, = (Heap_Mem + Heap_Size)
LDR R3, = Stack_Mem
BX LR