Bläddra i källkod

Populate preloaded_undi device when applicable.

tags/v0.9.3
Michael Brown 18 år sedan
förälder
incheckning
2436dac281
1 ändrade filer med 9 tillägg och 0 borttagningar
  1. 9
    0
      src/arch/i386/prefix/pxeprefix.S

+ 9
- 0
src/arch/i386/prefix/pxeprefix.S Visa fil

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

Laddar…
Avbryt
Spara