Commit Graph

168976 Commits

Author SHA1 Message Date
martin
26190df844 Fix minor device_t split fallout. 2008-04-21 08:16:12 +00:00
dyoung
197afa999c Change int to bool in a couple of places. 2008-04-21 05:33:55 +00:00
dyoung
babbbc034d s/(caddr_t)// 2008-04-21 02:10:45 +00:00
dyoung
246781acda Change bzero calls to memset calls. 2008-04-21 02:08:09 +00:00
ad
185116891b Don't send signals from a hardware interrupt handler. XXX This is still
dodgy, because sc->sc_asyncproc can exit and we don't find out about
that.
2008-04-21 00:30:21 +00:00
tls
002d314a9b Don't use mtrr functions if not options MTRR. There are many more instances
of this bug, particularly in the COMPAT_FOO32 code.
2008-04-21 00:18:39 +00:00
ad
e655812d5c Regen. 2008-04-21 00:14:22 +00:00
ad
08b44dd8b9 timer fixes for PR 37093:
- Fix serious concurrency problems, making the code MT and MP safe in
  the process.
- Don't allocate memory or inspect process state from hardclock().
2008-04-21 00:13:46 +00:00
wiz
160b1e8f05 texinfo-4.12 is out. 2008-04-20 23:49:03 +00:00
ad
76f153e120 sync() a couple of times to benefit diagnosis of sloppy kernel code that
crashes during boot to multiuser.
2008-04-20 23:40:31 +00:00
oster
6fef1b6c62 Cleanup function prototypes. No functional change. 2008-04-20 20:46:41 +00:00
oster
5654bb482d Introduce a function to return the default head separation for RAID 1
sets.  This helps ensure that the sliding status window (coming soon!)
for reconstructs will always be correct.
2008-04-20 20:42:32 +00:00
plunky
9abc85a7e2 use __arraycount macro instead of rolling our own 2008-04-20 19:34:23 +00:00
ad
573e08da0c ttys are allocated/freed infrequently enough that there is no point having
a seperate pool for them.
2008-04-20 19:30:13 +00:00
ad
664f91e474 Improve ^T / SIGINFO handling:
- Restore code removed during LWPification.
- Don't touch proc state from a hardware interrupt handler.
- Fix the locking.
2008-04-20 19:22:44 +00:00
rafal
e43f18015f Fix detection / attachment of CF / PCMCIA cards present at boot-time. This
was broken by one of the early vmlocking merges, which removed the kthread
that did the initial detection / attachment and instead called the code
directly from the PCMCIA controller attach method.

Submitted in PR port-hpcarm/37227 by Peter Postma; I've tweaked it ever-so-
slightly.
2008-04-20 16:47:52 +00:00
jmcneill
865860bc30 Improve error reporting when we fail to enter a sleep state, eg:
acpi0: entering state 1
  acpi0: ACPI S1 not available on this platform
2008-04-20 16:26:36 +00:00
rafal
6583c572da Enlarge the number of L2PTs used for mapping the kernel since our kernels
have gotten fatter with age and even the stock kernels were bigger than the
code could handle.

Thanks to Jason Mitchell for sending me a Jornada 720 so I could actually
test this.
2008-04-20 16:19:46 +00:00
tsutsui
bd8476b16b Misc cosmetics. 2008-04-20 15:44:01 +00:00
tsutsui
fa0277bb60 - use uint8_t instead of u_char for unsigned byte values
- make cs_softreq volatile
2008-04-20 15:42:47 +00:00
scw
3fd7f57e57 There's really no need to switch VM contexts within cpu_switchto() as
MI code always calls pmap_deactivate/pmap_activate on context switch.

Instead, just record the last active lwp (or NULL if it exited) and
defer switching VM context to pmap_activate(). This saves an additional
function call overhead in cpu_switchto().

While here, g/c unused cpuswitch.S local .Lblock_userspace_access.
2008-04-20 15:42:19 +00:00
scw
9d52faae48 Pull in a couple of fixes from FreeBSD, the first of which addresses a
failure of wpa_supplicant(8) to re-key promptly, as reported in
http://mail-index.netbsd.org/tech-net/2008/04/18/msg000459.html

- Make bpf's read timeout work more correctly with select/poll.

- A fix for catchpacket() which delays calling bpf_wakeup() until
  the state has been updated.
2008-04-20 15:27:10 +00:00
martin
795befa36d namespace police to make it buildable (no, it still does not work),
add rcsid.
2008-04-20 15:01:14 +00:00
tsutsui
669312ed5a Regen from isapnpdevs rev 1.66:
> Add an entry for Symbios SYM53C416.
2008-04-20 13:26:14 +00:00
tsutsui
40e734e069 Add an entry for Symbios SYM53C416. 2008-04-20 13:24:34 +00:00
macallan
ce0fcb9a82 mention X on rev. 4 sharks 2008-04-20 13:23:34 +00:00
apb
436bad5beb Rewrite the code that tried to canonicalise a path. Fixes a problem
in which "/wherever/src.2/../tools" was incorrectly changed to
"/wherever/src./tools" instead of the desired "/wherever/tools".

It's not clear to me that this script has any business trying to do this
sort of rewriting (and there's no guarantee that "/wherever/foo/.." and
"/wherever" both refer to the same place), but at least the new code
tries to be more careful than the old code.
2008-04-20 12:57:40 +00:00
chris
6cdf1e4c64 PXA270 uses a 3.25Mhz clock for OS timers, not 3.6864Mhz.
Also while here fix the delay loop used before timers are enabled to
cause a delay, by using a volatile int to do a countdown.  gcc has become
intelligent enough to optimize an empty loop away.

For delay on PXA270 we should use one of the other counters, and a 1Mhz
clock, so that we don't have to computer the counter increment.

XXX: also looks like there's a bug if the counter wraps, as delay doesn't
look like it allows for that.
2008-04-20 10:21:13 +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
cube
4e49392569 Restore jumbo frame support and protect access to the DMA space for
received frames with a mutex.

Tested by Paul Goyette, Martin Husemann and myself.
2008-04-20 08:57:37 +00:00
mlelstv
77f5b73003 When unp_internalize fails (due to the sanity check or an out-of-memory
condition), it leaves the control message with file descriptors. Calling
unp_dispose() will interpret the message as containing file pointers
and crash the system.
This change removes unp_dispose() from this failure path and avoids
using goto to jump into switch statements...
The previous workaround to ignore such messages in unp_scan() is removed.
2008-04-20 07:47:18 +00:00
mrg
9770ba3578 bump libbfd major since its ABI changed 2 weeks ago. 2008-04-20 07:11:21 +00:00
tsutsui
80b6cbc853 - use device_lookup_private() where appropriate
- some KNF and cosmetics
2008-04-20 03:05:55 +00:00
tsutsui
76e1faa427 Split device_t/softc, as following its parents zsc(4). Spotted by isaki@. 2008-04-20 02:28:05 +00:00
mjf
ede732e020 If cm->cmsg_len is not valid for unp_internalize do not use it to work out
where the data is in unp_scan.

Fixes PR/38391
2008-04-19 22:26:52 +00:00
martin
41de77d985 Sync SCM_RIGHTS passing code with the version used in racoon (i.e.
set message header and controll message size to the same value again)
2008-04-19 22:15:30 +00:00
macallan
72582f8379 Follow changes in xsrc to allow mmap()ing IO space on shark.
Now we have X on rev. 4 sharks.
2008-04-19 20:53:36 +00:00
scw
38ba2c7267 Adapt to the recent i2c_bitbang changes, which provide more hints as to
the SDA/SCL pin direction, by treating the direction as just that; a hint.

Instead, configure the SDA/SCL pins as outputs only when they are to
be driven low (zero). Otherwise configure them as inputs and allow the
pull-up resistors to do their jobs.

Check the SDA direction hint only if DIAGNOSTIC.

Fixes a problem reported by Donald T Hayford on port-arm@ whereby the
kernel failed to read/write the RTC's registers.
2008-04-19 20:49:31 +00:00
plunky
7c3f385475 correct cut and paste error in uuid_dec_be(); le16dec -> be16dec 2008-04-19 18:21:38 +00:00
simonb
cd6e2e6d8b Use ANSI prototype for cyrix6x86_cpu_setup(). 2008-04-19 14:33:08 +00:00
cegger
781f72a712 Use interrupt biglock wrapper as in x86/x86/intr.c
This change is based on http://mail-index.netbsd.org/port-amd64/2004/02/22/0000.html
OK bouyer
2008-04-19 13:46:12 +00:00
cegger
ed5b592b8e idt_* are not implemented for Xen. So don't provide the prototypes for Xen. 2008-04-19 12:10:08 +00:00
hannken
0789b071d1 Remove a race when pages are released while waiting for fstrans_start().
Fixes PR #38460
2008-04-19 11:53:13 +00:00
hannken
dc04f63f5b Remove stale include <sys/fstrans.h>. 2008-04-19 11:49:54 +00:00
yamt
bc776d3d3f add yamt-pf42 branch 2008-04-19 09:29:06 +00:00
njoly
416b3edee6 Add missing agp support for ALI M1689 chipset, for PR/35416. 2008-04-19 09:26:56 +00:00
lukem
e11ffebb07 Document the callback API used by "standard" functions.
NOTE: some of these will be changing in the future to be more
consistent with the technique used in the group & passwd backends.
I'm just documenting the existing behaviour.

Be more consistent when using certain terms.
Rename some variables to reduce confusion.
2008-04-19 08:24:45 +00:00
lukem
e39aac16df Add a missing const. 2008-04-19 07:56:34 +00:00
tsutsui
74a2e40f00 The DP83932C manual says the CAM enable register (CER) can't be
accessed on normal operations and the CER should be set up
through the last entry in the CAM desciptor area and loaded
via LCAM command, so make our driver do so, though the previoius
code (writing CER directly) worked without problems.

Tested on sn at jazzio on arc (in 32bit mode) by me and
sn at nubus on mac68k (in 16bit mode) by Paul Ripke on port-mac68k.
2008-04-19 06:59:08 +00:00
tsutsui
12cb822366 Fix a typo which is fatal on cards configured in 16 bit mode.
Problem is reported and fix is confirmed by Paul Ripke on port-mac68k.
2008-04-19 06:39:43 +00:00