ARM: 7465/1: Handle >4GB memory sizes in device tree and mem=size@start option
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Jul 2012 22:57:35 +0000 (23:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 29 Jul 2012 21:19:14 +0000 (22:19 +0100)
commita5d5f7daa744b34477c4a12728bde0a1694a1707
tree386299b6bedc567d937d2d8a35a3ae618ec22a60
parentff081e05bfba3461119cd280201d163b6858eda2
ARM: 7465/1: Handle >4GB memory sizes in device tree and mem=size@start option

The memory regions which are passed to arm_add_memory() from
device tree blobs via early_init_dt_add_memory_arch() can
have sizes which are larger than will fit in a 32 bit integer,
so switch to using a phys_addr_t to hold them, to avoid
silently dropping the top 32 bits of the size. Similarly, use
phys_addr_t in early_mem() so that mem=size@start command line
options specifying more than 4GB behave sensibly.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/setup.h
arch/arm/kernel/setup.c
This page took 0.027321 seconds and 5 git commands to generate.