#2318 closed defect (fixed)

Wrong alignment of ARM exception frame

Reported by: Daniel Krüger Owned by: Sebastian Huber
Priority: normal Milestone: 4.11.1
Component: score Version: 4.10
Severity: normal Keywords: score ARM
Cc: Blocked By:
Blocking:

Description

The stack pointer must be aligned on 8 byte boundary on ARM, so the size of the exception frame must be a multiple of 8 bytes. Otherwise we might/will get an alignment fault, when executing code in the data abort handler for example.

See the attached patch.

Attachments (1)

0001-Align-ARM-exception-frame-to-8-bytes.patch (1.2 KB) - added by Daniel Krüger on Apr 9, 2015 at 2:53:04 PM.

Download all attachments as: .zip

Change History (4)

comment:1 Changed on Apr 9, 2015 at 2:53:54 PM by Daniel Krüger

Keywords: score ARM added

comment:2 Changed on Apr 9, 2015 at 2:56:46 PM by Gedare Bloom

Owner: set to Sebastian Huber
Status: newassigned

comment:3 Changed on Apr 10, 2015 at 6:17:08 AM by Daniel Krueger <daniel.krueger@…>

Resolution: fixed
Status: assignedclosed

In a6c5a7e0b68ea9b9eed98997b85fe49434eeb1c8/rtems:

arm: Align ARM exception frame to 8 bytes

The stack pointer must be aligned on 8 byte boundary on ARM, so the size of
the exception frame must be a multiple of 8 bytes. Otherwise we might/will
get an alignment fault, when executing code in the data abort handler for
example.

Close #2318.

Signed-off-by: Daniel Krueger <daniel.krueger@…>

Note: See TracTickets for help on using tickets.