diff options
author | Will Deacon <will.deacon@arm.com> | 2011-02-15 06:44:10 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-21 14:24:13 -0500 |
commit | f60892d3e36dcdd0d9f30db05beae7a446a93f28 (patch) | |
tree | 98e44cc9b390303db2b2405764f4105773178ba6 /arch/arm/kernel/setup.c | |
parent | e33b9d0878ff6b8a543b3423c3019a5dbbf5689a (diff) |
ARM: 6673/1: LPAE: use phys_addr_t instead of unsigned long for start of membanks
The unsigned long datatype is not sufficient for mapping physical addresses
>= 4GB.
This patch ensures that the phys_addr_t datatype is used to represent
the start address of a membank, which may reside above the 4GB boundary.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/setup.c')
-rw-r--r-- | arch/arm/kernel/setup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 77af580953e6..9d4a84402ae9 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -442,7 +442,7 @@ static struct machine_desc * __init setup_machine(unsigned int nr) | |||
442 | return list; | 442 | return list; |
443 | } | 443 | } |
444 | 444 | ||
445 | static int __init arm_add_memory(unsigned long start, unsigned long size) | 445 | static int __init arm_add_memory(phys_addr_t start, unsigned long size) |
446 | { | 446 | { |
447 | struct membank *bank = &meminfo.bank[meminfo.nr_banks]; | 447 | struct membank *bank = &meminfo.bank[meminfo.nr_banks]; |
448 | 448 | ||
@@ -478,7 +478,8 @@ static int __init arm_add_memory(unsigned long start, unsigned long size) | |||
478 | static int __init early_mem(char *p) | 478 | static int __init early_mem(char *p) |
479 | { | 479 | { |
480 | static int usermem __initdata = 0; | 480 | static int usermem __initdata = 0; |
481 | unsigned long size, start; | 481 | unsigned long size; |
482 | phys_addr_t start; | ||
482 | char *endp; | 483 | char *endp; |
483 | 484 | ||
484 | /* | 485 | /* |