This change fixes the offset used when retrieving the iPXE stack pointer
after a COM32 binary returns. The iPXE stack pointer is saved at the top
of the available memory then the the top of the stack for the COM32
binary is set just below it. However seven more items are pushed on the
COM32 stack before the entry point is invoked so when the COM32 binary
returns the location of the iPXE stack pointer is 28 (and not 24) bytes
above the current stack pointer.
You can view, comment on, or merge this pull request online at:

  https://github.com/ipxe/ipxe/pull/88

-- Commit Summary --

  * [com32] Fix iPXE stack pointer retrieval after COM32 binary returns.

-- File Changes --

    M src/arch/x86/image/com32.c (2)

-- Patch Links --

https://github.com/ipxe/ipxe/pull/88.patch
https://github.com/ipxe/ipxe/pull/88.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/88
_______________________________________________
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel

Reply via email to