Commit Graph

383 Commits

Author SHA1 Message Date
cegger
c36dc14b18 use device_xname() 2009-05-12 06:31:37 +00:00
he
946ecbf082 Also update the prototype for pmap_enter1() after the recent
int -> u_int change.
2009-05-10 21:47:57 +00:00
cegger
1d89a182fb change pmap flags argument from int to u_int.
discussed with christos@ on source-changes-d@
2009-04-21 21:29:58 +00:00
tsutsui
0ec9ab77d8 Remove number parameters from pseudo-device loop and ipfilter. 2009-04-19 03:06:22 +00:00
tsutsui
ac465a42e7 Remove obsolete LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET.
They were removed from <lib/libsa/stand.h> on December 2007.
2009-04-03 10:38:12 +00:00
cegger
c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
dsl
82357f6d42 ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
joerg
f5b0fec0e0 Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
2009-03-06 20:31:46 +00:00
bjh21
c4605d6440 Make arckbd(4) compile even if the kernel is lacking wsmouse(4), wskbd(4),
rnd(4), or any combination of thoses.  Thanks to Havard Eidnes for reporting
the build breakage.
2009-02-16 21:36:09 +00:00
bjh21
a0263b80b8 I've just discovered config_found_ia(), which means that wskbd(4) and
wsmouse(4) can attach directly at arckbd(4) and I can dispose of the
ugly arcwsmouse(4) and arcwskbd(4) interpositions.  Do that, and purge
them from the documentation as well.
2009-02-14 10:20:55 +00:00
apb
0cc72e51ac Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
jym
92ae85d18e Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

See also http://mail-index.netbsd.org/tech-kern/2008/12/25/msg003924.html

Reviewed by abs@ in private mail.
2009-02-06 18:50:26 +00:00
bjh21
7697c48959 Make sure that dp8390_intr() gets passed the softc pointer, not the device
pointer, when it's called.
2009-01-21 23:36:30 +00:00
bjh21
0d3e94c475 Autoconfiguration cleanup for eca(4):
- Use device_t and cfdata_t.
- Split device_t out of eca_softc.
- Use aprint_*() rather than printf().
- Use device_xname().
2009-01-19 23:43:14 +00:00
bjh21
804a5a414b Split device_t from softc in arcvideo(4). Also tidy a rogue printf(). 2009-01-19 23:09:22 +00:00
bjh21
d7c9b7fb33 Split device_t out of softc, with one small fix where something wanted the
device_t but was getting the softc.
2009-01-19 00:11:16 +00:00
bjh21
96154ba75d Fix a bit of layout. 2009-01-18 23:25:12 +00:00
bjh21
c6e4ae9df0 Be consistent about what the void* cookies we pass to and from wscons contain,
in preparation for splitting softc and device_t.
2009-01-18 23:23:40 +00:00
bjh21
dcc1944658 Use device_xname() rather than dv_xname. 2009-01-18 22:57:55 +00:00
bjh21
ab4b4dc1da Autoconfiguration cleanup:
- Use device_t and cfdata_t rather than explicit structure pointers.
- Use aprint_*() rather than printf().
- Use device_*() rather than directly accessing structure members.
- Split device_t out of podulebus_softc.
2009-01-18 22:43:04 +00:00
bjh21
34052fb508 Split device_t from ioc_softc. 2009-01-18 20:31:08 +00:00
bjh21
792645e16e Now that I've fixed the bootstrap IIC stuff, split device_t out of softc. 2009-01-18 18:41:34 +00:00
bjh21
db48cd747b Add ARM_LOCK_CAS_DEBUG. 2009-01-18 18:24:23 +00:00
bjh21
a415d13dce A commit I missed from the recent migration to arm/fusu.S. 2009-01-18 18:23:59 +00:00
bjh21
e9aeb0583d Adapt the arm32 fusu implementation for use on PROG26 configurations
and use it on acorn26.
2009-01-18 16:42:09 +00:00
bjh21
30286df7bb Add what I hope is a useful feature whereby, in DIAGNOSTIC builds, trap
handlers leave a useful sentinel value in R14_svc instead of their own
return address.  This should mean that if something causes a trap in SVC
mode without saving R14 first, it'll cause a nice obvious panic rather than
a hang or worse.  Of course, if it's using R14 as a temporary, there may
still be some confusion.
2009-01-18 15:14:34 +00:00
bjh21
37ed0e6257 Need <arm/cpu.h> for GET_CURPCB.
Also, while it's true that at the moment struct user only contains
struct pcb, we probably shouldn't rely on that.
2009-01-18 01:31:58 +00:00
bjh21
554b5f62a3 Need <arm/cpu.h> for GET_CURPCB. 2009-01-18 01:30:44 +00:00
bjh21
9c8add5aef Now that GET_CURPCB and GET_CURCPU are generally available, use them
unconditionally rather than rolling our own (often badly) all over the
place.
2009-01-18 01:19:32 +00:00
bjh21
1175501ea1 Let the assembler generate my literal pools for me, since that makes things
more readable.
2009-01-18 01:17:07 +00:00
bjh21
8f2e944cdf Use more fields from curcup(), specifically ci_dev (replacing the local
the_cpu) and the various fields set from the CPU ID register.
2009-01-17 16:08:02 +00:00
bjh21
a91d2ba8c7 Small tweak to kernel RAS restart code: there's no need to restart if PC
is already at the first instruction of the RAS.
2009-01-17 15:43:52 +00:00
bjh21
e26a7c553a cpu_info_store, machine, and machine_arch can all be shared by acorn26 and
arm32, so share them.
2009-01-16 01:03:47 +00:00
bjh21
3947d9169a acorn26 and arm32 have identical versions of cpu_need_resched(). Unify them.
Similarly, with a small tweak acorn26 can use the same cpu_intr_p() as arm32,
so those can be unified too.
2009-01-16 00:44:43 +00:00
bjh21
b4036b9540 Remove a couple of spurious instructions from irq_entry -- there's
no need to copy SP into R0 to pass to irq_handler() when R0 already
contains SP from a few instructions earlier.
2009-01-16 00:13:25 +00:00
bjh21
805cc01a50 Finally purge __P() from sys/arch/acorn26. 2009-01-14 23:14:48 +00:00
bjh21
039be0e249 Nothing uses set_r13_irq(). Indeed, NetBSD/acorn26 doesn't use R13_irq
at all.  G/c the function.
2009-01-14 22:17:52 +00:00
bjh21
994c290845 atomic_set_bit() and atomic_clear_bit() are unused. Garbage-collect them.
If anyone wants such functionality, it's trivially synthesised with
atomic_cas_uint() anyway.
2009-01-14 20:43:28 +00:00
bjh21
22361356d3 Use a compatible format for printing suseconds_t. 2009-01-14 20:40:55 +00:00
bjh21
2403360562 Make the restartable atomic sequence for _lock_cas() actually atomic and
restartable on acorn26.
2009-01-13 22:43:48 +00:00
bjh21
583bfaa708 Autoconfiguration cleanup for arcvideo(4):
- Use device_t and cfdata_t rather than explicit structure pointers.
- Use device_private() rather than a cast to convert device_t to a softc.
- Use device_*() to get at the innards of device_t.
device/softc split not done yet because of worrying about bootstrap console
stuff.
2009-01-07 23:14:40 +00:00
bjh21
a3551a3ce2 Autoconfiguration cleanup for arcpp(4):
- Split device_t out of softc.
- Use device_t and cfdata_t rather than explicit structure pointers.
- Use device_*() rather than accessing parts of device_t directly.
- Use aprint_*() rather than printf().
Also ANSIfy arcpppushbytes.
2009-01-07 23:05:46 +00:00
bjh21
60f9cd19b7 Add arcpp(4) and eca(4) since they are aren't horribly broken. 2009-01-07 23:01:53 +00:00
bjh21
5ddd0631a0 Rework the bootstrap IIC stuff used by cmos_read() so that it works
properly, albeit only after iociic0 has been attached.  Happily,
cmos_read() isn't needed before that anyway.
2009-01-07 22:58:38 +00:00
bjh21
12052c1959 Make Econet code compile again. 2009-01-07 20:56:40 +00:00
bjh21
d5602e8683 Autoconfiguration cleanup for latches(4):
- Split struct device out of the softc.
- Use device_t and cfdata_t rather than explicit structure pointers.
- Use aprint_*() rather than printf().
- Use device_private() to convert device_t into softc.
2009-01-07 00:09:24 +00:00
bjh21
4c6ac02e21 Autoconfiguration cleanup for iociic(4):
- Use device_t and cfdata_t rather than explicit structure pointers.
- Use aprint_*() rather than printf().
- Pass "self" to config_found_ia rather than &sc->sc_dev.
Also an amount of KNF.
I haven't actually split the device structure off from the softc because
iociic_bootstrap_cookie() expects to allocate fake versions of both at once,
and I've not yet decided what it's best to do about that.
2009-01-07 00:06:59 +00:00
bjh21
06d5a26fdb Autoconfiguration cleanup for arckbd(4):
- Use device_t and cfdata_t rather than explicit structure pointers.
- Split device and (non-existent) softc for arcwskbd and arcwsmouse.
- Use aprint_*() rather than printf().
- Use device_*() to access fields of device_t.
- Use device_private() rather than a cast to convert from device_t to softc.
device/softc split not done for arckbd(4) itself because there are lots
of void* cookies that get treated as arckbd_softc at one end and device_t
at the other, and they'll need a little thought to clean up.
2009-01-06 23:58:00 +00:00