diff --git a/arch/x86/include/asm/e820/api.h b/arch/x86/include/asm/e820/api.h index 010efbceb40cb50a94812bf6bc481047b71123f2..e161deb5736ca4aa59980bcf788c1e696a31437a 100644 --- a/arch/x86/include/asm/e820/api.h +++ b/arch/x86/include/asm/e820/api.h @@ -1,15 +1,6 @@ #ifndef _ASM_E820_API_H #define _ASM_E820_API_H -/* - * E820_X_MAX is the maximum size of the extended E820 table. The extended - * table may contain up to 3 extra E820 entries per possible NUMA node, so we - * make room for 3 * MAX_NUMNODES possible entries, beyond the standard 128. - * Also note that E820_X_MAX *must* be defined before we include asm/e820/types.h. - */ -#include -#define E820_X_MAX (E820MAX + 3 * MAX_NUMNODES) - #include #ifndef __ASSEMBLY__ diff --git a/arch/x86/include/asm/e820/types.h b/arch/x86/include/asm/e820/types.h index cf73c104c04192f05b4141ef3e6d74706323946c..b05e812ff4f2c3f61bb00030941cc4454372b6d2 100644 --- a/arch/x86/include/asm/e820/types.h +++ b/arch/x86/include/asm/e820/types.h @@ -3,9 +3,6 @@ #include -/* Our map: */ -#define E820MAP 0x2d0 - /* * The legacy E820 BIOS limits us to 128 (E820MAX) nodes due to the * constrained space in the zeropage. @@ -31,9 +28,13 @@ * to allow more than three entries per node or otherwise refine * this size. */ -#ifndef __KERNEL__ -# define E820_X_MAX E820MAX -#endif + +#include + +#define E820_X_MAX (E820MAX + 3*MAX_NUMNODES) + +/* Our map: */ +#define E820MAP 0x2d0 /* Number of entries in E820MAP: */ #define E820NR 0x1e8