Browse Source

Populate preloaded_undi device when applicable.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
2436dac281
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      src/arch/i386/prefix/pxeprefix.S

+ 9
- 0
src/arch/i386/prefix/pxeprefix.S View File

691
 	/* Install Etherboot */
691
 	/* Install Etherboot */
692
 	call	install
692
 	call	install
693
 
693
 
694
+#ifdef PXELOADER_KEEP_UNDI
695
+	/* Copy our undi_device structure to the preloaded_undi variable */
696
+	movw	%bx, %es
697
+	movw	$preloaded_undi, %di
698
+	movw	$undi_device, %si
699
+	movw	$undi_device_size, %cx
700
+	rep movsb
701
+#endif
702
+
694
 	/* Jump to .text16 segment with %ds pointing to .data16*/
703
 	/* Jump to .text16 segment with %ds pointing to .data16*/
695
 	movw	%bx, %ds
704
 	movw	%bx, %ds
696
 	pushw	%ax
705
 	pushw	%ax

Loading…
Cancel
Save