Sfoglia il codice sorgente

Added missing __from_text16()s when passing pointers to PXE NBP.

tags/v0.9.3
Michael Brown 18 anni fa
parent
commit
843bcc291d
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3
    1
      src/arch/i386/interface/pxe/pxe_call.c

+ 3
- 1
src/arch/i386/interface/pxe/pxe_call.c Vedi File

@@ -391,7 +391,9 @@ int pxe_boot ( void ) {
391 391
 					   "lcall $0, $0x7c00\n\t" )
392 392
 			       : "=a" ( rc ), "=b" ( discard_b ),
393 393
 			         "=c" ( discard_c )
394
-			       :  "a" ( &pxe ), "b" ( &pxenv ), "c" ( rm_cs )
394
+			       :  "a" ( & __from_text16 ( pxe ) ),
395
+			          "b" ( & __from_text16 ( pxenv ) ),
396
+			          "c" ( rm_cs )
395 397
 			       : "edx", "esi", "edi", "ebp", "memory" );
396 398
 
397 399
 	return rc;

Loading…
Annulla
Salva