NetBSD/sys/dev/hil
tsutsui adfd220df8 Fix "stray level 1 interrupt" panic by pressing keys during autoconf(9).
Also explicitly initialize sc->sc_status = HIL_STATUS_BUSY in hil_attach().

Previously hil_intr(9) returned immediately during 'cold', but
all interrupts are enabled at the end of configure() (actually
in MD cpu_configure()) and cold is cleared in confiugre2()
after configure(), so there is a small window when hil interrupts
can be triggered during cold.

It looks there is no problem to process hil_intr() before
hil_attach_deferre() is called via configure2() because
we already check 'sc->sc_status != HIL_STATUS_BUSY' on
processing a kthread.

Note this seems also to appease the similar panic on mame's hp9k370
emulation (though mame's emulation around DMAC looks still incomplete).

Should be pulled up to netbsd-10 and netbsd-9.
2024-05-06 13:27:49 +00:00
..
Makefile
devlist2h.awk
files.hil
hil.c Fix "stray level 1 interrupt" panic by pressing keys during autoconf(9). 2024-05-06 13:27:49 +00:00
hildevs
hildevs.h
hildevs_data.h
hilid.c
hilkbd.c
hilkbdmap.c hilkbdmap.c: fix typo in comment and add NetBSD RCS ID 2022-08-11 23:38:45 +00:00
hilkbdmap.h
hilms.c Remove unused variable 2023-05-11 09:35:57 +00:00
hilreg.h
hilvar.h