Open andreiw opened 1 year ago
https://github.com/xsaco07/Frogger-Uefi-Boot/blob/b4b89adf227be1cb9565bd0750732ed7e246053f/uefi.inc#L349
Just FYI, but ANDing ESP you are setting the high bits of RSP to 0. If RSP was above 4GiB, then this is going to randomly corrupt things.
- and esp, 0FFFFFFF0h + and rsp, 0ffffffffFFFFFFF0h
https://github.com/xsaco07/Frogger-Uefi-Boot/blob/b4b89adf227be1cb9565bd0750732ed7e246053f/uefi.inc#L349
Just FYI, but ANDing ESP you are setting the high bits of RSP to 0. If RSP was above 4GiB, then this is going to randomly corrupt things.