diff options
author | David S. Miller <davem@davemloft.net> | 2013-09-19 00:39:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-13 00:22:34 +0100 |
commit | bb7b435388b9f035ecfb16f42b5c6bf428359c63 (patch) | |
tree | 5e64fe2772da7d787f88a6e7854db642c2dc2bb1 /arch/sparc/mm | |
parent | sparc64: Define PAGE_OFFSET in terms of physical address bits. (diff) | |
download | linux-bb7b435388b9f035ecfb16f42b5c6bf428359c63.tar.xz linux-bb7b435388b9f035ecfb16f42b5c6bf428359c63.zip |
sparc64: Document the shift counts used to validate linear kernel addresses.
This way we can see exactly what they are derived from, and in particular
how they would change if we were to use a different PAGE_OFFSET value.
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Bob Picco <bob.picco@oracle.com>
Diffstat (limited to 'arch/sparc/mm')
-rw-r--r-- | arch/sparc/mm/init_64.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sparc/mm/init_64.h b/arch/sparc/mm/init_64.h index 0661aa606dec..5d3782deb403 100644 --- a/arch/sparc/mm/init_64.h +++ b/arch/sparc/mm/init_64.h @@ -1,11 +1,13 @@ #ifndef _SPARC64_MM_INIT_H #define _SPARC64_MM_INIT_H +#include <asm/page.h> + /* Most of the symbols in this file are defined in init.c and * marked non-static so that assembler code can get at them. */ -#define MAX_PHYS_ADDRESS (1UL << 41UL) +#define MAX_PHYS_ADDRESS (1UL << MAX_PHYS_ADDRESS_BITS) #define KPTE_BITMAP_CHUNK_SZ (256UL * 1024UL * 1024UL) #define KPTE_BITMAP_BYTES \ ((MAX_PHYS_ADDRESS / KPTE_BITMAP_CHUNK_SZ) / 4) |