[librm] Discard argument as part of return from prot_call()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2016-02-16 23:16:49 +00:00
parent f468f12b1e
commit 9dc340d735
15 changed files with 6 additions and 22 deletions

View File

@@ -134,7 +134,6 @@ init_librm:
pushl $init_idt
pushw %cs
call prot_call
popl %eax /* discard */
/* Restore registers */
negl %edi
@@ -385,8 +384,8 @@ rm_gdtr:
*
* Example usage:
* pushl $pxe_api_call
* pushw %cs
* call prot_call
* addw $4, %sp
* to call in to the C function
* void pxe_api_call ( struct i386_all_regs *ix86 );
****************************************************************************
@@ -455,7 +454,7 @@ pc_rmode:
*/
addr32 movl -20(%esp), %esp
popfl
lret
lret $4
/****************************************************************************
* real_call (protected-mode near call, 32-bit virtual return address)
@@ -554,7 +553,6 @@ flatten_real_mode:
pushl $flatten_dummy
pushw %cs
call prot_call
addw $4, %sp
/* Restore GDT */
movb $0x00, real_cs + 6
movb $0x00, real_ds + 6

View File

@@ -108,7 +108,6 @@ static void librm_test_exec ( void ) {
"pushl %k3\n\t"
"pushw %%cs\n\t"
"call prot_call\n\t"
"addw $4, %%sp\n\t"
"rdtsc\n\t" )
: "=a" ( stopped ), "=d" ( discard_d ),
"=R" ( started )