mirror of https://github.com/ipxe/ipxe.git
Use internal real-mode stack from non-returnable prefixes
parent
00473f0952
commit
045fb24557
|
@ -0,0 +1,13 @@
|
||||||
|
.arch i386
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Internal stack
|
||||||
|
****************************************************************************
|
||||||
|
*/
|
||||||
|
.section ".stack16"
|
||||||
|
.align 8
|
||||||
|
.globl _stack16
|
||||||
|
_stack16:
|
||||||
|
.space 4096
|
||||||
|
.globl _estack16
|
||||||
|
_estack16:
|
|
@ -350,6 +350,10 @@ msg1end:
|
||||||
start_runtime:
|
start_runtime:
|
||||||
call install
|
call install
|
||||||
|
|
||||||
|
/* Set up real-mode stack */
|
||||||
|
movw %bx, %ss
|
||||||
|
movw $_estack16, %sp
|
||||||
|
|
||||||
/* Jump to .text16 segment */
|
/* Jump to .text16 segment */
|
||||||
pushw %ax
|
pushw %ax
|
||||||
pushw $1f
|
pushw $1f
|
||||||
|
|
|
@ -139,6 +139,10 @@ exec_vector:
|
||||||
|
|
||||||
call install
|
call install
|
||||||
|
|
||||||
|
/* Set up real-mode stack */
|
||||||
|
movw %bx, %ss
|
||||||
|
movw $_estack16, %sp
|
||||||
|
|
||||||
/* Jump to .text16 segment */
|
/* Jump to .text16 segment */
|
||||||
pushw %ax
|
pushw %ax
|
||||||
pushw $1f
|
pushw $1f
|
||||||
|
|
Loading…
Reference in New Issue