From 5d5706d22618fc728a36d9790b0315fdffd84f2a Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 19 Jul 2015 12:17:10 -0700 Subject: [PATCH] Make ostty.o state thread-local. The next_interrupt_char is set by the processor's signal handler and read by Scheme's interrupt handler, which now runs with timer interrupts masked (to keep the handler on the processor with the next_interrupt_char). --- src/microcode/ostty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microcode/ostty.c b/src/microcode/ostty.c index d0916e5d5..112baae05 100644 --- a/src/microcode/ostty.c +++ b/src/microcode/ostty.c @@ -28,7 +28,7 @@ USA. #include "osscheme.h" #include "prims.h" -static cc_t next_interrupt_char; +static __thread cc_t next_interrupt_char; void tty_set_next_interrupt_char (cc_t c) -- 2.25.1