summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/init_32.c
diff options
context:
space:
mode:
authorStefan Roese2008-07-09 17:09:23 +0200
committerJosh Boyer2008-07-09 20:13:01 +0200
commit2bf3016f89344d4cd8b2c96bbec2b642a2bde413 (patch)
treedd472d2d20ae41bc93c189ca141ea61ddae9826a /arch/powerpc/mm/init_32.c
parentpowerpc/44x: Update ppc44x_defconfig (diff)
downloadkernel-qcow2-linux-2bf3016f89344d4cd8b2c96bbec2b642a2bde413.tar.gz
kernel-qcow2-linux-2bf3016f89344d4cd8b2c96bbec2b642a2bde413.tar.xz
kernel-qcow2-linux-2bf3016f89344d4cd8b2c96bbec2b642a2bde413.zip
powerpc: Fix problems with 32bit PPC's running with >= 4GB of RAM
This patch enables 32bit PPC's (with 36bit physical address space, e.g. IBM/AMCC PPC44x) to run with >= 4GB of RAM. Mostly its just replacing types (unsigned long -> phys_addr_t). Tested on an AMCC Katmai with 4GB of DDR2. Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'arch/powerpc/mm/init_32.c')
-rw-r--r--arch/powerpc/mm/init_32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c
index 45418590b6a9..388ceda632f3 100644
--- a/arch/powerpc/mm/init_32.c
+++ b/arch/powerpc/mm/init_32.c
@@ -57,8 +57,8 @@
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-unsigned long total_memory;
-unsigned long total_lowmem;
+phys_addr_t total_memory;
+phys_addr_t total_lowmem;
phys_addr_t memstart_addr = (phys_addr_t)~0ull;
EXPORT_SYMBOL(memstart_addr);