From d71b116f54de13983ea3310c7a58219089bd3f46 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 28 Jun 2007 23:37:49 +0100 Subject: [PATCH] Fix stack on return from PXE NBP so that we can return properly. --- src/arch/i386/image/pxe_image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arch/i386/image/pxe_image.c b/src/arch/i386/image/pxe_image.c index 8db34d5f..60711edc 100644 --- a/src/arch/i386/image/pxe_image.c +++ b/src/arch/i386/image/pxe_image.c @@ -63,7 +63,8 @@ static int pxe_exec ( struct image *image __unused ) { __asm__ __volatile__ ( REAL_CODE ( "pushw %%cx\n\t" "pushw %%ax\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 ), "=c" ( discard_c ) : "a" ( & __from_text16 ( ppxe ) ),