diff options
author | Jason Yan <[email protected]> | 2019-09-20 17:45:37 +0800 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2019-11-13 19:27:32 +1100 |
commit | 39f4b7bf7571a9c6529b0bb3de49c9bb0998f194 (patch) | |
tree | d83d422a39731bc86b3e44c5fb5031bd4ee5cde7 /arch/powerpc/include/asm/page.h | |
parent | 4ed47dbefa299d7b36944f6d4001ee83612dd680 (diff) |
powerpc: introduce kernstart_virt_addr to store the kernel base
Now the kernel base is a fixed value - KERNELBASE. To support KASLR, we
need a variable to store the kernel base.
Signed-off-by: Jason Yan <[email protected]>
Reviewed-by: Christophe Leroy <[email protected]>
Reviewed-by: Diana Craciun <[email protected]>
Tested-by: Diana Craciun <[email protected]>
Signed-off-by: Scott Wood <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/include/asm/page.h')
-rw-r--r-- | arch/powerpc/include/asm/page.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/page.h b/arch/powerpc/include/asm/page.h index c8bb14ff4713..88fa53f89f5a 100644 --- a/arch/powerpc/include/asm/page.h +++ b/arch/powerpc/include/asm/page.h @@ -325,6 +325,8 @@ void arch_free_page(struct page *page, int order); struct vm_area_struct; +extern unsigned long kernstart_virt_addr; + #include <asm-generic/memory_model.h> #endif /* __ASSEMBLY__ */ #include <asm/slice.h> |