Browse Source

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

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
843bcc291d
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/arch/i386/interface/pxe/pxe_call.c

+ 3
- 1
src/arch/i386/interface/pxe/pxe_call.c View 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…
Cancel
Save