In arch/um/kernel/mem.c, mem_init calls map_cb twice:
once directly and once indirectly via initial_thread_cb.  Why?

-----
void mem_init(void)
{
        /* clear the zero-page */
        memset((void *) empty_zero_page, 0, PAGE_SIZE);

        /* Map in the area just after the brk now that kmalloc is about
         * to be turned on.
         */
        brk_end = (unsigned long) UML_ROUND_UP(sbrk(0));
        map_cb(NULL);
        initial_thread_cb(map_cb, NULL);
-----

-- 
John Reiser, [EMAIL PROTECTED]

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to