mirror of
https://github.com/drasko/codezero.git
synced 2026-01-28 18:53:14 +01:00
First step in detaching pager struct from tasks
This commit is contained in:
@@ -257,11 +257,11 @@ void init_finalize(struct kernel_resources *kres)
|
||||
|
||||
/* Get the first container */
|
||||
c = link_to_struct(kres->containers.list.next,
|
||||
struct container,
|
||||
list);
|
||||
struct container, list);
|
||||
|
||||
/* Get the first pager ktcb */
|
||||
first_task = c->pager[0].tcb;
|
||||
/* Get the first pager in container */
|
||||
first_task = link_to_struct(c->ktcb_list.list.next,
|
||||
struct ktcb, task_list);
|
||||
|
||||
/* Calculate first stack address */
|
||||
newstack = align((unsigned long)first_task + PAGE_SIZE - 1,
|
||||
|
||||
Reference in New Issue
Block a user