Yes. The stack must be 16-byte aligned before a function call. The call pushes an 8-byte return address, so every function will start with an 8-byte misaligned stack.devc1 wrote:the stack pointer (RSP) wasn't 16 bytes aligned, I tried to add 8 bytes on the stack address (in KrnlEntry) and it worked.
So what causes this stack misalignment ? is it also the ABI ?
Enabling compiler optimizations ruins the kernel
-
- Member
- Posts: 5563
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Enabling compiler optimizations ruins the kernel
Re: Enabling compiler optimizations ruins the kernel
Thank you so much : )