From: Chris Hanson Date: Fri, 1 Oct 2004 02:16:49 +0000 (+0000) Subject: Implement LIMIT-INTERRUPTS!. X-Git-Tag: 20090517-FFI~1581 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=08e3668059f23ca541cec66dc50cceabb5cd87d2;p=mit-scheme.git Implement LIMIT-INTERRUPTS!. --- diff --git a/v7/src/runtime/global.scm b/v7/src/runtime/global.scm index 2b34a392e..423722258 100644 --- a/v7/src/runtime/global.scm +++ b/v7/src/runtime/global.scm @@ -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)) diff --git a/v7/src/runtime/runtime.pkg b/v7/src/runtime/runtime.pkg index d529c3713..8d0c5bbdd 100644 --- a/v7/src/runtime/runtime.pkg +++ b/v7/src/runtime/runtime.pkg @@ -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