[RTEMS Project] #4579: Stack is not properly aligned during interrupt processing

RTEMS trac trac at rtems.org
Mon Jan 17 07:18:13 UTC 2022


#4579: Stack is not properly aligned during interrupt processing
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  defect           |      Status:  assigned
 Priority:  normal           |   Milestone:  6.1
Component:  arch/arm         |     Version:  4.11
 Severity:  normal           |  Resolution:
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+------------------------------

Comment (by Sebastian Huber <sebastian.huber@…>):

 In [changeset:"84ba194477bdf4959ad71f8ea3760f643e15ce78/rtems"
 84ba194/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="84ba194477bdf4959ad71f8ea3760f643e15ce78"
 arm: Fix stack alignment during interrupt handling

 On a public interface, the stack pointer must be aligned on an 8-byte
 boundary.  However, it may temporarily be only aligned on a 4-byte
 boundary.  The interrupt handling code must ensure that the stack
 pointer is properly aligned before it calls a function.  See also:

 https://developer.arm.com/documentation/den0013/d/Interrupt-Handling
 /External-interrupt-requests/Nested-interrupt-handling

 Update #4579.
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4579#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list