[haiku-bugs] [Haiku] #10509: Stack is not aligned

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Thu, 06 Feb 2014 11:58:21 -0000

#10509: Stack is not aligned
---------------------------+------------------------------
 Reporter:  pulkomandy     |        Owner:  axeld
     Type:  enhancement    |       Status:  new
 Priority:  normal         |    Milestone:  Unscheduled
Component:  System/Kernel  |      Version:  R1/Development
 Keywords:                 |   Blocked By:
 Blocking:                 |  Has a Patch:  0
 Platform:  x86            |
---------------------------+------------------------------
 Our stack is aligned only on 8-byte. GCC sometimes generates code that
 assumes a 16-byte alignment, with instructions such as MOVDQA or MOVAPS.
 This leads to a "General Protection Fault" crash.

 This can be worked around with -mtackrealign, but this makes the code
 slower. Instead, we should fix all places where our code doesn't guarantee
 stack alignment.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10509>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: