Commit Graph

443 Commits

Author SHA1 Message Date
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
uwe
668de03d5a options<SPACE> police 2008-10-28 00:05:04 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
sborrill
0369486cdc Add options WAPBL. Tested on Jornada 690.
OK uwe@
2008-09-25 08:06:40 +00:00
tls
fca9d633b9 Add accept filters to GENERIC kernels where they exist. 2008-08-10 15:31:20 +00:00
matt
91d4704c12 Update <machine/ieeefp.h> to use the C99 FE_* definitions instead of the
NetBSD defined ones.  Redefine the NetBSD ones in terms of the C99 ones.
Step 1 to having <fenv.h>
2008-08-05 16:47:41 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
kiyohara
aaf18737ff Split device_t/softc.
Use aprint.
2008-03-31 15:49:29 +00:00
uwe
fd8017cbe4 Use aprint_*. 2008-03-28 01:19:12 +00:00
uwe
43e743115c Split device_t and softc. 2008-03-28 00:13:15 +00:00
uwe
9694bbc3bd Convert to use CFATTACH_DECL_NEW (no softc). 2008-03-27 23:57:58 +00:00
uwe
e6030fb8a9 Split device_t and softc. 2008-03-27 23:57:21 +00:00
uwe
99111ebac3 Convert to use CFATTACH_DECL_NEW (no softc). 2008-03-27 23:42:34 +00:00
uwe
b5ba6eeb69 Split device_t and softc. 2008-03-27 03:58:47 +00:00
uwe
63387b243b Convert to use CFATTACH_DECL_NEW (no softc). 2008-03-27 03:35:12 +00:00
uwe
a0caab7521 Split device_t and softc. 2008-03-27 03:34:14 +00:00
cube
607ead0ef4 Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend).  Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
drochner
bb33f35f20 Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
2008-02-20 21:43:33 +00:00
uwe
67b202aca8 Use aprint_*, device_xname. 2008-02-17 06:03:13 +00:00
uwe
cf7d73cb17 hd64461_set_bus_width - use named constants instead of bit shift magic. 2008-02-17 05:38:30 +00:00
uwe
45b20506a7 hd64461_info: Print correct full name for STBCR (s/system/standby/). 2008-02-17 04:10:45 +00:00
uwe
33c3cdcb5b Minor cosmetic - add blank like so that "if" is not visually jammed
into preceding "else if".  Correct #endif comment.
2008-02-12 21:47:46 +00:00
joerg
e69482d49d Introduce device_find_by_xname and device_find_by_driver_unit to replace
alldevs iterations all over src.

Patch discussed with and improved on suggestioned from cube@.
2008-02-12 17:30:57 +00:00
uwe
de7abf3b9f Include std.sh3el.
Drop EXEC_ELF32 from configs now that it is standard.
2008-02-02 06:09:11 +00:00
uwe
f38b1e35de Now that sh3 has didicated interrupt stack we can check for cpu_intr_p
with simple sp comparison, so we can drop ci_idepth.
2008-01-07 05:00:12 +00:00
ad
2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
perry
9b2b412c19 __FUNCTION__ -> __func__ 2007-12-15 00:39:14 +00:00
tsutsui
99221a563b Use TAILQ_FIRST(3) and TAILQ_NEXT(3) macro. 2007-12-05 12:31:25 +00:00
ad
4b293a84e1 Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
2007-12-03 15:33:00 +00:00
kiyohara
a1297d6f3f Add bcsp(4). 2007-12-02 05:19:11 +00:00
xtraeme
4ba09b41c3 Remove System V semaphores and share memory options to set the limits:
SEMMNI, SEMMNS, SEMUME and SHMMAXPGS.

They can be tweaked via sysctl now. Ports that were setting values on
them weren't touched, I only removed the ones that were commented out.
2007-11-04 14:34:19 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
kiyohara
16a545f47e Add psh3pwr(4). 2007-09-25 17:40:29 +00:00
kiyohara
e78479483b Support apm(8). 2007-09-24 18:08:53 +00:00
kiyohara
685380a8a8 Add psh3pwr. 2007-09-24 16:16:42 +00:00
he
dc396e3ae7 Adapt to the new signature of kthread_create(), and the removal
of kthread_create1().
2007-07-17 11:16:14 +00:00
uwe
1158881562 Grr, revert unrelated changes that are traces of an unfinished experiment. 2007-07-11 22:17:55 +00:00
uwe
2af9604e01 Catch up with callout_init signature change. 2007-07-11 22:15:41 +00:00
uwe
aa22c77a5b Fix previous: sc_event_thread should be a pointer to lwp_t. 2007-07-11 22:13:30 +00:00
ad
88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
uwe
b419ee7e97 Don't treat KLOADER_KERNEL_PATH as an option to enable kloader(4).
Define proper option KLOADER instead and make KLOADER_KERNEL_PATH
default to "/netbsd".  Make it possible to compile w/out kloader.
2007-06-03 19:46:23 +00:00
uwe
4a747421e0 Rename j6x0tp_set_enable to j6x0tp_enable_child which better reflects
what this function does and is way less confusing too.
2007-06-01 18:23:46 +00:00
uwe
aa1315c604 Cosmetic. Use device_xname. Don't compile debugging support. Drop
out-of-date comment for j6x0tp_attach (we haven't been using submatch
for quite a while).
2007-06-01 17:44:46 +00:00
uwe
6542efa4c8 Add COMPAT_40. 2007-06-01 14:30:32 +00:00
uwe
d3c68aea21 Cosmetic. Propagage "static" to definitions. Don't use // comments.
Add comments to mark machdep hpcapm functions and pertinent vars.
2007-03-13 03:00:49 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
thorpej
16ed6645b5 TRUE -> true, FALSE -> false 2007-02-22 05:31:52 +00:00
thorpej
712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
mrg
4410329b87 add a pair of new bus_dma(9) functions:
int _bus_dmatag_subregion(bus_dma_tag_t tag,
				  bus_addr_t min_addr,
				  bus_addr_t max_addr,
				  bus_dma_tag_t *newtag,
				  int flags)
	void _bus_dmatag_destroy(bus_dma_tag_t tag)

that allow a (normally broken/limited) device to restrict the bus address
range it can talk to.  this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.

all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.

XXX: bus_dma(9) needs an update still.
2007-02-21 20:41:23 +00:00
ad
3363855a4a Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00