Commit Graph

164152 Commits

Author SHA1 Message Date
ad
d304f7c89c - Terminate vmlocking due to collateral damage. h8 cvs/patch/diff.
- Note vmlocking2.
2007-12-04 15:18:01 +00:00
tsutsui
2f66d76b2f Adapt sun68k ports to recent interrupt handling changes.
XXX: sun2 (m68010) doesn't have CAS instructions.
2007-12-04 15:12:07 +00:00
bjs
72127ffc00 drm unbreaking, round 1:
Fix the bus_dma(9) use in drm_pci.c and chnage struct drm_dma_handle_t
to match it.  Remove member dmaaddr from drm_dma_handle_t as well,
as I don't see it used anywhere.  Compile-tested only for now; please
report any problems to me.  Thanks.
2007-12-04 12:51:13 +00:00
dyoung
73b0c685df Use IFADDR_FOREACH(). 2007-12-04 10:31:14 +00:00
dyoung
5bbde3d775 Use IFNET_FOREACH() and IFADDR_FOREACH(). 2007-12-04 10:27:33 +00:00
dyoung
5f717043e5 Use IFADDR_FOREACH(). 2007-12-04 10:22:34 +00:00
dyoung
2fae21685a Reprogram multicast filter after SIOCADDMULTI / SIOCDELMULTI.
Fixes IPv6 stateless address configuration problems reported on
tech-net@.  Patch tested and found to work by Martti Kuparinen.
2007-12-04 09:22:05 +00:00
ad
bb7ddbf003 rw_vector_enter: assert !cpu_intr_p(). 2007-12-04 09:13:59 +00:00
ad
3a2e0f7355 ktd_callout: ktrace_lock can be acquired now. 2007-12-04 09:08:58 +00:00
ad
72bfe5209f ttysigintr: proclist_lock can be taken now. 2007-12-04 08:57:35 +00:00
skrll
20aefaf533 Improve signal trampoline support by recognising trampolines from previous
releases.
2007-12-04 08:38:14 +00:00
ad
7546fcf0ad softintr_ret: fix it to work properly after yesterday's change to mi_switch. 2007-12-04 08:03:46 +00:00
ad
a33059bb24 A quick-and-dirty test that forces the softclock interrupt to block. 2007-12-04 08:02:24 +00:00
he
a2a6dd1963 Define the various MIPS* CPU macros also for _STANDALONE in addition
to for _LKM, so that we don't #error out in that case.

This fixes the build for sgimips boot programs, which wants to use
libkern, which now includes the atomic stuff, which for the mips ports
ends up including this file.

"simonb said OK"
2007-12-04 02:43:48 +00:00
he
1e962f25f7 Correct what must obviously be a cut+paste-induced set of typos. 2007-12-04 01:13:38 +00:00
jmcneill
ec441ebbd7 Document boot -x 2007-12-04 01:00:54 +00:00
joerg
d84e0831f3 Revert last commit which added externs that never get defined anywhere.
At least lapic_get_timecount conflicts with the newly added lapic TC.
2007-12-03 23:29:26 +00:00
elad
5187640465 Don't make root an exception when enforcing rlimits.
Suggested by yamt@ months ago; okay christos@.
2007-12-03 22:37:34 +00:00
joerg
e5784d23f1 Add a CPU local timer based on the LAPIC. This is consistently faster
than TSC, but doesn't suffer from SpeedStep as TSC does.

The default quality is higher than HPET for UP, but -100 for
MULTIPROCESSOR as it needs CPU local state which doesn't exist yet.
2007-12-03 22:17:27 +00:00
ad
27f20ecf58 Soft interrupts can now take proclist_lock, so there is no need to
double-lock alllwp or allproc.
2007-12-03 20:26:24 +00:00
ad
395a384526 Merge from vmlocking. 2007-12-03 20:21:32 +00:00
ad
7a09009b52 Merge from vmlocking. 2007-12-03 19:06:36 +00:00
riz
3f811928da Cast sf->f_bsize to int to force signed division. Fixes this test
on amd64, and probably other 64-bit platforms.
2007-12-03 18:49:24 +00:00
riz
46e81bb02d Add SCTP and a second definition of STP. 2007-12-03 18:45:06 +00:00
wiz
6ffc795bbf New sentence, new line. Add comma in enumeration. 2007-12-03 18:19:08 +00:00
wiz
6ee13c8582 Do not overload Xr macro. 2007-12-03 18:14:48 +00:00
wiz
e270f5ec9c New sentence, new line. Use correct verb form. 2007-12-03 18:09:28 +00:00
ad
e96977751f Print return value on error 2007-12-03 17:59:45 +00:00
ad
0cf3a46daf 4.99.40 - interrupt changes 2007-12-03 17:15:37 +00:00
ad
9027344d32 For the slow path soft interrupts, arrange to have the priority of a
borrowed user LWP raised into the 'kernel RT' range if the LWP sleeps
(which is unlikely).
2007-12-03 17:14:59 +00:00
tsutsui
bdce6fcc66 Raise hp300_ipl2psl[IPL_VM] in intr_computeipl() accordingly.
(maybe mac68k has the same problem)

XXX: maybe we could use a possible highest device ipl (5 on hp300?) for IPL_VM.
2007-12-03 16:18:47 +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
pooka
af3b65635e Allow EVFILT_WRITE kqfilters to be registered and map them to
seltrue_filtops.
2007-12-03 15:24:06 +00:00
pooka
01f5a6d143 Some boys take a beautiful seltrue_filtops and hide her away from
the rest of the world - but let's not.
2007-12-03 15:21:57 +00:00
rafal
7b4886ba60 Clear interrupts as they are established, rearrange interrupt-mapping code
to make sure PCI slot 0 interrupt doesn't accidentally match the (unused)
PCI error interrupt.

Fixes kern/25462 at least on my Netra T1 ac200.
From OpenBSD; ok martin@
2007-12-03 14:13:18 +00:00
plunky
d8436629a8 initialize loop variable as loop is not necessarily undertaken 2007-12-03 10:41:59 +00:00
isaki
5b22b72692 white space fix. 2007-12-03 09:54:24 +00:00
isaki
48e1704028 Use standard error code (EIO) instead of standalone error code
(ESHORT).  Because loadfile_*() is used with or without
_STANDALONE, therefore, don't use error code in "saerrno.h".
Pointed out by and discussed with he@.
2007-12-03 09:51:30 +00:00
christos
9e2c6405b0 kill a diagnostic for now. 2007-12-03 02:20:24 +00:00
christos
33cb8be1db - add an elf aux vector entry for implementing $ORIGIN.
- the code to convert from a vnode to a path is commented out now until
  a better solution is implemented. Only absolute paths work for now
  (which is most of the cases).

requested by core
2007-12-03 02:06:57 +00:00
ad
2fdfbee8ac -GENERIC_DIAGNOSTIC 2007-12-02 23:55:52 +00:00
ad
685aa3baed DIAGNOSTIC is only one of many debugging options. 2007-12-02 23:51:22 +00:00
rumble
f06a64e97b Fix two minor bugs:
1) If ODCM is disabled (ODCM_ENABLE not set), clockmod_getstate() should
    return the maximum level (7), not the lowest (0), as the levels are
    defined as duty cycles where the highest implies no ODCM. Now sysctl
    machdep.clockmod.current doesn't lie upon init.

 2) Make the sysctl handler ensure that no disabled levels are permitted.
    Previously, a level disabled due to errata could be passed to
    clockmod_setstate(), which would search through the state array,
    skipping the unusable value. Consequently our index would be out of
    range and badness could ensue.

Okay'd by xtraeme@.
2007-12-02 22:44:57 +00:00
wiz
dd74b1a149 Standardize spelling. We use the full month name for .Dd. 2007-12-02 22:12:04 +00:00
wiz
c8684d9bac Standardize spelling. Remove superfluous Pp. Fix typo. 2007-12-02 22:09:34 +00:00
wiz
1746ee1de1 Add comma in enumeration. Punctuation nits. Fix a typo. 2007-12-02 22:05:51 +00:00
wiz
ba1fba9f16 Prepare for HTML output. 2007-12-02 21:52:30 +00:00
wiz
4998f61c09 Add comma in enumeration. 2007-12-02 21:45:59 +00:00
wiz
f9f8a4cb40 Use Nx and Ap. filesystem -> file system. 2007-12-02 21:44:58 +00:00
dsl
cd39f2272a Improve the likelyhood of the 'oosyscall' code (ie that for system call entry
via a call gate for i386 netbsd 1.0 and ibcs2) doing the right thing.
Untested because I've failed to get an a.out netbsd 1.0 binary to load.
2007-12-02 21:43:11 +00:00