mirror of
https://github.com/drasko/codezero.git
synced 2026-11-21 16:33:53 +01:00
Fixed an error with mm0 where server naming wasn't matched from bootdesc
This commit is contained in:
@@ -162,9 +162,13 @@ int start_boot_tasks(struct initdata *initdata)
|
|||||||
if (file) {
|
if (file) {
|
||||||
BUG_ON(file->type != VM_FILE_BOOTFILE);
|
BUG_ON(file->type != VM_FILE_BOOTFILE);
|
||||||
img = file->priv_data;
|
img = file->priv_data;
|
||||||
if (!strcmp(img->name, __PAGERNAME__))
|
if (img->name[0] == 'm' &&
|
||||||
|
img->name[1] == 'm' &&
|
||||||
|
img->name[2] == '0')
|
||||||
mm0_file = file;
|
mm0_file = file;
|
||||||
else if (!strcmp(img->name, __VFSNAME__))
|
else if (img->name[0] == 'f' &&
|
||||||
|
img->name[1] == 's' &&
|
||||||
|
img->name[2] == '0')
|
||||||
fs0_file = file;
|
fs0_file = file;
|
||||||
else
|
else
|
||||||
list_insert(&file->list, &other_files);
|
list_insert(&file->list, &other_files);
|
||||||
@@ -172,6 +176,12 @@ int start_boot_tasks(struct initdata *initdata)
|
|||||||
break;
|
break;
|
||||||
} while (1);
|
} while (1);
|
||||||
|
|
||||||
|
if (!mm0_file || !fs0_file) {
|
||||||
|
printf("%s: FATAL: Could not find images for %s, and/or %s\n",
|
||||||
|
__PAGERNAME__, __PAGERNAME__, __VFSNAME__);
|
||||||
|
BUG();
|
||||||
|
}
|
||||||
|
|
||||||
/* MM0 needs partial initialisation since it's already running. */
|
/* MM0 needs partial initialisation since it's already running. */
|
||||||
// printf("%s: Initialising mm0 tcb.\n", __TASKNAME__);
|
// printf("%s: Initialising mm0 tcb.\n", __TASKNAME__);
|
||||||
ids.tid = PAGER_TID;
|
ids.tid = PAGER_TID;
|
||||||
|
|||||||
Reference in New Issue
Block a user