don't expect non-x86 compilers to compile x86 asm.

also remove what looks like garbage inside an #if 0 block.

Signed-off-by: David Decotigny <ddecotig@gmail.com>
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
This commit is contained in:
Nigel Croxon 2017-02-17 16:22:44 -05:00
parent 7b0521df53
commit bdb6182f0a

View File

@ -11,8 +11,6 @@
#endif
#if 0
asm volatile("out %0,%1" : : "a" ((uint8_t)a), "dN" (0x80));
extern void dump_stack(void);
asm( ".globl dump_stack\n"
"dump_stack:\n"
@ -335,9 +333,9 @@ efi_main (EFI_HANDLE *image, EFI_SYSTEM_TABLE *systab)
uefi_call_wrapper(systab->ConOut->OutputString, 2, systab->ConOut,
L"This test is only valid on x86_64\n");
return EFI_UNSUPPORTED;
#endif
#else
__asm__ volatile("out %0,%1" : : "a" ((uint8_t)0x14), "dN" (0x80));
#endif
Print(L"Hello\r\n");
rc = test_failure();