mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
[Mirror] Some kind of OS: git://git.9front.org/plan9front/plan9front
f1e7d6da67
The idea is: When we call sched() with interrupts disabled, it must not return with them re-enabled. The code becomes easier to reason about if we make sched() preserve interrupt status, which lets us call sched() from an interrupt handler (with interrupts disabled) without risking preemption by another interrupt once sched() returns which can pump-up the stack. This allows removing Proc.preempted flag as it is now impossible for interrupts to preempt each other in preempted(). Extra cleanups: make interrupted() _Noreturn void and remove unused Proc.yield flag. |
||
---|---|---|
386 | ||
68000 | ||
68020 | ||
acme | ||
adm/timezone | ||
amd64 | ||
arm | ||
arm64 | ||
lib | ||
mips | ||
power | ||
power64 | ||
rc | ||
sparc | ||
sparc64 | ||
spim | ||
sys |