From 99b5216b1c71dba22dab734e0945887525493cde Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 26 Feb 2016 15:34:28 +0000 Subject: [librm] Support ioremap() for addresses above 4GB in a 64-bit build Signed-off-by: Michael Brown --- src/config/defaults/pcbios.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/config') diff --git a/src/config/defaults/pcbios.h b/src/config/defaults/pcbios.h index 56ed0073..e1915054 100644 --- a/src/config/defaults/pcbios.h +++ b/src/config/defaults/pcbios.h @@ -11,7 +11,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #define UACCESS_LIBRM #define IOAPI_X86 -#define IOMAP_VIRT #define PCIAPI_PCBIOS #define TIMER_PCBIOS #define CONSOLE_PCBIOS @@ -23,6 +22,12 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #define TIME_RTC #define REBOOT_PCBIOS +#ifdef __x86_64__ +#define IOMAP_PAGES +#else +#define IOMAP_VIRT +#endif + #define IMAGE_ELF /* ELF image support */ #define IMAGE_MULTIBOOT /* MultiBoot image support */ #define IMAGE_PXE /* PXE image support */ -- cgit v1.2.3-55-g7522