--- Gnu-Mach/i386/i386at/kd_mouse.c 2020/09/02 04:49:21 1.1.1.5 +++ Gnu-Mach/i386/i386at/kd_mouse.c 2020/09/02 04:53:36 1.1.1.6 @@ -630,6 +630,8 @@ int kd_mouse_read(void) while (mousebufindex <= mouse_char_index) { mouse_char_wanted = TRUE; assert_wait((event_t) &mousebuf, FALSE); + /* We are at tty SPL level, interrupts can not happen between + * assert_wait and thread_block. */ thread_block((void (*)()) 0); }