summaryrefslogtreecommitdiffstats
path: root/usr.sbin/jexec/jexec.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2015-07-30 02:23:09 +0000
committermarius <marius@FreeBSD.org>2015-07-30 02:23:09 +0000
commitc3199153b4ff7ed84a9d328adfd673c2ae73645e (patch)
tree5478d526719159908a716fe3e6d612087de36817 /usr.sbin/jexec/jexec.c
parent27f38bb43670deae34c5affea48929e3ca42ef54 (diff)
downloadFreeBSD-src-c3199153b4ff7ed84a9d328adfd673c2ae73645e.zip
FreeBSD-src-c3199153b4ff7ed84a9d328adfd673c2ae73645e.tar.gz
MFC: r285843
- Since r253161, uart_intr() abuses FILTER_SCHEDULE_THREAD for signaling uart_bus_attach() during its test that 20 iterations weren't sufficient for clearing all pending interrupts, assuming this means that hardware is broken and doesn't deassert interrupts. However, under pressure, 20 iterations also can be insufficient for clearing all pending interrupts, leading to a panic as intr_event_handle() tries to schedule an interrupt handler not registered. Solve this by introducing a flag that is set in test mode and otherwise restores pre-r253161 behavior of uart_intr(). The approach of additionally registering uart_intr() as handler as suggested in PR 194979 is not taken as that in turn would abuse special pccard and pccbb handling code of intr_event_handle(). [1] - Const'ify uart_driver_name. - Fix some minor style bugs. PR: 194979 [1] Reviewed by: marcel (earlier version)
Diffstat (limited to 'usr.sbin/jexec/jexec.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud