[RFC] Initial attempt to make ARM use LMB

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Apr 9 07:13:00 EDT 2010


On Wed, Mar 31, 2010 at 02:43:13PM +0800, Jeremy Kerr wrote:
> 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) ?

Yes, thanks for catching that.  That's not fixed in the revised version
I just sent, but will be fixed in the final version.  (IOW, I just
committed that correction.)



More information about the linux-arm-kernel mailing list