diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-10 16:41:07 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-03-06 09:37:59 +0100 |
commit | 104a6a7ccfb7928ca5dc28c8cbe0ea231ffc45ee (patch) | |
tree | 9775e9211293396220d225d7a4746c3d06a837ec /arch/arm/cpu/exceptions.S | |
parent | cb1bd905dcacd8abd2703f6ce61fc09db8e475a4 (diff) | |
download | barebox-104a6a7ccfb7928ca5dc28c8cbe0ea231ffc45ee.tar.gz barebox-104a6a7ccfb7928ca5dc28c8cbe0ea231ffc45ee.tar.xz |
ARM: Allow to compile in thumb-2 mode
This shrinks the resulting binary size by ~25%. Exceptions
are still handled in arm mode, so we have to explicitely
put .arm directives into the exception code. Thumb-2 mode
has been tested on i.MX51 Babbage board.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu/exceptions.S')
-rw-r--r-- | arch/arm/cpu/exceptions.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/exceptions.S b/arch/arm/cpu/exceptions.S index 6f35d408f4..c08537a405 100644 --- a/arch/arm/cpu/exceptions.S +++ b/arch/arm/cpu/exceptions.S @@ -106,6 +106,7 @@ _STACK_START: * exception handlers */ .section ".text","ax" + .arm .align 5 .globl undefined_instruction |