Make ostty.o state thread-local.
authorMatt Birkholz <puck@birchwood-abbey.net>
Sun, 19 Jul 2015 19:17:10 +0000 (12:17 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Thu, 26 Nov 2015 08:09:46 +0000 (01:09 -0700)
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

index d0916e5d535a2c5aac43942d210218cc85a055b7..112baae05a6e206770b8790fdd5c1998cf8152df 100644 (file)
@@ -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)