diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 07:32:52 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 07:32:52 -0400 |
commit | 88987ef91b99cf99bc5d167caeb31d4958fbf931 (patch) | |
tree | 95557c2fe408ad98d9547025ae98b0d0c1377aa2 /arch/arm/kernel/entry-armv.S | |
parent | 4be3bd7849165e7efa6b0b35a23d6a3598d97465 (diff) |
Thumb-2: Add some .align statements to the .S files
Since the Thumb-2 instructions can be 16-bit wide, data in the .text
sections may not be aligned to a 32-bit word and this leads to unaligned
exceptions. This patch does not affect the ARM code generation.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/kernel/entry-armv.S')
-rw-r--r-- | arch/arm/kernel/entry-armv.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S index fc8af43c5000..0befd1cabf45 100644 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S | |||
@@ -1065,6 +1065,10 @@ vector_\name: | |||
1065 | ldr lr, [pc, lr, lsl #2] | 1065 | ldr lr, [pc, lr, lsl #2] |
1066 | movs pc, lr @ branch to handler in SVC mode | 1066 | movs pc, lr @ branch to handler in SVC mode |
1067 | ENDPROC(vector_\name) | 1067 | ENDPROC(vector_\name) |
1068 | |||
1069 | .align 2 | ||
1070 | @ handler addresses follow this label | ||
1071 | 1: | ||
1068 | .endm | 1072 | .endm |
1069 | 1073 | ||
1070 | .globl __stubs_start | 1074 | .globl __stubs_start |