mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
ARM: allow 16-bit instructions in ALT_UP()
Allow ALT_UP() to cope with a 16-bit Thumb instruction by automatically inserting a following nop instruction. This allows us to care less about getting the assembler to emit a 32-bit thumb instruction. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
38e42f1216
commit
89c6bc5884
1 changed files with 3 additions and 0 deletions
|
@ -237,6 +237,9 @@
|
|||
.pushsection ".alt.smp.init", "a" ;\
|
||||
.long 9998b ;\
|
||||
9997: instr ;\
|
||||
.if . - 9997b == 2 ;\
|
||||
nop ;\
|
||||
.endif ;\
|
||||
.if . - 9997b != 4 ;\
|
||||
.error "ALT_UP() content must assemble to exactly 4 bytes";\
|
||||
.endif ;\
|
||||
|
|
Loading…
Reference in a new issue