From 7a265f159a713b06f4d6a42fe3514653a5d263e6 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 13 Oct 2018 11:45:39 -0400 Subject: [PATCH] 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 --- src/generic/armcm_irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/armcm_irq.c b/src/generic/armcm_irq.c index 6421e049f..5c186995d 100644 --- a/src/generic/armcm_irq.c +++ b/src/generic/armcm_irq.c @@ -1,6 +1,6 @@ // Definitions for irq enable/disable on ARM Cortex-M processors // -// Copyright (C) 2017 Kevin O'Connor +// Copyright (C) 2017-2018 Kevin O'Connor // // 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"); }