瀏覽代碼

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

tags/v0.9.3
Michael Brown 17 年之前
父節點
當前提交
d71b116f54
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      src/arch/i386/image/pxe_image.c

+ 2
- 1
src/arch/i386/image/pxe_image.c 查看文件

@@ -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…
取消
儲存