[librm] Ensure that inline code symbols are unique
[ipxe.git] / src / arch / x86 / core / dumpregs.c
1 #include <stdio.h>
2 #include <realmode.h>
3
4 void __asmcall _dump_regs ( struct i386_all_regs *ix86 ) {
5
6 __asm__ __volatile__ (
7 TEXT16_CODE ( ".globl dump_regs\n\t"
8 "\ndump_regs:\n\t"
9 VIRT_CALL ( _dump_regs )
10 "ret\n\t" ) : );
11
12 printf ( "EAX=%08x EBX=%08x ECX=%08x EDX=%08x\n"
13 "ESI=%08x EDI=%08x EBP=%08x ESP=%08x\n"
14 "CS=%04x SS=%04x DS=%04x ES=%04x FS=%04x GS=%04x\n",
15 ix86->regs.eax, ix86->regs.ebx, ix86->regs.ecx,
16 ix86->regs.edx, ix86->regs.esi, ix86->regs.edi,
17 ix86->regs.ebp, ix86->regs.esp,
18 ix86->segs.cs, ix86->segs.ss, ix86->segs.ds,
19 ix86->segs.es, ix86->segs.fs, ix86->segs.gs );
20 }