First step in detaching pager struct from tasks

This commit is contained in:
Bahadir Balban
2009-11-03 14:50:22 +02:00
parent 00a9f2e3c9
commit 6c69f181db
7 changed files with 17 additions and 26 deletions

View File

@@ -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,