From e91e82d166d7a5aabd402e3ea98c67495428b51a Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Fri, 29 Oct 2010 05:59:11 +0000 Subject: [PATCH] remove usr mode stack setting. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1033 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- libcpu/arm/AT91SAM7S/start_rvds.S | 7 ++++--- 1 file 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