NetBSD/sys/arch/evbarm/g42xxeb
dyoung 94d985722a It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
2008-11-11 06:46:40 +00:00
..
g42xxeb_kmkbd.c Backout previous: the license sweep touched these files in error, so 2008-05-10 15:31:03 +00:00
g42xxeb_lcd.c use device_lookup_private to get softc 2008-06-11 23:24:43 +00:00
g42xxeb_machdep.c It is not appropriate to call pmf_system_shutdown(9) from 2008-11-11 06:46:40 +00:00
g42xxeb_reg.h
g42xxeb_start.S merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
g42xxeb_var.h Backout previous: the license sweep touched these files in error, so 2008-05-10 15:31:03 +00:00
gb225.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
gb225_pcic.c __FUNCTION__ -> __func__ 2007-12-15 00:39:14 +00:00
gb225_slhci.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
gb225reg.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
gb225var.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
if_ne_obio.c Adapt to device_parent() taking a device_t, not a struct device *. 2008-03-16 16:08:57 +00:00
obio.c Merge kernel changes in matt-armv6 to HEAD. 2008-04-27 18:58:43 +00:00