Commit Graph

664 Commits

Author SHA1 Message Date
ad
b94f79f0e8 Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@. 2008-07-02 17:28:54 +00:00
cegger
17db90159e use device_lookup_private to get softc 2008-06-13 12:25:37 +00:00
ad
06c343ac94 vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both. 2008-06-04 12:41:40 +00:00
tsutsui
b87210fa51 Normalize my licenses. 2008-05-14 13:29:27 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tsutsui
cd2cdc0b9a No need to check whole alldevs to search a specific dmac unit in dmac3_link(). 2008-04-20 09:26:12 +00:00
tsutsui
14395bf943 Remove leftover stuff moved to dmac3var.h. 2008-04-09 15:43:03 +00:00
tsutsui
8f53f53cd9 Split device_t/softc, with misc cleanup. 2008-04-09 15:40:30 +00:00
tsutsui
d9941582bf Split device_t/softc for le(4) and variants and misc cosmetic changes. 2008-04-04 12:25:06 +00:00
tsutsui
02cb47cab2 Split softc and device_t for zsc(4) and its children.
XXX we should restructure MI APIs and make it really machine independent.
2008-03-29 19:15:34 +00:00
tsutsui
e9abc1656c Fix typo. 2008-03-29 14:34:13 +00:00
tsutsui
4090172b20 Don't forget to initialize sc_dev. 2008-03-29 05:42:45 +00:00
tsutsui
03bb6cc822 Split device_t and softc for MI mk48txx(4) and intersil7170(4) clocks,
and other related misc cosmetics.
2008-03-28 20:26:12 +00:00
tsutsui
a683a1b3c2 u_int32_t -> uint32_t, remove __P(), ANSIfy. 2008-02-21 14:32:31 +00:00
tsutsui
a62d10165d Use __arraycount(). 2008-02-21 14:30:41 +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
he
4d38f4204c Reinstate an accidentally removed #if test, so that this builds again. 2008-02-16 22:02:15 +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
tsutsui
636d4f1ae2 Account bi_size properly. 2008-01-31 17:38:56 +00:00
joerg
3615cf7715 Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
2008-01-20 18:09:03 +00:00
tsutsui
05517e38f5 - move todr_attach(9) calls from each MD attachment to MI mk48txx_attach()
- don't clear todr_setwen in mk48txx_attach() since it might be set by
  MD attachments
2008-01-10 15:31:26 +00:00
ad
4a780c9ae2 Merge vmlocking2 to head. 2008-01-02 11:48:20 +00:00
he
aa5a643b16 Follow up the change to soackaddr_dl by using CLLADDR() and propagating
const to camentry().
2008-01-01 01:04:20 +00:00
ad
2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +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
ad
34db286793 Use the softint API. 2007-11-26 23:29:36 +00:00
ad
f2c57d8566 Call zs_lock_init() to set up the chanstate's lock. 2007-11-09 00:05:04 +00:00
ad
d37935697b Merge tty changes from the vmlocking branch. 2007-11-07 15:56: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
ad
9f56dfa520 Merge brelse() changes from the vmlocking branch. 2007-10-08 18:02:53 +00:00
pooka
44a18be646 nuke unused homegrown assert() definitions 2007-09-24 14:16:54 +00:00
he
a37504be16 Remove a now-unused local variable. 2007-09-06 08:52:36 +00:00
dyoung
dcd8923429 Change a bazillion occurrences of code resembling this,
error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.
2007-09-01 07:32:22 +00:00
tsutsui
958c1b32fc Add options COMPAT_40. 2007-07-18 15:19:07 +00:00
he
8f6c85ab27 Patterned after sgimips, move include of <machine/intr.h> to only be done
when _KERNEL is defined and _LOCORE isn't.  Fixes build problem in the
extent regression test.
2007-07-17 14:36:25 +00:00
ad
63811f5275 Generic soft interrupts are mandatory. 2007-07-14 21:48:17 +00:00
tsutsui
de6d77dffd Use C99 initializers. 2007-07-03 10:11:49 +00:00
tsutsui
23e3926bbd No need to clear BSS if running kernel is loaded by the native bootloader. 2007-07-03 10:07:27 +00:00
tsutsui
c6f6d9c3c9 Print NEWS model name right after copyright and version
as other mips ports.
2007-07-03 09:55:30 +00:00
tsutsui
73b3a64df4 Move declaretions of _spl*() and _{clr,set}softintr() functions
(which are in mips/locore.S) into <mips/locore.h>
from various MD files.
2007-06-17 06:04:27 +00:00
tsutsui
18635db91f - add a declaration of apbus_wbflush() in apbusvar.h
- include <mips/locore.h> for mips3_wbflush()
- undef wbflush() macro before declaration of local inlined wbflush()
2007-06-17 05:53:01 +00:00
martin
c2534a819b Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
2007-06-04 08:55:18 +00:00
yamt
f03010953f merge yamt-idlelwp branch. asked by core@. some ports still needs work.
from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.
2007-05-17 14:51:11 +00:00
he
3dc744a85f Cast to char* before doing pointer arithmetic. 2007-03-08 22:28:41 +00:00
he
993fa67c04 Change local variables kernend and v to char*, since they are used
for pointer arithmetic.
2007-03-08 22:17:47 +00:00
he
7dfe4022f7 Cast to char* before doing pointer arithmetic.
Also put * close to variable name.
2007-03-08 22:08:50 +00:00
he
9ebf1fa4d2 Cast to char* to be able to do pointer arithmetic. 2007-03-08 21:50:25 +00:00
he
1aecca529f Cast to char*, not void* before doing pointer arithmetic. 2007-03-08 21:49:15 +00:00