mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
kernel: make schedinit() _Noreturn void
This commit is contained in:
parent
8a6c61c8ef
commit
2076c934d0
15 changed files with 3 additions and 17 deletions
|
@ -170,7 +170,6 @@ main(void)
|
|||
mmu1init();
|
||||
m->ticks = MACHP(0)->ticks;
|
||||
schedinit();
|
||||
return;
|
||||
}
|
||||
uartconsinit();
|
||||
quotefmtinstall();
|
||||
|
|
|
@ -239,5 +239,4 @@ cpustart(int cpu)
|
|||
active.machs[m->machno] = 1;
|
||||
unlock(&startlock[cpu]);
|
||||
schedinit();
|
||||
panic("schedinit returned");
|
||||
}
|
||||
|
|
|
@ -119,7 +119,6 @@ main(uintptr arg0)
|
|||
launchinit();
|
||||
mmuinit1(0);
|
||||
schedinit();
|
||||
assert(0); /* shouldn't have returned */
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -171,7 +171,6 @@ main(uintptr arg0)
|
|||
mmu1init();
|
||||
m->ticks = MACHP(0)->ticks;
|
||||
schedinit();
|
||||
return;
|
||||
}
|
||||
quotefmtinstall();
|
||||
bootargsinit(arg0);
|
||||
|
|
|
@ -210,7 +210,6 @@ main(void)
|
|||
synccycles();
|
||||
timersinit();
|
||||
schedinit();
|
||||
return;
|
||||
}
|
||||
uartconsinit();
|
||||
mmuinit();
|
||||
|
|
|
@ -335,7 +335,6 @@ main(void)
|
|||
mmu1init();
|
||||
m->ticks = MACHP(0)->ticks;
|
||||
schedinit();
|
||||
return;
|
||||
}
|
||||
uartconsinit();
|
||||
quotefmtinstall();
|
||||
|
|
|
@ -267,7 +267,6 @@ uartputc(' ');
|
|||
pageinit();
|
||||
userinit();
|
||||
schedinit();
|
||||
panic("schedinit returned");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -320,7 +320,6 @@ main(void)
|
|||
mmu1init();
|
||||
m->ticks = MACHP(0)->ticks;
|
||||
schedinit();
|
||||
return;
|
||||
}
|
||||
quotefmtinstall();
|
||||
bootargsinit();
|
||||
|
|
|
@ -147,8 +147,6 @@ main(void)
|
|||
userinit();
|
||||
|
||||
schedinit();
|
||||
|
||||
panic("schedinit returned");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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*);
|
||||
|
|
|
@ -63,8 +63,8 @@ static void pidfree(Proc*);
|
|||
/*
|
||||
* Always splhi()'ed.
|
||||
*/
|
||||
void
|
||||
schedinit(void) /* never returns */
|
||||
_Noreturn void
|
||||
schedinit(void)
|
||||
{
|
||||
Edf *e;
|
||||
|
||||
|
|
|
@ -187,7 +187,6 @@ main(void)
|
|||
chandevreset();
|
||||
userinit();
|
||||
schedinit();
|
||||
panic("schedinit returned");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -408,7 +408,6 @@ main(void)
|
|||
l1diag();
|
||||
|
||||
schedinit();
|
||||
panic("cpu%d: schedinit returned", m->machno);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -318,7 +318,6 @@ main(void)
|
|||
synccycles();
|
||||
timersinit();
|
||||
schedinit();
|
||||
return;
|
||||
}
|
||||
uartconsinit();
|
||||
mmuinit();
|
||||
|
|
Loading…
Reference in a new issue