From: Michael Brown Date: Tue, 9 Jan 2007 02:29:54 +0000 (+0000) Subject: Populate preloaded_undi device when applicable. X-Git-Tag: mcb-xen-demo~185 X-Git-Url: http://git.etherboot.org/people/xl0/gpxe.git/commitdiff_plain/2436dac281caa1549a297938e7938e2faf35c2fe Populate preloaded_undi device when applicable. --- diff --git a/src/arch/i386/prefix/pxeprefix.S b/src/arch/i386/prefix/pxeprefix.S index 8b485e48..62b93484 100644 --- a/src/arch/i386/prefix/pxeprefix.S +++ b/src/arch/i386/prefix/pxeprefix.S @@ -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