mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
The very first pager's space area is added to the address space list.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user