Fixed few more issues

The svc images must be pushed to boot file list in correct order
otherwise if test0 starts earlier than fs0, it gets fs0's predefined
thread and space id (since that's the first unallocated one) and
fs0 fails to initalise. In the future we can pre-allocate ids from
the kernel but current temporary fix is simple enough to use.
This commit is contained in:
Bahadir Balban
2008-03-14 15:39:00 +00:00
parent dc3b63d924
commit ed68f934aa
2 changed files with 32 additions and 3 deletions

View File

@@ -285,7 +285,7 @@ int start_boot_task(struct vm_file *file, struct task_ids *ids)
task->utcb_address);
if ((err = do_mmap(0, 0, task, task->utcb_address,
VM_READ | VM_WRITE | VMA_SHARED | VMA_ANONYMOUS,
DEFAULT_UTCB_SIZE) < 0)) {
__pfn(DEFAULT_UTCB_SIZE)) < 0)) {
printf("do_mmap: Mapping utcb failed with %d.\n", err);
goto error;
}
@@ -318,6 +318,7 @@ int start_boot_tasks(struct initdata *initdata)
struct task_ids ids;
int total = 0;
INIT_LIST_HEAD(&tcb_head.list);
do {
file = 0;
list_for_each_entry_safe(file, n, &initdata->boot_file_list,