armcm_irq: Fix jump target alignment
The jump target needs to be 4 byte aligned (not 2^4 bytes). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
0225d17343
commit
7a265f159a
|
@ -1,6 +1,6 @@
|
|||
// Definitions for irq enable/disable on ARM Cortex-M processors
|
||||
//
|
||||
// Copyright (C) 2017 Kevin O'Connor <kevin@koconnor.net>
|
||||
// Copyright (C) 2017-2018 Kevin O'Connor <kevin@koconnor.net>
|
||||
//
|
||||
// This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
|
||||
|
@ -63,7 +63,7 @@ clear_active_irq(void)
|
|||
" push { %0 }\n"
|
||||
" push { r0, r1, r2, r3, r4, lr }\n"
|
||||
" bx %2\n"
|
||||
".align 4\n"
|
||||
".balign 4\n"
|
||||
"1:\n"
|
||||
: "=&r"(temp) : "r"(psr), "r"(0xfffffff9) : "r12", "cc");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue