david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Use internal real-mode stack from non-returnable prefixes

This commit is contained in:
Michael Brown 2007-06-28 21:56:14 +01:00
parent 00473f0952
commit 045fb24557
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,13 @@
.arch i386
/****************************************************************************
* Internal stack
****************************************************************************
*/
.section ".stack16"
.align 8
.globl _stack16
_stack16:
.space 4096
.globl _estack16
_estack16:

View File

@ -350,6 +350,10 @@ msg1end:
start_runtime:
call install
/* Set up real-mode stack */
movw %bx, %ss
movw $_estack16, %sp
/* Jump to .text16 segment */
pushw %ax
pushw $1f

View File

@ -139,6 +139,10 @@ exec_vector:
call install
/* Set up real-mode stack */
movw %bx, %ss
movw $_estack16, %sp
/* Jump to .text16 segment */
pushw %ax
pushw $1f