Ver código fonte

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

tags/v0.9.3
Michael Brown 17 anos atrás
pai
commit
d71b116f54
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      src/arch/i386/image/pxe_image.c

+ 2
- 1
src/arch/i386/image/pxe_image.c Ver arquivo

@@ -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 ) ),

Carregando…
Cancelar
Salvar