david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Populate preloaded_undi device when applicable.

This commit is contained in:
Michael Brown 2007-01-09 02:29:54 +00:00
parent 937289cdc8
commit 2436dac281
1 changed files with 9 additions and 0 deletions

View File

@ -691,6 +691,15 @@ run_etherboot:
/* Install Etherboot */
call install
#ifdef PXELOADER_KEEP_UNDI
/* Copy our undi_device structure to the preloaded_undi variable */
movw %bx, %es
movw $preloaded_undi, %di
movw $undi_device, %si
movw $undi_device_size, %cx
rep movsb
#endif
/* Jump to .text16 segment with %ds pointing to .data16*/
movw %bx, %ds
pushw %ax