[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-source-changes
Subject:    CVS commit: [netbsd-9] src/sys/dev/hil
From:       "Martin Husemann" <martin () netbsd ! org>
Date:       2024-05-16 12:23:13
Message-ID: 20240516122313.AD20FFA2C () cvs ! NetBSD ! org
[Download RAW message or body]

Module Name:	src
Committed By:	martin
Date:		Thu May 16 12:23:13 UTC 2024

Modified Files:
	src/sys/dev/hil [netbsd-9]: hil.c

Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1840):

	sys/dev/hil/hil.c: revision 1.8

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).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.4.1 src/sys/dev/hil/hil.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic