Commit Graph

85833 Commits

Author SHA1 Message Date
tsutsui 4f989cd028 KNF 2007-02-02 15:50:58 +00:00
is 390a01e1f0 Only the SigmaTel 4220 is _very_ fast 2007-02-02 09:39:24 +00:00
ober 5c470843ae Updates to allow Zaurus screen to rotate 90 degrees to a usable state with the keyboard. Patch from peter@ copied from OpenBSD. Feedback and OK from matt@ 2007-02-02 02:10:24 +00:00
skrll 52ca267ebe Workaround PR/35531 by preventing iee(4) from matching the 82596DX/SX
chip variant and adding ie(4) to the kernel to match it - ie(4) works.
2007-02-01 21:09:42 +00:00
tron 7b011b26ee Disable wsmouse(4) and all the related low-level drivers The installer
ramdisk doesn't support using the mouse anyway.

Idea provided by Blair Sadewitz in private e-mail.
2007-02-01 21:07:45 +00:00
freza 898efa526f Local variables bat{u,l} are only needed by OEA code, so ifdef them. 2007-02-01 19:59:03 +00:00
freza 55f2d910e2 On ibm405 (which the true meaning of PPC_IBM4XX), anything outside
kernel VM range is supposed to be mapped via reserved TLB entries,
so allow such VAs through.

Fixes kgdb failure observed by Jean-Francois Boudreault on port-powerpc
(thanks for testing, too).
2007-02-01 15:18:57 +00:00
plunky e9dd2c35eb Add another hardwired exception to the SOCK_RAW / superuser rule, because
(PF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI) sockets need to be accessable for
normal users.
2007-02-01 08:49:05 +00:00
cbiere 89165435c8 Avoid unnecessary cast in bufq_disksort_init(). 2007-02-01 00:36:37 +00:00
elad 85f515764b Fix notify only logic for credentials scope. Thanks ad@! 2007-01-31 16:30:09 +00:00
ad f8ab9664c4 ffree(): don't call kauth_cred_free() with a held simplelock. 2007-01-31 16:00:43 +00:00
msaitoh 053d47d1f3 add an entry for Willcom WS002IN PHS device(Prolific Technology PL2303X).
PR#35512
2007-01-31 10:11:50 +00:00
mjf 5b48fe33c5 PR kern/35527 - Patch applied, thanks! 2007-01-31 10:09:17 +00:00
msaitoh 597ba6f639 regen 2007-01-31 10:08:53 +00:00
elad c439bcfe43 Add a new scope, the credentials scope, which is internal to the kauth(9)
implementation and meant to be used by security models to hook credential
related operations (init, fork, copy, free -- hooked in kauth_cred_alloc(),
kauth_proc_fork(), kauth_cred_clone(), and kauth_cred_free(), respectively)
and document it.

Add specificdata to credentials, and routines to register/deregister new
"keys", as well as set/get routines. This allows security models to add
their own private data to a kauth_cred_t.

The above two, combined, allow security models to control inheritance of
their own private data in credentials which is a requirement for doing
stuff like, I dunno, capabilities?
2007-01-31 10:08:23 +00:00
msaitoh b7e0d69761 add entries for Prolific Technology's PL2303X 2007-01-31 10:07:31 +00:00
skrll 84371f955a Regen for mjf. Linux didn't work for him. 2007-01-31 10:06:16 +00:00
mjf bfb506d699 Add SHARP WS007SH USB device. 2007-01-31 10:00:03 +00:00
msaitoh 89a3deccf1 Apply OpenBSD's rev. 1.14 via patch:
> remove another Yukon Lite workaround.
2007-01-31 09:57:45 +00:00
msaitoh b70c89dfa7 fix bit definitions for the RX FIFO Flush mode 2007-01-31 09:56:26 +00:00
elad 8b125f4fa5 PR/35524: Brian de Alwis: panic from free in pathname_get
Patch applied, thanks for the report!
2007-01-31 08:29:20 +00:00
msaitoh 1482d8eb6f apply some patches from FreeBSD
o fix device timeout
 o add some workaround
 o TX underrun bug (grr...)
 o and some bugs
2007-01-30 11:58:10 +00:00
msaitoh e7d9c07f9f sync with if_skreg.h rev. 1.41
need more work?
2007-01-30 11:42:06 +00:00
msaitoh 874e8bcee6 sync with OpenBSD-current (many bugfixes, add some devices)
if_msk.c: rev. 1.42
if_mskvar.h rev. 1.3
if_skreg.h rev. 1.41
2007-01-30 11:34:38 +00:00
msaitoh 0f1f665622 regen 2007-01-30 11:32:08 +00:00
msaitoh 05a499893d add some msk devices 2007-01-30 11:31:40 +00:00
freza 4a09a01492 Document that unprotected access to softintr cookie is safe in
softintr_disestablish(), upon request from uebayasi@.
2007-01-30 05:42:24 +00:00
freza 4bf0309687 Protect softintr queues by direct manipulation of PSL_EE because PowerPC
ports have different IPL hierarchies. On macppc, IPL_VM is below IPL_AUDIO
and IPL_SERIAL so the queues got corrupted due to priority inversion.
Also fix a race condition in softintr_schedule() when testing "si_refs > 1",
it can lead to queue corruption and subsequent panic (below). As a side
effect, using PSL_EE directly is faster than going via spl*()/splx().

This is supposed to fix (XXX I don't have the hw):

  Panic: kernel diagnostic assert "si->si_refs > 0" failed: file
  "[...]arch/powerpc/powerpc/softintr.c" line 116

reported for example in:

  http://mail-index.netbsd.org/port-macppc/2007/01/25/0001.html

Discussed with briggs@ and macallan@.
2007-01-30 05:25:15 +00:00
bouyer 53bfe8e81c Drop M_PROMISC before passing the packet to a carp device, for the same
reason it's dropped before passing to bridge: when a vlan interface is
in promisc mode, it will loop the packet back to ether_input() with
M_PROMISC set, and when carp calls ether_input again the flag is still
there and the packet is dropped. If the carp interface doesn't take
the packet M_PROMISC is set just after is needed anyway.
Tested on a box with multiple carp on vlans, no comments about this patch
on tech-net@
2007-01-29 22:13:14 +00:00
hannken 4d607243ba Change fstrans enum types to upper case.
No functional change.

From Antti Kantee <pooka@netbsd.org>
2007-01-29 15:42:50 +00:00
tsutsui 1c17a4f65d Fix EEPROM functions for RTL8169SC chips:
rtl81x9.c:
 Increase delay on EEPROM access since EEPROM on RTL8169 based board
 seems to require slower clock. Also use common EE_DELAY() macro.

rtl8169.c:
 Use common rtk_read_eeprom() function to get Ethernet address on
 8169 chips because EEMODE_AUTOLOAD command was a workaround on
 original FreeBSD's driver and it doesn't work on 8169SC.

Problem reported and fix tested by Frank Lorenzen on current-users,
and also tested on 8139C with rtk(4) driver by me.
2007-01-29 12:11:42 +00:00
dyoung ba4e9d5953 In rtw_dequeue(), initialize *mp to NULL before anything else, so
that it is either NULL or a valid mbuf.  Previously, it was possible
for rtw_dequeue() to exit with 0 before initializing *mp.  rtw_start()
would have used whatever trash was in *mp, which would lead to
problems later on.
2007-01-29 07:08:09 +00:00
dyoung 7b077b0223 Cosmetic: whitespace nits. Shorten a staircase. Remove unnecessary
parentheses and casts.  Compare pointers with NULL instead of 0.
bzero -> memset.
2007-01-29 06:55:41 +00:00
dyoung 741e438b04 Cosmetic: bzero -> memset. Change a bcopy() to a struct assignment. 2007-01-29 06:20:43 +00:00
dyoung 7218cc6856 Cosmetic: bzero -> memset, remove gratuitous cast, compare pointer
with NULL instead of 0.
2007-01-29 06:13:58 +00:00
dyoung 347073533b In In ip6_setmoptions(), don't leave a route cache (struct route_in6)
on the stack if we exit with EADDRNOTAVAIL.

(I already fixed this bug once tonight.  Clearly, ip6_setmoptions
was cut-and-pasted from ip_setmoptions.)
2007-01-29 06:12:48 +00:00
dyoung 40d75dce06 Cosmetic: move an splsoftnet() call out of the variable declarations,
get rid of a gratuitous cast, change (struct socket *)0 to NULL.
2007-01-29 06:05:10 +00:00
dyoung f2a11fe343 bzero -> memset 2007-01-29 06:02:26 +00:00
dyoung ad4f290a37 bzero -> memset. 2007-01-29 06:00:11 +00:00
dyoung 24c98aa46f In ip_setmoptions(), don't leave a route cache (struct route) on
the stack if we exit with EADDRNOTAVAIL.
2007-01-29 05:59:30 +00:00
dyoung 0468886560 Cosmetic: remove extraneous, non-KNF parentheses. Change a
sizeof(type) to a sizeof(*ptr) so the correctness of the statement
is correct "at a glance" (or so I hope).
2007-01-29 05:48:56 +00:00
dyoung 4921da146d bzero -> memset 2007-01-29 05:46:33 +00:00
hubertf eda05c6413 Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.
2007-01-29 01:52:43 +00:00
chs 3ce7bad4ba add some SIIG and Moxa cards. 2007-01-28 21:44:29 +00:00
chs 032ffbf873 regen 2007-01-28 21:39:34 +00:00
chs 9fdfbf5cd7 add another Realtek wifi, some SIIG serial cards and another nForce chipset.
remove some duplicate entries.
2007-01-28 21:39:04 +00:00
chs 11703af575 don't print b_resid when it's not valid. 2007-01-28 21:33:24 +00:00
pooka 7f95c564bd add puffs 2007-01-28 20:55:20 +00:00
pooka 842f8f2a8a don't need pi_lock for struct member access, so don't take it 2007-01-28 00:27:33 +00:00
hubertf 9f04f18402 Enable Altq and some others, sinced from GENERIC 2007-01-27 23:41:09 +00:00