Skip to content

Commit

Permalink
Populate preloaded_undi device when applicable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Jan 9, 2007
1 parent 937289c commit 2436dac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/arch/i386/prefix/pxeprefix.S
Expand Up @@ -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
Expand Down

0 comments on commit 2436dac

Please sign in to comment.