Added missing __from_text16()s when passing pointers to PXE NBP.
authorMichael Brown <mcb30@etherboot.org>
Wed, 9 Aug 2006 00:39:21 +0000 (00:39 +0000)
committerMichael Brown <mcb30@etherboot.org>
Wed, 9 Aug 2006 00:39:21 +0000 (00:39 +0000)
src/arch/i386/interface/pxe/pxe_call.c

index 0d29699..df32dd7 100644 (file)
@@ -391,7 +391,9 @@ int pxe_boot ( void ) {
                                           "lcall $0, $0x7c00\n\t" )
                               : "=a" ( rc ), "=b" ( discard_b ),
                                 "=c" ( discard_c )
-                              :  "a" ( &pxe ), "b" ( &pxenv ), "c" ( rm_cs )
+                              :  "a" ( & __from_text16 ( pxe ) ),
+                                 "b" ( & __from_text16 ( pxenv ) ),
+                                 "c" ( rm_cs )
                               : "edx", "esi", "edi", "ebp", "memory" );
 
        return rc;