diff options
author | George Koehler <gkoehler@cvs.openbsd.org> | 2024-10-24 17:37:07 +0000 |
---|---|---|
committer | George Koehler <gkoehler@cvs.openbsd.org> | 2024-10-24 17:37:07 +0000 |
commit | 9cd2590ca23be81c1d41f53830d293a19657ac78 (patch) | |
tree | 52b955cb94e51a3182e4679406bdac8be18d6fcc /sys/dev/ic | |
parent | f815926475cd3ad1879a4330f0305c0443e5a8ff (diff) |
Change macppc's ci_idepth from -1 to 0 when no interrupts
Now curcpu()->ci_idepth == 0 would work on macppc as it does on
powerpc64 and other archs, by checking that we aren't in an interrupt.
This also makes macppc's splassert_check() less different.
locore.S checks for the 1st interrupt when it increments ci_idepth.
Using -1 for no interrupts had saved an instruction, as "addic." was
short for "addi; cmpwi". Using 0, it now does "cmpwi; addi" to
compare ci_idepth with 0 before incrementing it.
ok mpi@
Diffstat (limited to 'sys/dev/ic')
0 files changed, 0 insertions, 0 deletions