Commit Graph

186155 Commits

Author SHA1 Message Date
skrll 04f5bdc2c5 io / mem space access fixes. Mostly from OpenBSD. 2009-12-08 07:32:45 +00:00
skrll ba52bf79ae Simplify and improve dino_intr_map by checking for 0xff as error value.
Inspired by OpenBSD.
2009-12-08 06:56:54 +00:00
uebayasi f5321e7bbf Put back the dependency of dump.c agaist misc.h. This is needed because
dump.c includes misc.h but misc.h is generated on-the-fly.

Note that dump.c is out of the makeerrnos.sh -> misc.[ch] generation rule
now.  This prevents ktruss from being unnecessarily rebuilt in rescue/.

Pointed out by enami@, thanks!
2009-12-08 02:56:37 +00:00
joerg 8c11e3845e Fix typo. From Brad Tilley. 2009-12-08 02:40:04 +00:00
dyoung 8f3647df11 Don't mention the activate interface, since config_activate() has been
gone for a while, now.
2009-12-07 23:50:39 +00:00
wiz 103bd24819 Bump date for new sysctl. 2009-12-07 23:48:01 +00:00
roy c9c21f1ecc Test against SSIZE_MAX as pointed out by enami tsugutomo. 2009-12-07 21:31:43 +00:00
pooka 4d6a407bdd Process flush requests from the file server in a separate thread
context.  This fixes a long-standing but seldomly seen deadlock,
where the kernel was holding pages busy (due to e.g. readahead
request) while waiting for the server to respond, and the server
made a callback into the kernel asking to invalidate those pages.
... or, well, theoretically fixes, since I didn't have any reliable
way of repeating the deadlock and I think I saw it only twice.
2009-12-07 20:57:55 +00:00
nakayama c2c5d365aa Print the warning message if extent_free fails. 2009-12-07 19:57:34 +00:00
dyoung 124a629265 Poison future uses of DVACT_ACTIVATE by deleting it. I deleted the last
"use" of DVACT_ACTIVATE in a driver, yesterday.
2009-12-07 19:45:13 +00:00
christos 8f7e9f408c PR/42243: Yasuoka Masahiko: Add support for "net.inet.icmp.bmcastecho" support.
Print the current status.
2009-12-07 18:48:45 +00:00
christos adf7e47145 PR/42243: Yasuoka Masahiko: Add "net.inet.icmp.bmcastecho" sysctl support,
to disable icmp replies to the broadcast address.
2009-12-07 18:47:24 +00:00
dyoung 04489f616a Initialize/compare pointers with NULL instead of 0. 2009-12-07 18:38:55 +00:00
pooka 32a3b13698 add comment 2009-12-07 17:38:16 +00:00
agc 5674064867 Add a prototype for netpgp_match_list_keys() 2009-12-07 16:56:03 +00:00
martin 071ab236f8 size_t %z police 2009-12-07 16:55:37 +00:00
uebayasi 58b17edd41 Define dependencies of arith.[ch] on arith.y. 2009-12-07 16:22:41 +00:00
agc 93d262f9d5 + The internal variable "sshetcdir" has been renamed to "sshkeydir"
+ Take advantage of the new regular expression searching methods
2009-12-07 16:18:44 +00:00
agc 99e2a61b78 The internal variable "sshetcdir" has been renamed to "sshkeydir" 2009-12-07 16:17:57 +00:00
agc 183e04eb84 + When using ssh keys, use the first key as the default userid, unless
specified.

+ The internal variable "sshetcdir" has been renamed to "sshkeydir"

+ When matching the text fields in the username, use an ICASE, NOSUB, EXTENDED
regular expression. This allows more advanced ways of searching, such as:

% netpgpkeys --list-keys '\.de\>'

to find all the keys in the default keyring which have an email address
in Germany. This is actually surprisingly useful.
2009-12-07 16:17:17 +00:00
pooka 0ff1ef75c2 Need to send protocol layer response instead of transport layer
return value.  While there, just collapse all non-supported types
into one entry.
2009-12-07 15:51:52 +00:00
tsutsui 127e92aba6 Remove "#if defined(amiga) || defined(atari)" for PG_SHIFT.
Use PGSHIFT from <machine/param.h> instead.
2009-12-07 14:23:45 +00:00
pooka 20f444ae36 Mark putter as MODULE_CLASS_DRIVER to make it autoloadable. This
fixes autoloading of puffs upon mount.
2009-12-07 13:41:44 +00:00
nakayama 7ef930a8ee - fix corner case bugs around the segment offsets.
- make sure that on error condition we return "no valid mappings".
2009-12-07 11:28:37 +00:00
nakayama 5d49252b81 Add comment about an uncorrectable DMA error sometimes observed on
tlp(4) on Netra X1, and its workaround.

Also add membar_storestore, from OpenBSD.
2009-12-07 11:24:30 +00:00
nakayama af8f0b5c72 Calculate DVMA pages correctly. 2009-12-07 11:18:38 +00:00
nakayama af025f644d Avoid use of iommu_dvmamap_unload in error path. It is too
expensive since it contains data cache flushing.

Some driver (tlp(4) with DM9201 on Netra X1) can only handle one
DMA segment, so it was called frequently.
2009-12-07 11:14:27 +00:00
nonaka 5210b539fa remove init entry.
add floppy entry.
2009-12-07 10:03:37 +00:00
skrll 79b3e7eed6 Recognize $L as a local symbol for mips64. 2009-12-07 10:00:21 +00:00
kiyohara c5b6dd5921 Remove null-line. 2009-12-07 08:58:48 +00:00
pooka 218004ca6a remove rest of 'no file-system PORTAL' (portalfs kernel driver was removed) 2009-12-07 08:57:38 +00:00
he 26717af9ee Can't negate a now non-existent file system (PORTALFS was removed). 2009-12-07 08:50:01 +00:00
uebayasi 42bd5b4c13 Typo. 2009-12-07 07:43:05 +00:00
eeh 9d21c97885 Fix some more hangs and deadlocks. 2009-12-07 04:12:10 +00:00
wiz df7499f832 Remove me from some responsible lines. 2009-12-07 00:47:49 +00:00
dyoung a14d2f3527 Simplify device-activation hooks. 2009-12-06 23:17:09 +00:00
dyoung e98edc8502 Delete dead code. 2009-12-06 23:15:59 +00:00
dyoung be75895d2f Simplify device-activation hook. 2009-12-06 23:14:39 +00:00
dyoung e347b9986c Simplify device-activation hooks. 2009-12-06 23:14:05 +00:00
dyoung 0a9ae61983 device_t/softc split. 2009-12-06 23:05:39 +00:00
dyoung 903d1910d3 Simplify device-activation hooks. 2009-12-06 23:05:06 +00:00
dyoung c2a519975e Simplify device-activation hook. 2009-12-06 22:56:56 +00:00
dyoung b9e4d3a3cb Delete the do-nothing device-activation hook, drm_activate(). 2009-12-06 22:51:25 +00:00
dyoung c6747de6d7 Simplify device-activation hooks. 2009-12-06 22:49:48 +00:00
dyoung 93c9b12505 Delete do-nothing device-activation hooks. 2009-12-06 22:48:17 +00:00
dyoung 8cbd7f7c54 Delete dead code: a device-activation hook. 2009-12-06 22:44:55 +00:00
dyoung 4075f812e7 Simplify these device-activation hooks using the following semantic
patch.

XXX sc_dying must die.

@@
type device_t;

identifier act, midi_softc, midiactivate, sc, self;
@@

int
midiactivate(device_t self, enum devact act)
{
(
	struct midi_softc *sc = device_private(self);
|
-	struct midi_softc *sc;
+	struct midi_softc *sc = device_private(self);
...
-	sc = device_private(self);
)
...
	switch (act) {
-	case DVACT_ACTIVATE:
-		return (EOPNOTSUPP);
-
	case DVACT_DEACTIVATE:
(
	sc->dying
|
	sc->sc_dying
)
		=
(
	1
|
	true
)
		;
-		break;
+		return 0;
+	default:
+		return EOPNOTSUPP;
	}
-	return (0);
}
2009-12-06 22:42:48 +00:00
dyoung de0ad50405 Delete unnecessary device-activation hooks. 2009-12-06 22:40:56 +00:00
dyoung 711b27c90c Delete unnecessary device-activation hooks. Simplify the rest. 2009-12-06 22:33:44 +00:00
dyoung efc6bfe74a Simplify device-activation hooks. 2009-12-06 21:40:31 +00:00