Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH 6/11] ARM: fix typo in softint_switch



ARM: fix typo in softint_switch

SP needs to be updated when cleaning the stackframe.
---
 sys/arch/arm/arm32/cpuswitch.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sys/arch/arm/arm32/cpuswitch.S b/sys/arch/arm/arm32/cpuswitch.S
index 9285ebd..028dda4 100644
--- a/sys/arch/arm/arm32/cpuswitch.S
+++ b/sys/arch/arm/arm32/cpuswitch.S
@@ -446,7 +446,7 @@ ENTRY_NP(softint_switch)
         * Grab the registers that got pushed at the start and return.
         */
        ldmfd   sp!, {r4-r7, ip, lr}    /* eat switch frame */
-       ldmfd   sp, {r4, r6, r7, pc}    /* pop stack and return */
+       ldmfd   sp!, {r4, r6, r7, pc}   /* pop stack and return */

 END(softint_switch)

-- 
1.5.4.2


Home | Main Index | Thread Index | Old Index