events are now a client for low-interrupt

This commit is contained in:
marting 1999-10-15 18:35:10 +00:00
parent 6f17cf889a
commit 6f86fd8400
1 changed files with 7 additions and 8 deletions

View File

@ -35,16 +35,15 @@
;Initialize the system.
(define (install-event-handlers!)
(let loop ((count 0))
(if (< count interrupt-count)
(let ((old-handler (vector-ref (interrupt-handlers-vector) count)))
(set-interrupt-handler
(if (< count (number-of-interrupts))
(begin
;we're not interested in the setter-function here:
(low-interrupt-register
count
(lambda stuff
(register-interrupt count)
(apply old-handler stuff)))
(lambda (enabled-interrupts)
(register-interrupt count)))
(loop (+ count 1))))))
;;; extensions by JMG
;;; takes list of interrupt/xxx's