mirror of
https://github.com/drasko/codezero.git
synced 2026-03-03 02:53:15 +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);
|
link_init(&space->list);
|
||||||
mutex_init(&space->lock);
|
mutex_init(&space->lock);
|
||||||
space->pgd = current_pgd;
|
space->pgd = current_pgd;
|
||||||
|
address_space_attach(task, space);
|
||||||
|
|
||||||
/* Initialize container relationships */
|
/* Initialize container relationships */
|
||||||
task->space = space;
|
|
||||||
pager->tcb = task;
|
pager->tcb = task;
|
||||||
task->pager = pager;
|
task->pager = pager;
|
||||||
task->container = cont;
|
task->container = cont;
|
||||||
|
|||||||
@@ -404,6 +404,12 @@ void init_finalize(struct kernel_container *kcont)
|
|||||||
*/
|
*/
|
||||||
kip.utcb = (u32)current->utcb_address;
|
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
|
* Start the scheduler, jumping to task
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user