diff options
author | Damien Zammit <damien@zamaudio.com> | 2024-02-11 12:00:04 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-11 15:02:09 +0100 |
commit | e97bef5c788fa9cf15aab28d469e5f72cb0360c7 (patch) | |
tree | 7f2c6f2eb5287b7e4d8914f549755dcc12cd671d /i386 | |
parent | 64d6180904ff348ff1f719cf00a09fcf95eceff5 (diff) | |
download | gnumach-e97bef5c788fa9cf15aab28d469e5f72cb0360c7.tar.gz gnumach-e97bef5c788fa9cf15aab28d469e5f72cb0360c7.tar.bz2 gnumach-e97bef5c788fa9cf15aab28d469e5f72cb0360c7.zip |
smp: Fix unable to enter kdb during boot
Message-ID: <20240211115958.1889648-1-damien@zamaudio.com>
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386at/kd.c | 1 | ||||
-rw-r--r-- | i386/i386at/kd_event.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c index 984d62e3..2bea3c8c 100644 --- a/i386/i386at/kd.c +++ b/i386/i386at/kd.c @@ -1127,6 +1127,7 @@ kdinit(void) k_comm |= K_CB_ENBLIRQ; /* enable interrupt */ kd_sendcmd(KC_CMD_WRITE); /* write new ctlr command byte */ kd_senddata(k_comm); + unmask_irq(KBD_IRQ); kd_initialized = TRUE; #if ENABLE_IMMEDIATE_CONSOLE diff --git a/i386/i386at/kd_event.c b/i386/i386at/kd_event.c index d4809084..247d95b1 100644 --- a/i386/i386at/kd_event.c +++ b/i386/i386at/kd_event.c @@ -121,7 +121,6 @@ kbdopen(dev_t dev, int flags, io_req_t ior) kdinit(); splx(o_pri); kbdinit(); - unmask_irq(KBD_IRQ); return(0); } @@ -140,7 +139,6 @@ kbdclose( { spl_t s = SPLKD(); - mask_irq(KBD_IRQ); kb_mode = KB_ASCII; kdq_reset(&kbd_queue); splx(s); |