diff options
author | Sonny Rao <sonnyrao@us.ibm.com> | 2010-08-19 18:08:09 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-24 15:26:26 +1000 |
commit | 79c3095fb39964d0d44368cbbb4eff5b52c43d2c (patch) | |
tree | 6245ed4b5a1be5dba85a68c7551cb1b51922d0b9 /arch | |
parent | 529b7307d804f649839b5b65b303442140266d26 (diff) | |
download | op-kernel-dev-79c3095fb39964d0d44368cbbb4eff5b52c43d2c.zip op-kernel-dev-79c3095fb39964d0d44368cbbb4eff5b52c43d2c.tar.gz |
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 <sonnyrao@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/mm/init_64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 71f1415..ace85fa 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) { |