Added freeing/unmapping of boot memory

This commit is contained in:
Bahadir Balban
2009-08-11 15:01:27 +03:00
parent f4d9520fef
commit f82db61519
4 changed files with 48 additions and 31 deletions

View File

@@ -369,11 +369,6 @@ void setup_dummy_current()
TASK_PGD(current) = &init_pgd;
}
void free_bootmem(void)
{
/* TODO: Fill. */
}
void init_finalize(struct kernel_container *kcont)
{
volatile register unsigned int stack asm("sp");
@@ -402,7 +397,7 @@ void init_finalize(struct kernel_container *kcont)
* Unmap boot memory, and add it as
* an unused kernel memcap
*/
free_bootmem();
free_boot_memory(&kernel_container);
/*
* Set up KIP UTCB ref
@@ -444,9 +439,6 @@ void start_kernel(void)
remap_as_pages((void *)page_align(_start_kernel),
(void *)page_align_up(_end_kernel));
/* Move the initial pgd into a more convenient place, mapped as pages. */
// relocate_page_tables();
/* Initialise kip and map for userspace access */
kip_init();