[librm] Convert prot_call() to a real-mode near call
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -371,7 +371,6 @@ start_runtime:
|
||||
.section ".text16", "awx", @progbits
|
||||
1:
|
||||
pushl $main
|
||||
pushw %cs
|
||||
call prot_call
|
||||
|
||||
/* Uninstall iPXE */
|
||||
|
||||
@@ -149,7 +149,6 @@ _exe_start:
|
||||
|
||||
/* Run iPXE */
|
||||
pushl $main
|
||||
pushw %cs
|
||||
call prot_call
|
||||
|
||||
/* Uninstall iPXE */
|
||||
|
||||
@@ -100,7 +100,6 @@ start_image:
|
||||
.section ".text16", "awx", @progbits
|
||||
1:
|
||||
pushl $main
|
||||
pushw %cs
|
||||
call prot_call
|
||||
|
||||
/* Uninstall iPXE */
|
||||
|
||||
@@ -888,7 +888,6 @@ payload_death_message:
|
||||
*/
|
||||
progress " relocate\n"
|
||||
pushl $relocate
|
||||
pushw %cs
|
||||
call prot_call
|
||||
|
||||
/* Jump back to .prefix segment */
|
||||
|
||||
@@ -198,7 +198,6 @@ no_cmd_line:
|
||||
|
||||
/* Run iPXE */
|
||||
pushl $main
|
||||
pushw %cs
|
||||
call prot_call
|
||||
|
||||
/* Uninstall iPXE */
|
||||
|
||||
@@ -67,7 +67,6 @@ _nbi_start:
|
||||
.section ".text16", "awx", @progbits
|
||||
1:
|
||||
pushl $main
|
||||
pushw %cs
|
||||
call prot_call
|
||||
|
||||
/* Uninstall iPXE */
|
||||
|
||||
@@ -821,7 +821,6 @@ run_ipxe:
|
||||
|
||||
/* Run main program */
|
||||
pushl $main
|
||||
pushw %cs
|
||||
call prot_call
|
||||
|
||||
/* Uninstall iPXE */
|
||||
|
||||
@@ -808,7 +808,6 @@ exec: /* Set %ds = %cs */
|
||||
|
||||
/* Call main() */
|
||||
pushl $main
|
||||
pushw %cs
|
||||
call prot_call
|
||||
|
||||
/* Set up flat real mode for return to BIOS */
|
||||
|
||||
@@ -46,7 +46,6 @@ undiloader:
|
||||
1:
|
||||
/* Call UNDI loader C code */
|
||||
pushl $pxe_loader_call
|
||||
pushw %cs
|
||||
call prot_call
|
||||
|
||||
1: /* Restore registers and return */
|
||||
|
||||
Reference in New Issue
Block a user