Commit Graph

154775 Commits

Author SHA1 Message Date
wiz 0b5301abc7 Add RCS Id. 2006-12-29 10:39:59 +00:00
wiz 6ecddff523 Add RCS Id. Os needs no argument. Remove unnecessary .br
in SYNOPSIS. New sentence, new line. Use An for author name. Use standard headers.
2006-12-29 10:39:11 +00:00
rumble b469bdeb5a Tweak comments. 2006-12-29 07:15:01 +00:00
rumble e9e4c3f030 Change printing such that our 'timecounter:' message gets its own line on
IP12.
2006-12-29 07:06:19 +00:00
rumble 4713534bc9 Move the mips1_clock_intr handling into int.c where it belongs. 2006-12-29 07:00:11 +00:00
rumble 0cc003109f Add i8254 timecounter support for use on IP12.
Now pings aren't 0.000 ms anymore.
2006-12-29 06:52:01 +00:00
rumble 1426ceeded IP12 (and perhaps other systems) appear to be buggy and incapable of
reliably supporting badaddr(). False negatives appear to occur
approximately 1.8 percent of the time, although neither false positives
nor consecutive false negatives occur. We take advantage of the latter
property and always use a wrapper that makes multiple checks.

My IP12 no longer sees occasional ghost devices and related panics during
boot.
2006-12-29 05:26:30 +00:00
mouse ebc746c114 Very first import of the source-address-based routing pseudo-device,
before any cleanup at all, per discussion with perry@.
2006-12-29 04:20:14 +00:00
pooka 73f96ea2e7 Don't allow calls to be queued while MOUNTING. We don't make any
kernel->server calls at that time and it allows a window where
operations use an incorrect root node cookie.

XXX: there's still a (very much smaller and biglock safe) race, but
that's going to be solved by some more thorough restructuring
2006-12-29 01:37:11 +00:00
rumble eb755ecb24 Enable light(4). 2006-12-29 00:42:01 +00:00
rumble 163b9bb1ca Rework GIO probing a bit.
Devices present on the GIO bus needn't always provide a Product
Indentification Word, even if their address space is the same as the
address space of a slot. Separate the handling of probing for slot-based
devices and graphics devices, matching the latter first, and precluding
addresses probed for the former when a graphics device is known to exist
in a slot's space.
2006-12-29 00:41:11 +00:00
rumble 627a4f61bc Actually probe for the device when matching. 2006-12-29 00:31:48 +00:00
rumble b8c7e16b6c Update a comment and note the SetEng workaround. 2006-12-29 00:04:20 +00:00
dogcow 949714e345 Since pppd isn't part of the install image, having ppp in the kernel is a
little silly. (This also reduces the kernel size enough for build release to
work again.)
2006-12-28 22:32:19 +00:00
rumble 860011e433 Only probe on known supported base addresses. 2006-12-28 22:10:05 +00:00
rumble 210fcff558 Do not rely on the Product ID Word to be 0x04 since there is no such
thing for graphics options. Since we're removing this, ensure that we can
read the probe registers before proceeding.
2006-12-28 22:08:04 +00:00
ad 65c4eaafe1 Bump the hardware queue depth up to 256. 2006-12-28 19:17:12 +00:00
rumble fe6d50f4ad Check the return value of gio_cnattach as it can fail despite what the
PROM says we should do.
2006-12-28 18:32:08 +00:00
martin 1c4ebce529 Provide a full frame stack space in the clone'd child. 2006-12-28 17:46:03 +00:00
itohy d796584488 Don't use esp_pcmcia_enable() before attaching chip driver (ncr53c9x),
since it touches storage allocated by the chip attach function.
The chip driver properly calls scsipi_adapter_addref() /
scsipi_adapter_delref(), and just deleting the esp_pcmcia_enable() call
and the relevant code should be OK.

Fix panic descibed in PR kern/26909.
2006-12-28 16:37:46 +00:00
rumble d7e1303681 Permit mmap, improve register definitions, disable the hardware cursor, and
other minor nits.
2006-12-28 16:33:49 +00:00
rumble c4ba13a80c Sprinkle static. 2006-12-28 16:19:14 +00:00
rumble c77d82ad5f Handle fpu interrupts (MIPS interrupt 0) on IP12. 2006-12-28 16:15:11 +00:00
yamt 88bbf6ee26 mount_domount: revive code to enforce MNT_NOSUID and MNT_NODEV for usermount,
which was removed mistakenly by rev.1.286.  pointed by elad.
2006-12-28 14:33:41 +00:00
wiz 9fb2b767d2 New sentence, new line. Use Nx. Drop dot at end of SEE ALSO. 2006-12-28 11:44:19 +00:00
martin 55a9a999dd Use CCFSZ instead of 96 for standard save operations. 2006-12-28 10:02:43 +00:00
elad 5d2c44c76f PR/32877: Geoff C. Wing: mount_procfs(8) doesn't null-terminate cmdline
output

Patch applied, thanks!
2006-12-28 09:17:52 +00:00
elad 8e5a82bb94 Revert bogus NULL check introduced in revision 1.96 that generated false
Coverity "bugs".
2006-12-28 09:12:38 +00:00
alc 8f1ebe33c9 revert previous, after inspection `kfs->kfs_kt' could really not be NULL here.
reported/requested by elad@
2006-12-28 05:51:56 +00:00
alc 94d1925ccb fix comment (forgotten in rev 1.19):
- pfsnode -> kernfs_node
 - procfs -> kernfs
2006-12-28 05:49:05 +00:00
xtraeme d9e9fef5b7 More NQNFS fallout (hi yamt!). 2006-12-28 04:17:51 +00:00
itohy 3e588075d6 Stop callout on detach. 2006-12-28 03:13:54 +00:00
hubertf f300aecb2d Fill manpage with some data, taken from comments in the kernel source 2006-12-28 02:09:49 +00:00
yamt a23a6ee6c6 remove several nqnfs definitions. 2006-12-28 00:39:03 +00:00
chs 7645d04974 fix two more problems in the recent changes to lookup():
- don't hold the parent directory vnode locked while traversing mount points.
   the fs that's mounted might be an NFS served by a userland process
   like the automounter, which might need to traverse the parent directory
   in order to complete the lookup.
 - in the ENAMETOOLONG case fixed in rev. 1.75, set ni_dvp to dp
   since we've logically moved on to using "dp" as the parent.
   the caller will then handle vput()ing it as normal.
   this fixes PR 35279.
2006-12-27 23:21:02 +00:00
dogcow be3e9fcde5 fix a (valid) "buf may be used uninitialized" warning/error in DIAGNOSTIC. 2006-12-27 22:07:17 +00:00
dogcow d7e50df65a more NQNFS removal fallout 2006-12-27 21:53:58 +00:00
alc c7b3cb6e97 CID-3317: check for 'm != NULL' before using it (rework the code path to
explicitly return `EINVAL'. Before, it was done but later in
ip6_setpktopt() when checking for 'len < ...')
CID-3316: check for 'm != NULL' before using it

ok christos@
2006-12-27 18:49:40 +00:00
dogcow 0dbd865aab arg might be improperly initialized; fix that.
(also, since we check arg == NULL, s/arg = 0/arg = NULL/.)
2006-12-27 18:47:20 +00:00
alc a4ba78e89b CID-4197,4198: ensure that `fp' is not NULL before calling FILE_UNUSE()
ok christos@
2006-12-27 18:45:30 +00:00
alc 24803bd1c4 remove the KASSERT() introduced in last commit and use VLAN_OUTPUT_TAG() macro.
tested by martin@
pointed out and ok by pavel@, also ok from christos@
2006-12-27 18:36:09 +00:00
alc ea827cc550 CID-3809: move up the initialization of `fr' as we can jump to junkput: if
fr_inobj() fails. junkput: will then check the value of `fr' which is at
this time uninitialized.

CID-3803: don't leak `ipn' upon return

ok christos@
2006-12-27 18:28:54 +00:00
alc 980fc49cd5 CID-3325: don't leak `fd'
Also, check for the return value of malloc(3)

ok christos@
2006-12-27 18:13:53 +00:00
alc aca410156d CID-3802: don't leak `isc'
ok christos@
2006-12-27 18:10:03 +00:00
pooka a61b6925e7 support reading wtmp/wtmpx from stdin with -f -
from bin/35329 by David A. Holland
2006-12-27 18:03:26 +00:00
alc f8b0309827 CID-3821: don't leak `fh' and close the firmware properly
ok christos@
2006-12-27 18:01:45 +00:00
alc 2fc133de08 CID-4192: ensure we have 'uobj != NULL` here
ok christos@ and yamt@
2006-12-27 17:59:08 +00:00
alc c6ea7a850f CID-4199: move the test (line != NULL) one line up to check the
return value of strdup()

ok christos@
2006-12-27 17:55:05 +00:00
alc 0c17aa264d Fix a typo in ht_free() which caused the last list of the hashtable to be ignored.
It caused config(1) to crash on the following assert() if the list was used.

This bug shows up after the recent change in files.c which fixed a memory leak.

pointed out by dogcow@
reviewed by cube@
2006-12-27 17:50:27 +00:00
rumble ca581a2f34 Catch and report bus errors. 2006-12-27 15:56:26 +00:00