aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/sparsemem.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-01-30 07:30:37 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:30:37 -0500
commit8a423ff0c4a0472607bbed6790fdaeec54af2ebb (patch)
tree676fab07c33482e2b81cd1596c206c9b5b0c0b1b /include/asm-x86/sparsemem.h
parent4757d7d8d00c5f8b2c176ca03b0a8eabbc206664 (diff)
x86: merge include/asm-x86/sparsemem.h
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/sparsemem.h')
-rw-r--r--include/asm-x86/sparsemem.h35
1 files changed, 32 insertions, 3 deletions
diff --git a/include/asm-x86/sparsemem.h b/include/asm-x86/sparsemem.h
index 3f203b1d9ee8..fa58cd55411a 100644
--- a/include/asm-x86/sparsemem.h
+++ b/include/asm-x86/sparsemem.h
@@ -1,5 +1,34 @@
1#ifndef _ASM_X86_SPARSEMEM_H
2#define _ASM_X86_SPARSEMEM_H
3
4#ifdef CONFIG_SPARSEMEM
5/*
6 * generic non-linear memory support:
7 *
8 * 1) we will not split memory into more chunks than will fit into the flags
9 * field of the struct page
10 *
11 * SECTION_SIZE_BITS 2^n: size of each section
12 * MAX_PHYSADDR_BITS 2^n: max size of physical address space
13 * MAX_PHYSMEM_BITS 2^n: how much memory we can have in that space
14 *
15 */
16
1#ifdef CONFIG_X86_32 17#ifdef CONFIG_X86_32
2# include "sparsemem_32.h" 18# ifdef CONFIG_X86_PAE
3#else 19# define SECTION_SIZE_BITS 30
4# include "sparsemem_64.h" 20# define MAX_PHYSADDR_BITS 36
21# define MAX_PHYSMEM_BITS 36
22# else
23# define SECTION_SIZE_BITS 26
24# define MAX_PHYSADDR_BITS 32
25# define MAX_PHYSMEM_BITS 32
26# endif
27#else /* CONFIG_X86_32 */
28# define SECTION_SIZE_BITS 27 /* matt - 128 is convenient right now */
29# define MAX_PHYSADDR_BITS 40
30# define MAX_PHYSMEM_BITS 40
31#endif
32
33#endif /* CONFIG_SPARSEMEM */
5#endif 34#endif