[RFC] Initial attempt to make ARM use LMB

Jeremy Kerr jeremy.kerr at canonical.com
Wed Mar 31 02:43:13 EDT 2010


Hi Russell,

> LMB... logical memory blocks.

Nice, will be good for the DT work too.

> @@ -483,6 +484,13 @@ static void __init build_mem_type_table(void)
> 
>  #define vectors_base()	(vectors_high() ? 0xffff0000 : 0)
> 
> +static void __init *early_alloc(unsigned long sz)
> +{
> +      void *ptr = __va(lmb_alloc(sz, sz));
> +      memset(ptr, 0, PAGE_SIZE);

memset(ptr, 0, sz) ?

Cheers,


Jeremy




More information about the linux-arm-kernel mailing list