RE: [uClinux-dev] bootmem - which way ?

From: Fabrice Gautier (Fabrice_Gautier@sdesigns.com)
Date: Tue Jul 23 2002 - 14:33:57 EDT


> -----Original Message-----
> From: David McCullough [mailto:davidm@snapgear.com]
> Subject: Re: [uClinux-dev] bootmem - which way ?
> 
 
> > >>#if 1
> > >>    bootmem_init(&meminfo);
> > >>#else
> > >>    bootmap_size= init_bootmem_node(
> > >>              NODE_DATA(0),
> > >>              memory_start >> PAGE_SHIFT,
> > >>              PAGE_OFFSET >> PAGE_SHIFT,
> > >>              END_MEM >> PAGE_SHIFT);
> > >> 
> > >>    free_bootmem(memory_start, END_MEM - memory_start);
> > >>    reserve_bootmem(memory_start, bootmap_size);
> > >>#endif


> > >>Can someone please tell me what's the difference ?
> > >>thanks,

The problem is that nobody seems to remember why the #if 0 was introduced in
the first place, that's why I suggested it to be reverted to #if 1 some time
ago (which is afaics, the "normal" way). Plus of course I didnt work for me
with #if 0. 

If you want to find the real story I would suggest to debug the "#if 1" path
and maybe more precisely see what happen in find_endmem_and_nodes.

(Of course the #if 0 path might be as simple and faster)

-- 
Fabrice Gautier, 
Fabrice_Gautier@sdesigns.com


This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:35 EDT