mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +03:00
Fix stack on return from PXE NBP so that we can return properly.
This commit is contained in:
@@ -63,7 +63,8 @@ static int pxe_exec ( struct image *image __unused ) {
|
|||||||
__asm__ __volatile__ ( REAL_CODE ( "pushw %%cx\n\t"
|
__asm__ __volatile__ ( REAL_CODE ( "pushw %%cx\n\t"
|
||||||
"pushw %%ax\n\t"
|
"pushw %%ax\n\t"
|
||||||
"movw %%cx, %%es\n\t"
|
"movw %%cx, %%es\n\t"
|
||||||
"lcall $0, $0x7c00\n\t" )
|
"lcall $0, $0x7c00\n\t"
|
||||||
|
"addw $4, %%sp\n\t" )
|
||||||
: "=a" ( rc ), "=b" ( discard_b ),
|
: "=a" ( rc ), "=b" ( discard_b ),
|
||||||
"=c" ( discard_c )
|
"=c" ( discard_c )
|
||||||
: "a" ( & __from_text16 ( ppxe ) ),
|
: "a" ( & __from_text16 ( ppxe ) ),
|
||||||
|
|||||||
Reference in New Issue
Block a user