mirror of
https://github.com/ipxe/ipxe
synced 2026-01-05 03:10:58 +03:00
[librm] Provide an abstraction wrapper for prot_call
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -6,9 +6,8 @@ void __asmcall _dump_regs ( struct i386_all_regs *ix86 ) {
|
||||
__asm__ __volatile__ (
|
||||
TEXT16_CODE ( ".globl dump_regs\n\t"
|
||||
"\ndump_regs:\n\t"
|
||||
"pushl $_dump_regs\n\t"
|
||||
"call prot_call\n\t"
|
||||
"ret\n\t" ) : : );
|
||||
VIRT_CALL ( _dump_regs )
|
||||
"ret\n\t" ) );
|
||||
|
||||
printf ( "EAX=%08x EBX=%08x ECX=%08x EDX=%08x\n"
|
||||
"ESI=%08x EDI=%08x EBP=%08x ESP=%08x\n"
|
||||
|
||||
Reference in New Issue
Block a user