Thread (2 messages) 2 messages, 2 authors, 2002-09-13
  • bootmem ? · Somshekar. C. Kadam - CTD, Chennai. <hidden> · 2002-09-13
  • Re: bootmem ? · Ravi <hidden> · 2002-09-13

Re: bootmem ?

From: Ravi <hidden>
Date: 2002-09-13 18:11:16

struct bootmem_data
unsigned long node_boot_start what for 
 
  node_boot_start always gets set to 0.
 
void *node_bootmem_map what is this  for 

 if i am right node_bootmem_map is a pointer to beginig of bitmap
that is the end of kernel
  init_bootmem_core() creates a bitmap representing all pages available
to the bootmem allocator. To make sure this bitmap doesn't overwrite 
kernel text or data, the address beyond end of kernel is passed
to init_bootmem_core(). The location of this bitmap is stored in
node_bootmem_map.
  
 
   what should be the value of node_boot_start 
 
 i am having 32 mb ram 
   my kernel is loaded from 0x400 after 1mb(including text data and
bss) which is end of kernel 
i am setting node_boot_start as the pouinter to bit map  storing 
bitmap after the end of the kernel
 I didn't understand what you meant by that. Why do you have to set
node_boot_start? You just need to call init_bootmem() with the
right parameters - a safe address for creating the bootmem bitmap
and number of pages available to the bootmem allocator. 
  After initializing bootmem allocator, you have to make sure that
pages where kernel is loaded and the pages containing the bootmem
bitmap itself are marked reserved.

Hope this helps,
Ravi.

__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help