]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[comboot] Fix stack pointer retrieval after COM32 binary returns
authorDentcho Ludmilov Bankov <dbankov@vmware.com>
Fri, 1 Feb 2019 22:20:21 +0000 (00:20 +0200)
committerMichael Brown <mcb30@ipxe.org>
Mon, 27 Jul 2020 14:41:46 +0000 (15:41 +0100)
commit70b1a641c543cc6d87965df93d1b48eed4e15297
treeea1299c3937eea1c6445e797d0f8c5ff76b70ab8
parentb76052335788d0ad2c4b0bded116c3b02dd4bbc2
[comboot] Fix stack pointer retrieval after COM32 binary returns

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.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/image/com32.c