Browse Source

[nbiprefix] Set up real-mode stack before jumping to .text16

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
c7694acb51
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/arch/i386/prefix/nbiprefix.S

+ 4
- 0
src/arch/i386/prefix/nbiprefix.S View File

54
 	/* Install iPXE */
54
 	/* Install iPXE */
55
 	call	install
55
 	call	install
56
 
56
 
57
+	/* Set up real-mode stack */
58
+	movw	%bx, %ss
59
+	movw	$_estack16, %sp
60
+
57
 	/* Jump to .text16 segment */
61
 	/* Jump to .text16 segment */
58
 	pushw	%ax
62
 	pushw	%ax
59
 	pushw	$1f
63
 	pushw	$1f

Loading…
Cancel
Save