Skip to content

Commit

Permalink
Added missing __from_text16()s when passing pointers to PXE NBP.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Aug 9, 2006
1 parent 71754ad commit 843bcc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/arch/i386/interface/pxe/pxe_call.c
Expand Up @@ -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;
Expand Down

0 comments on commit 843bcc2

Please sign in to comment.