From: Sonny Rao Date: Thu, 19 Aug 2010 18:08:09 +0000 (+0000) Subject: powerpc: Export memstart_addr and kernstart_addr on ppc64 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=79c3095fb39964d0d44368cbbb4eff5b52c43d2c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git powerpc: Export memstart_addr and kernstart_addr on ppc64 Some modules (like eHCA) want to map all of kernel memory, for this to work with a relocated kernel, we need to export kernstart_addr so modules can use PHYSICAL_START and memstart_addr so they could use MEMORY_START. Note that the 32bit code already exports these symbols. Signed-off-By: Sonny Rao Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 71f1415e2472..ace85fa74b29 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c @@ -79,7 +79,9 @@ #endif /* CONFIG_PPC_STD_MMU_64 */ phys_addr_t memstart_addr = ~0; +EXPORT_SYMBOL_GPL(memstart_addr); phys_addr_t kernstart_addr; +EXPORT_SYMBOL_GPL(kernstart_addr); void free_initmem(void) {