From bdb6182f0a7cb008b6a55b5cc9880276cec02888 Mon Sep 17 00:00:00 2001 From: Nigel Croxon Date: Fri, 17 Feb 2017 16:22:44 -0500 Subject: [PATCH] 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 Signed-off-by: Nigel Croxon --- apps/tcc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/tcc.c b/apps/tcc.c index 2d84a99..ae47d84 100644 --- a/apps/tcc.c +++ b/apps/tcc.c @@ -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();