1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
int init_task(void (*initrd_pgm)(void), s8 *name)
{
int i = 0;
for (i = 0; i < MAX_PROC; i++)
proc_list[i] = NULL;
if (create_task_priv(initrd_pgm, name, NULL, 1) == -1)
{
kpanic("Could not initialize the root console.");
return -1;
}
current_task = initrd;
init_idle_task();
printString("DOING FINE\r\n", 12, 0);
enable_tick();
initrd_pgm();
asm ("b release_stack");
return 0;
}
|