[ipxe-devel] [ipxe/ipxe] [com32] Fix iPXE stack pointer retrieval after COM32 binary returns. (#88)

dbankov-vmware notifications at github.com
Thu Feb 7 08:29:55 UTC 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20190207/c8da84e8/attachment.htm>


More information about the ipxe-devel mailing list