#10509: Stack is not aligned -----------------------------+---------------------------- Reporter: pulkomandy | Owner: axeld Type: enhancement | Status: new Priority: normal | Milestone: R1/alpha5 Component: System/Kernel | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 1 | Platform: x86 -----------------------------+---------------------------- Comment (by js): Oh, forgot to mention: Our debugger shows an %rsp that ends in 0x8 and the movdqa stores its value in (%rsp). When I look at the %rsp in _start, it ends in 0x0, according to the debugger. IMHO it should be the other way around: When you enter a function, the %rsp should end in 0x8. The first thing the prologue will do is pushing %rbq, so that after the push the alignment will end 0x0 and thus be correct. -- Ticket URL: <https://dev.haiku-os.org/ticket/10509#comment:14> Haiku <https://dev.haiku-os.org> Haiku - the operating system.