summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/defaults/efi.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/config/defaults/efi.h b/src/config/defaults/efi.h
index ea9c31e2..8d3a8bf2 100644
--- a/src/config/defaults/efi.h
+++ b/src/config/defaults/efi.h
@@ -10,12 +10,10 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#define UACCESS_EFI
-#define IOAPI_X86
#define IOMAP_VIRT
#define PCIAPI_EFI
#define CONSOLE_EFI
#define TIMER_EFI
-#define NAP_EFIX86
#define UMALLOC_EFI
#define SMBIOS_EFI
#define SANBOOT_NULL
@@ -35,6 +33,16 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#define USB_EFI /* Provide EFI_USB_IO_PROTOCOL interface */
#define REBOOT_CMD /* Reboot command */
+
+#if defined ( __i386__ ) || defined ( __x86_64__ )
+#define IOAPI_X86
+#define NAP_EFIX86
#define CPUID_CMD /* x86 CPU feature detection command */
+#endif
+
+#if defined ( __arm__ )
+#define IOAPI_ARM
+#define NAP_EFIARM
+#endif
#endif /* CONFIG_DEFAULTS_EFI_H */