Browse Source

Fix stack on return from PXE NBP so that we can return properly.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
d71b116f54
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/arch/i386/image/pxe_image.c

+ 2
- 1
src/arch/i386/image/pxe_image.c View File

@@ -63,7 +63,8 @@ static int pxe_exec ( struct image *image __unused ) {
63 63
 	__asm__ __volatile__ ( REAL_CODE ( "pushw %%cx\n\t"
64 64
 					   "pushw %%ax\n\t"
65 65
 					   "movw %%cx, %%es\n\t"
66
-					   "lcall $0, $0x7c00\n\t" )
66
+					   "lcall $0, $0x7c00\n\t"
67
+					   "addw $4, %%sp\n\t" )
67 68
 			       : "=a" ( rc ), "=b" ( discard_b ),
68 69
 			         "=c" ( discard_c )
69 70
 			       :  "a" ( & __from_text16 ( ppxe ) ),

Loading…
Cancel
Save