]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Populate preloaded_undi device when applicable.
authorMichael Brown <mcb30@etherboot.org>
Tue, 9 Jan 2007 02:29:54 +0000 (02:29 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 9 Jan 2007 02:29:54 +0000 (02:29 +0000)
src/arch/i386/prefix/pxeprefix.S

index 8b485e48f8983d590107e49c5484d7c675224ae6..62b9348429822329e29c14d74ca3244c4d25545a 100644 (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