From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <20020913181116.49236.qmail@web12304.mail.yahoo.com> Date: Fri, 13 Sep 2002 11:11:16 -0700 (PDT) From: Ravi Subject: Re: bootmem ? In-Reply-To: <55E277B99171E041ABF5F4B1C6DDCA0683E8B4@haritha.hclt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-linux-mm@kvack.org Return-Path: To: "Somshekar. C. Kadam - CTD, Chennai." Cc: linux-mm@kvack.org List-ID: > 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/