Check enabled interrupts before calling the handler.
This commit is contained in:
parent
e74e23388e
commit
66c2ae5d38
|
@ -196,9 +196,11 @@
|
||||||
|
|
||||||
(define (deliver-interrupts)
|
(define (deliver-interrupts)
|
||||||
(let lp ((last ((structure-ref sigevents most-recent-sigevent))))
|
(let lp ((last ((structure-ref sigevents most-recent-sigevent))))
|
||||||
(let ((event ((structure-ref sigevents next-sigevent-set)
|
(let* ((event ((structure-ref sigevents next-sigevent-set)
|
||||||
last full-interrupt-set)))
|
last full-interrupt-set))
|
||||||
(call-interrupt-handler ((structure-ref sigevents sigevent-type) event))
|
(interrupt ((structure-ref sigevents sigevent-type) event)))
|
||||||
|
(if (interrupt-enabled? interrupt (enabled-interrupts))
|
||||||
|
(call-interrupt-handler interrupt))
|
||||||
(lp event))))
|
(lp event))))
|
||||||
|
|
||||||
;;; I am ashamed to say the 33 below is completely bogus.
|
;;; I am ashamed to say the 33 below is completely bogus.
|
||||||
|
|
Loading…
Reference in New Issue