[PATCH v2] arm: Handle >4GB memory sizes in device tree and mem=size at start option

Will Deacon will.deacon at arm.com
Thu Jul 12 12:36:24 EDT 2012


On Wed, Jul 11, 2012 at 10:39:48AM +0100, Peter Maydell wrote:
> 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 at start command line
> options specifying more than 4GB behave sensibly.
> 
> Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
> ---
> Changes v1->v2:
>  * fixed spacing round '-'
>  * made early_mem() handle large sizes too

Acked-by: Will Deacon <will.deacon at arm.com>

Please can you put this into the patch system?

Will



More information about the linux-arm-kernel mailing list