kernel: make schedinit() _Noreturn void

This commit is contained in:
cinap_lenrek 2024-07-23 21:23:26 +00:00
parent 8a6c61c8ef
commit 2076c934d0
15 changed files with 3 additions and 17 deletions

View file

@ -170,7 +170,6 @@ main(void)
mmu1init();
m->ticks = MACHP(0)->ticks;
schedinit();
return;
}
uartconsinit();
quotefmtinstall();

View file

@ -239,5 +239,4 @@ cpustart(int cpu)
active.machs[m->machno] = 1;
unlock(&startlock[cpu]);
schedinit();
panic("schedinit returned");
}

View file

@ -119,7 +119,6 @@ main(uintptr arg0)
launchinit();
mmuinit1(0);
schedinit();
assert(0); /* shouldn't have returned */
}
/*

View file

@ -171,7 +171,6 @@ main(uintptr arg0)
mmu1init();
m->ticks = MACHP(0)->ticks;
schedinit();
return;
}
quotefmtinstall();
bootargsinit(arg0);

View file

@ -210,7 +210,6 @@ main(void)
synccycles();
timersinit();
schedinit();
return;
}
uartconsinit();
mmuinit();

View file

@ -335,7 +335,6 @@ main(void)
mmu1init();
m->ticks = MACHP(0)->ticks;
schedinit();
return;
}
uartconsinit();
quotefmtinstall();

View file

@ -267,7 +267,6 @@ uartputc(' ');
pageinit();
userinit();
schedinit();
panic("schedinit returned");
}
void

View file

@ -320,7 +320,6 @@ main(void)
mmu1init();
m->ticks = MACHP(0)->ticks;
schedinit();
return;
}
quotefmtinstall();
bootargsinit();

View file

@ -147,8 +147,6 @@ main(void)
userinit();
schedinit();
panic("schedinit returned");
}
/*

View file

@ -325,7 +325,7 @@ void runlock(RWlock*);
Proc* runproc(void);
void savefpregs(FPsave*);
void sched(void);
void schedinit(void);
_Noreturn void schedinit(void);
void (*screenputs)(char*, int);
void* secalloc(ulong);
void secfree(void*);

View file

@ -63,8 +63,8 @@ static void pidfree(Proc*);
/*
* Always splhi()'ed.
*/
void
schedinit(void) /* never returns */
_Noreturn void
schedinit(void)
{
Edf *e;

View file

@ -187,7 +187,6 @@ main(void)
chandevreset();
userinit();
schedinit();
panic("schedinit returned");
}
/*

View file

@ -733,7 +733,6 @@ cpustart(void)
if (Debug)
iprint("cpu%d: scheding\n", m->machno);
schedinit();
panic("cpu%d: schedinit returned", m->machno);
}
/* mainly used to break out of wfi */

View file

@ -408,7 +408,6 @@ main(void)
l1diag();
schedinit();
panic("cpu%d: schedinit returned", m->machno);
}
/*

View file

@ -318,7 +318,6 @@ main(void)
synccycles();
timersinit();
schedinit();
return;
}
uartconsinit();
mmuinit();