Commit Graph

451 Commits

Author SHA1 Message Date
uwe
32d2d9a6bb Defining another variable after multiline initializer for a previous
one in the same definition is very confusing visually.  Change order.
2008-12-02 20:48:24 +00:00
uwe
f79bc3126f Spell "gray scale" and "mono chrome" without the space. 2008-12-02 20:44:43 +00:00
uwe
3fb438b2cf hd64461video_set_display_mode_lcdc - expressing screen widths in hex
hardly helps readbility.  Express them in terms on 640*x or 640/x.
2008-12-02 20:39:36 +00:00
uwe
b523b8ffed hd64461video_info: fix pasto, correctly report 4-bit grayscale in LDR2. 2008-12-02 16:39:47 +00:00
martin
719a906ef5 As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
2008-11-30 18:21:31 +00:00
uwe
e1bf976dc6 Provide empty module_init_md() so that modular kernel links. 2008-11-17 01:55:00 +00:00
uwe
7d798e4789 Add commented out "options MODULAR" (doesn't work yet). 2008-11-12 19:41:30 +00:00
ad
0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
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