Răsfoiți Sursa

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>

Nigel Croxon 8 ani în urmă
părinte
comite
bdb6182f0a
1 a modificat fișierele cu 2 adăugiri și 4 ștergeri
  1. 2 4
      apps/tcc.c

+ 2 - 4
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();