Commit Graph

152314 Commits

Author SHA1 Message Date
bjh21
dc284185fb Use LDR/STR rather than LDM/STM for saving R14 over L_cksumdata. LDM/STM
are apparently very slow on some processors.  This is an interim measure
while I work out how to expose __PROG{26,32} to assembly language.
2006-10-08 12:06:53 +00:00
scw
4f8db3981d Add the 'volatile' qualifier to all descriptor fields to prevent the
compiler optimising away or reordering accesses to them.

Fixes ehci(4) on NetBSD/evbarm when using -Os optimisation. It's likely
ohci(4) and uhci(4) are similarly afflicted, so the same changes have
been made there.

Quite how other platforms got away without this for so long is a mystery...
2006-10-08 11:52:48 +00:00
yamt
ce8b831234 tcp_output: don't make TSO duplicate CWR/ECE. 2006-10-08 11:10:59 +00:00
yamt
713f438722 tcp_output: don't try to send SACK option larger than txsegsize.
fix a panic like "panic: m_copydata: off 0, len -7".
2006-10-08 11:01:46 +00:00
xtraeme
85ff1590b2 Sync list of supported drivers with the code, patch by Claus
Andersen via PR kern/34754.
2006-10-08 08:57:19 +00:00
rillig
bec39efa30 Added a reference to ipcs(1), since that's where one can find out more
about the semaphore limits in case of [ENOSPC].
2006-10-08 08:22:34 +00:00
xtraeme
337d5c1a2f regen 2006-10-08 08:14:45 +00:00
xtraeme
68d8faa258 Added support for the following devices:
* Matrix Orbital MX4/MX5 Series
 * Crystal Fontz CFA-635 LCD

Patch sent by Claus Andersen via PR kern/34753.
2006-10-08 08:14:24 +00:00
pooka
e2f3993f69 VOP_REMOVE is supposed to vput the arguments before returning instead
of keeping them locked
2006-10-08 08:13:56 +00:00
pooka
2fc4655faf add missing depedency on libz, reported by salo 2006-10-08 08:07:34 +00:00
mlelstv
e19fb1ec00 Use last track info only if it gives a sane value. Fixes PR#34688. 2006-10-08 07:50:16 +00:00
thorpej
b3971ecdf5 Put common/lib/libc/stdlib into .PATH. From Hisashi T Fujinaka. 2006-10-08 04:31:55 +00:00
thorpej
04e486d9f8 Add specificdata support to procs and lwps, each providing their own
wrappers around the speicificdata subroutines.  Also:
- Call the new lwpinit() function from main() after calling procinit().
- Move some pool initialization out of kern_proc.c and into files that
  are directly related to the pools in question (kern_lwp.c and kern_ras.c).
- Convert uipc_sem.c to proc_{get,set}specific(), and eliminate the p_ksems
  member from struct proc.
2006-10-08 04:28:44 +00:00
thorpej
31adc576d7 Add subroutines for maintaining object-specific data for arbitrary
subsystems, based on work by YAMAMOTO Takashi.  This is intended to
be used by other subsystems (such as the proc_*() or lwp_*() routines)
rather than directly by consumers.
2006-10-08 04:21:53 +00:00
thorpej
82fd1ebbaa - Move strtoll.c and strtoull.c from libc/stdlib to common/libc/stdlib.
- Add strtoll.c and strtoull.c to libkern.
2006-10-08 03:14:55 +00:00
dogcow
789d2004b7 fix typo in 'config_finalize_register' 2006-10-08 02:56:52 +00:00
oster
1d51ed695f Re-work some of the initialization code to now use config_attach_pseudo()
and friends.  Addresses PR#32881.  BOOT_FROM_RAID_HOOKS dies.
More simplification possible now.
2006-10-08 02:39:01 +00:00
dogcow
859dcf3c5f add all the proper fields to _proxy 2006-10-08 02:34:51 +00:00
elad
ccf0312fe1 PR/32762: Magnus Eriksson: opl(4) states that it "[sounds] awful", please
rephrase

Reworded. Submitter is absolutely correct.
2006-10-07 23:40:18 +00:00
elad
009a00a3c3 PR/29220: Jachym Holecek: Document additional irq fixup for cbb(4).
Patch applied, thanks!
2006-10-07 23:35:39 +00:00
elad
d2c044e9f6 PR/22027: Mihai Chelaru: ifmedia(4) is incorrect/incomplete
Thanks!
2006-10-07 23:16:43 +00:00
elad
debd0acd05 Back out previous. This was a dup of PR/29144 that was fixed differently.
Thanks to pavel@ for pointing out, okay oster@.
2006-10-07 23:08:03 +00:00
apb
dc5994b41f /etc/shrc is used by both sh and ksh, but ksh doesn't support
se -o tabcomplete, so test before using it.  Problem reported
by Pavel Cahyna, and fix tested by him.
2006-10-07 22:50:51 +00:00
elad
9580da9e75 PR/32641: David Maxwell: No 'pkgsrc' manpage
Link pkgsrc(7) -> packages(7).
2006-10-07 22:36:57 +00:00
elad
3b60cb06d5 PR/29858: Miles Nordin: diskless(8) man page is wrong about
'option swap-server'

Patch applied, thanks!
2006-10-07 22:23:45 +00:00
elad
a35b07a2ca Correctly recover signal state if failed trying to set it.
Patch from David A. Holland in #NetBSD-code, thanks!
2006-10-07 22:16:19 +00:00
apb
b70c743b65 Include nbtool_config.h for tools build. This was part of the
patch supplied by Wim Lewis in PR 31232.
2006-10-07 22:04:18 +00:00
elad
1210859fa1 Add nit from rillig@ for PR/19603. 2006-10-07 22:02:47 +00:00
apb
26bf5ec9ea Add definitions for strmode. This was missing from the
patch in PR 31232.
2006-10-07 22:00:22 +00:00
elad
4b81c4e0d8 PR/30361: Hanspeter Roth: ath(4) - Netgear WG311 does not have an Atheros
chip

We did some digging, and the Netgear WG311 has three versions. The one
supported by this driver does, in fact, have an Atheros chip. V3 was
already listed as not supported, and the card you are referring to is
a V2 (with the TI chip) -- so a note was added right above the note for
the V3 version.

Input from David A. Holland and mlelstv@ on #NetBSD-code, thanks!
2006-10-07 21:46:50 +00:00
peter
d697e40372 PR/34746: Nino Dehne: pf(4)'s synproxy state breaks when used with tags
Apply OpenBSD src/sys/net/pf.c rev 1.486 and 1.487:

1.486:
When synproxy sends packets to the destination host, make sure to copy
the 'tag' from the original state entry into the outgoing mbuf.

1.487:
When synproxy completes the replayed handshake and modifies the state
into a normal one, it sets both peers' sequence windows. Fix a bug where
the previously advertised windows are applied to the wrong side (i.e.
peer A's seqhi is peer A's seqlo plus peer B's, not A's, window). This
went undetected because mostly the windows are similar and/or re-
advertised soon. But there are (rare) cases where a synproxy'd connection
would stall right after handshake. Found by Gleb Smirnoff.
2006-10-07 21:45:49 +00:00
rpaulo
6080ffe830 PR 30716: rc.d/ntpd{,ate} precedes rc.d/rtsold. By Ed Hynan.
rc.d/rtsold should be in the same start up line as dhclient.
2006-10-07 21:41:41 +00:00
thorpej
2e2d300f43 Grr, adjust last so that it works with our busted lint(1). 2006-10-07 21:40:46 +00:00
gdamore
0ccaea15ce Fix an incorrect calculation for the destination X direction when doing
blitting.  Thanks to David Redman (Tadpole) for noticing it.   This probably
escaped notice before, since we never do overlapping blits (in the X
direction), but this fix may prevent problems if someone ever does use it
for that.
2006-10-07 21:36:12 +00:00
apb
bed8b72282 Clarify that gethostbyname and gethostbyname2 can deal with
string representations of numeric addresses.  PR 28667
2006-10-07 21:30:39 +00:00
he
80d2ffd230 Cast addresses to int before doing arithmetic on them, as in uses
of roundup().
2006-10-07 21:13:02 +00:00
elad
854038392c PR/30819: Peter Postma: src/usr.bin/shlock has no license
Thanks to Matt Fleming for contacting Erik E. Fair and getting his
agreement to put a TNF license on this.
2006-10-07 21:13:00 +00:00
bjh21
c3d7e34641 hardsplx() is declared in <machine/intr.h>, so there's no need to declare it
here.
2006-10-07 21:12:00 +00:00
he
8a778982cb Make this actually build again -- cast addresses to int before
doing arithmetic on them, such as roundup().
2006-10-07 21:05:46 +00:00
elad
9c5eec0043 PR/23152: Matthew Mondor: Minor improvements to section 2 man pages for
NetBSD 1.6.1

Well we're long gone from NetBSD 1.6.1 but I adapted the patch to -current
as it seemed reasonable. Thanks for submitting!
2006-10-07 21:03:51 +00:00
bjh21
0e30542fee Make setsoftnet() into a macro, which seems to be the usual approach on systems
with generic soft interrupts.
2006-10-07 20:58:00 +00:00
gdt
058379036b Use IEEE80211_RADIOTAP_DBM_ANTSIGNAL (and NOISE) instead of DB,
because the Atheros values are at least close.
(discussed on tech-net)
2006-10-07 20:54:40 +00:00
rpaulo
20c84defc6 PR 34692: wpa_supplicant script.
By Jukka Salmi.
2006-10-07 20:52:52 +00:00
bjh21
0ddc4aa582 Make splsched() and splstatclock() into aliases for splhigh(), since
practically no hardware interrupts can occur above splstatclock().
This also makes splsched() faster, which is good since it's called an awful
lot.
2006-10-07 20:51:47 +00:00
thorpej
569c003c39 Use explicit initializers in STDEXT 2006-10-07 20:46:59 +00:00
yamt
94e70819e1 - make sackhole_pool static.
- unify duplicated hole allocation and accounting code.
(no functional changes.)
2006-10-07 20:16:04 +00:00
elad
925c6f17f2 PR/29722: Andreas Kling: chpass temporary files in /etc not always unlinked
We had a (long) discussion about this in #NetBSD-code and the consensus was
that /tmp should always be sticky (+t), and as such it is safe to create
the temporary files for chpass(1) in there. We added a check to guarantee
this (and bail out otherwise) and now temporary files are created in /tmp,
not filling up /etc.

Thanks to rivo nurges et al.
2006-10-07 20:09:09 +00:00
kardel
403d759108 - simplify code
- remove any 'permission checks' via geteuid() - with upcoming
  security models these might not match the model any more
- this also fixes a bug where ntp_adjtime() was denied (EPERM)
  even though only a legit read status was performed
2006-10-07 20:02:01 +00:00
yamt
5a0a4d9df3 revert tcp_sack.c rev.1.15 because it's unnecessary.
all callers of these functions are at splsoftnet already:
	tcp_sack_option
		tcp_input ok

	tcp_del_sackholes
		tcp_input ok

	tcp_free_sackholes
		tcp_close ok
		tcp_timer_rexmt ok
		tcp_timer_2msl ok
2006-10-07 19:56:14 +00:00
yamt
38fb8d4a38 revert tcp_close part of tcp_subr.c rev.1.200 because it's unnecessary.
all callers of tcp_close are at splsoftnet already:
	tcp_close
		tcp_input ok
		tcp_disconnect
			tcp_usrreq ok
		tcp_usrclosed
			tcp_usrreq ok
			tcp_disconnect
		tcp_timer_2msl ok
		tcp_drop
			tcp_usrreq
			tcp_disconnect
			tcp_timer_rexmt ok
			tcp_timer_persist ok
			tcp_timer_keep ok
			tcp_input
			syn_cache_get
				tcp_input
2006-10-07 19:53:42 +00:00