diff options
Diffstat (limited to 'include/asm-powerpc/pgtable-ppc64.h')
-rw-r--r-- | include/asm-powerpc/pgtable-ppc64.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-powerpc/pgtable-ppc64.h b/include/asm-powerpc/pgtable-ppc64.h index 300f9a199bf2..dd4c26dc57d2 100644 --- a/include/asm-powerpc/pgtable-ppc64.h +++ b/include/asm-powerpc/pgtable-ppc64.h | |||
@@ -68,6 +68,14 @@ | |||
68 | #define USER_REGION_ID (0UL) | 68 | #define USER_REGION_ID (0UL) |
69 | 69 | ||
70 | /* | 70 | /* |
71 | * Defines the address of the vmemap area, in the top 16th of the | ||
72 | * kernel region. | ||
73 | */ | ||
74 | #define VMEMMAP_BASE (ASM_CONST(CONFIG_KERNEL_START) + \ | ||
75 | (0xfUL << (REGION_SHIFT - 4))) | ||
76 | #define vmemmap ((struct page *)VMEMMAP_BASE) | ||
77 | |||
78 | /* | ||
71 | * Common bits in a linux-style PTE. These match the bits in the | 79 | * Common bits in a linux-style PTE. These match the bits in the |
72 | * (hardware-defined) PowerPC PTE as closely as possible. Additional | 80 | * (hardware-defined) PowerPC PTE as closely as possible. Additional |
73 | * bits may be defined in pgtable-*.h | 81 | * bits may be defined in pgtable-*.h |