diff options
author | Michael Brown | 2016-02-26 16:34:28 +0100 |
---|---|---|
committer | Michael Brown | 2016-02-26 16:34:28 +0100 |
commit | 99b5216b1c71dba22dab734e0945887525493cde (patch) | |
tree | 30829acea232821f26d7bfb38aac5c089e252ef8 /src/config/defaults | |
parent | [ioapi] Split ioremap() out to a separate IOMAP API (diff) | |
download | ipxe-99b5216b1c71dba22dab734e0945887525493cde.tar.gz ipxe-99b5216b1c71dba22dab734e0945887525493cde.tar.xz ipxe-99b5216b1c71dba22dab734e0945887525493cde.zip |
[librm] Support ioremap() for addresses above 4GB in a 64-bit build
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config/defaults')
-rw-r--r-- | src/config/defaults/pcbios.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 */ |