summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/stand
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-04-30 01:12:30 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-04-30 01:12:30 +0000
commit88066c9a0811bfa66b9e85d8790cbfab53d8d481 (patch)
treead08df2b2e5d355769383393b043398e0c0dc4b0 /sys/arch/sparc/stand
parent953dd9ca5783b67d25ed99deab898083deb94c3f (diff)
Fix an ancient problem in how sparc interrupts are handled.
There are many interrupt handlers that assume that they don't need to do any spl protection in their code because the interrupt of some level can't be interrupted by an interrupt of the same level. The problem is that some interrupt handlers have hardware levels that are lower then their "software" levels. Fix this by adding an additional field to struct intrhand that specifies which "software" level an interrupt handler has and blocks that level while handling the interrupt. This new field is initialized in intr_establish which gets an additional argument (which can be -1 meaning that the interrupt handler doesn't need to block any additional level). ok deraadt@
Diffstat (limited to 'sys/arch/sparc/stand')
0 files changed, 0 insertions, 0 deletions