Implement LIMIT-INTERRUPTS!.
authorChris Hanson <org/chris-hanson/cph>
Fri, 1 Oct 2004 02:16:49 +0000 (02:16 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 1 Oct 2004 02:16:49 +0000 (02:16 +0000)
v7/src/runtime/global.scm
v7/src/runtime/runtime.pkg

index 2b34a392e073990ed7f0208d3af82f09661f0bad..4237222582bb99d35ec38699df9768c0d65ac454 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: global.scm,v 14.66 2004/10/01 02:14:55 cph Exp $
+$Id: global.scm,v 14.67 2004/10/01 02:16:36 cph Exp $
 
 Copyright 1988,1989,1991,1992,1993,1995 Massachusetts Institute of Technology
 Copyright 1998,2000,2001,2003,2004 Massachusetts Institute of Technology
@@ -117,6 +117,9 @@ USA.
   (with-interrupt-mask (fix:and limit-mask (get-interrupt-enables))
     procedure))
 
+(define (limit-interrupts! limit-mask)
+  (set-interrupt-enables! (fix:and limit-mask (get-interrupt-enables))))
+
 (define (object-component-binder get-component set-component!)
   (lambda (object new-value thunk)
     (let ((old-value))
index d529c37130571effb0abaa59281edce5065a4d61..8d0c5bbddfed0e93170c2de3e42395bdfc3dda2a 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: runtime.pkg,v 14.494 2004/10/01 02:15:20 cph Exp $
+$Id: runtime.pkg,v 14.495 2004/10/01 02:16:49 cph Exp $
 
 Copyright 1988,1989,1990,1991,1992,1993 Massachusetts Institute of Technology
 Copyright 1994,1995,1996,1997,1998,1999 Massachusetts Institute of Technology
@@ -302,6 +302,7 @@ USA.
          lexical-unassigned?
          lexical-unbound?
          lexical-unreferenceable?
+         limit-interrupts!
          link-variables
          local-assignment
          make-cell