From 6d65b3be103abb8a9d2ecae8f4043a9bca7e46bd Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Tue, 6 Aug 2013 10:03:44 +0000 Subject: [PATCH] We no longer need to align the stack before calling swi_handler as it is already aligned correctly in the PUSHFRAME macro. --- sys/arm/arm/exception.S | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/arm/arm/exception.S b/sys/arm/arm/exception.S index 171211a9b0c..55a4f64f403 100644 --- a/sys/arm/arm/exception.S +++ b/sys/arm/arm/exception.S @@ -83,10 +83,7 @@ ASENTRY_NP(swi_entry) PUSHFRAME mov r0, sp /* Pass the frame to any function */ - mov r6, sp /* Backup the stack pointer */ - bic sp, sp, #7 /* Align the stack pointer */ bl _C_LABEL(swi_handler) /* It's a SWI ! */ - mov sp, r6 /* Restore the stack */ DO_AST PULLFRAME