diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-04-15 20:40:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-04-15 20:40:08 +0000 |
commit | 6c79978cbce731e6dd4f90352a13cdd25a500eeb (patch) | |
tree | aff1016153e9c8e9c986a3263124aaef9a489b73 /include/unistd.h | |
parent | 54d01755e0c490f3abfc0ae79a651eac257ad0cf (diff) |
More than a decade ago, interrupt handlers on sparc started returning 0
(interrupt was not for me), 1 (positive interrupt was for me), or -1
(i am not sure...). We have continued with this practice in as many
drivers as possible, throughout the tree.
This makes some of the architectures use that information in their
interrupt handler calling code -- if 1 is returned (and we know
this specific machine does not have edge-shared interrupts), we
finish servicing other possible handlers on the same pin. If the
interrupt pin remains asserted (from a different device), we will
end up back in the interrupt servicing code of course... but this is
cheaper than calling all the chained interrupts on a pin.
This does of course count on shared level interrupts being properly
sorted by IPL.
There have been some concerns about starvation of drivers which
incorrectly return 1. Those drivers should be hunted down so that
they return -1.
(other architectures will follow)
ok kettenis drahn dlg miod
Diffstat (limited to 'include/unistd.h')
0 files changed, 0 insertions, 0 deletions