summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2006-08-09 02:39:21 +0200
committerMichael Brown2006-08-09 02:39:21 +0200
commit843bcc291d1257cf2f25d4ecf7a71259e979391c (patch)
tree794b95ecad39d0f5c1a6b6d9db4fc9d32618c176 /src
parentAllow linking by converting functions to stubs (diff)
downloadipxe-843bcc291d1257cf2f25d4ecf7a71259e979391c.tar.gz
ipxe-843bcc291d1257cf2f25d4ecf7a71259e979391c.tar.xz
ipxe-843bcc291d1257cf2f25d4ecf7a71259e979391c.zip
Added missing __from_text16()s when passing pointers to PXE NBP.
Diffstat (limited to 'src')
-rw-r--r--src/arch/i386/interface/pxe/pxe_call.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/i386/interface/pxe/pxe_call.c b/src/arch/i386/interface/pxe/pxe_call.c
index 0d2969932..df32dd7d9 100644
--- a/src/arch/i386/interface/pxe/pxe_call.c
+++ b/src/arch/i386/interface/pxe/pxe_call.c
@@ -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;