From 0b3dcb3b37eff6a8bbf07d0e29dfaa85c3a51bff Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 3 Sep 2019 10:11:21 +0200 Subject: arm: Fix default exception handler Keep the stack pointer properly 8-byte aligned. --- cpukit/score/cpu/arm/armv4-exception-default.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpukit/score/cpu/arm/armv4-exception-default.S b/cpukit/score/cpu/arm/armv4-exception-default.S index efa8d13989..848ffe40e6 100644 --- a/cpukit/score/cpu/arm/armv4-exception-default.S +++ b/cpukit/score/cpu/arm/armv4-exception-default.S @@ -137,8 +137,8 @@ save_more_context: beq 1f /* Save VFP context */ - sub sp, #(ARM_VFP_CONTEXT_SIZE + 4) - add r4, sp, #4 + sub sp, #(ARM_VFP_CONTEXT_SIZE + 8) + add r4, sp, #8 bic r4, r4, #7 str r4, [r3] vmrs r2, FPSCR -- cgit v1.2.3