The very first pager's space area is added to the address space list.

This commit is contained in:
Bora Sahin
2009-10-01 15:51:58 +03:00
parent afaa1d03a8
commit 6aec4ac53b
2 changed files with 7 additions and 1 deletions

View File

@@ -159,9 +159,9 @@ int init_first_pager(struct pager *pager,
link_init(&space->list);
mutex_init(&space->lock);
space->pgd = current_pgd;
address_space_attach(task, space);
/* Initialize container relationships */
task->space = space;
pager->tcb = task;
task->pager = pager;
task->container = cont;

View File

@@ -404,6 +404,12 @@ void init_finalize(struct kernel_container *kcont)
*/
kip.utcb = (u32)current->utcb_address;
/*
* Added the first pager's space area to
* the address space list of the related container
*/
address_space_add(current->space);
/*
* Start the scheduler, jumping to task
*/