Commit Graph

100163 Commits

Author SHA1 Message Date
jdc
c10e3b28bd Add extra counter definitions (pointed out by Geoff Wing). 2009-05-07 06:46:54 +00:00
skrll
51ddbaac30 Wrap some wide comments. 2009-05-07 06:41:19 +00:00
cegger
73144fe522 device_t/softc split
patch presented on tech-kern@, no comments on it
2009-05-07 06:08:02 +00:00
roy
b49ed2c029 Make 3 attempts at bootp before trying bootparams which allows slow
bridges a chance to work.
Clear variables when changing bootp/bootparams.
Displayed variables are cleaned up so they don't overflow the right of
the screen.

ok: martin
2009-05-07 00:01:31 +00:00
roy
235c0d4ef6 We should check for potential overflows.
ok: martin
2009-05-06 23:56:49 +00:00
ad
b5dc34151d Unneeded LK_CANRECURSE. 2009-05-06 22:38:42 +00:00
ad
6977231a34 G/C reference to LK_CANRECURSE. 2009-05-06 22:38:31 +00:00
elad
8f15ad8a37 Provide privilege checking code snippets for all significant NetBSD
versions: < 2 (suser, proc), 2 & 3 (suser, lwp), >= 4 (kauth, lwp).

No functional change as it's all inside a big comment.
2009-05-06 22:17:41 +00:00
elad
4188b89914 Remove some usage of "priv" and "privileged" variables and instead pass
around credentials. Also push down kauth(9) calls closer to where the
operation is done.

Mailing list reference:

	http://mail-index.netbsd.org/tech-net/2009/04/30/msg001270.html
2009-05-06 21:41:59 +00:00
mhitch
6c4dd62a45 Add __insn_barrier() to _splset(). See also kern/38637. 2009-05-06 21:41:58 +00:00
mhitch
0742f912f5 Add memory clobber to the instructions that change the IPL in the status
register.  See also kern/38637.
2009-05-06 21:37:40 +00:00
elad
aedd27810d Sprinkle some switch defaults. 2009-05-06 21:10:22 +00:00
jdc
6e8d1a982c Check for internal PHY first, so that it always attaches first, even when
we have an MII transeiver attached.
Count all collision and error counters.
Handle counter overflow and RXTERR.

Tested on U60 HME, PCI HME (501-5019) and SBus Sunswift (501-2739)
2009-05-06 20:40:19 +00:00
elad
105d9a093d Replace curlwp->l_cred with kauth_cred_get().
Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/05/05/msg005038.html
2009-05-06 18:41:54 +00:00
cegger
af1172fad0 device_t/softc split
tested by jakllsch@
2009-05-06 18:25:28 +00:00
rmind
4ef6600a51 Revert previous until problem will be understood. 2009-05-06 16:43:47 +00:00
cegger
a591bc88dd struct device * -> device_t, no functional changes intended. 2009-05-06 10:34:32 +00:00
cegger
6b9f9b8644 use device_private() 2009-05-06 09:32:52 +00:00
cegger
59717d7121 struct cfdata * -> cfdata_t, no functional changes intended. 2009-05-06 09:25:14 +00:00
cegger
3261738b4d struct cfdata * -> cfdata_t, no functional changes intended. 2009-05-06 08:20:49 +00:00
cegger
6d542a9a5c add KASSERT to identify when PR kern/40734 happens again.
It happened to me twice and to Emmanuel Dreyfus (reported on port-amd64 ML)
2009-05-06 07:27:42 +00:00
cegger
a531bda091 correct previous: use %zu for BOOTP_SIZE_(MIN,MAX).
Pointed out by David Holland
2009-05-06 05:34:12 +00:00
cube
0f7746f7cc Bump required config(1) version after files.drm changes [hi mrg!]. 2009-05-06 02:52:13 +00:00
mrg
a35a651446 you can now easily select trying external drm with "options DRM_EXTERNAL". 2009-05-06 01:33:24 +00:00
mrg
a2836b8e54 avoid a warning seen with -O3. 2009-05-06 01:32:37 +00:00
macallan
98c856f101 enable ZX/Leo since we now support wscons on it 2009-05-05 23:58:50 +00:00
macallan
08f5b97b95 clear screen on attach 2009-05-05 23:55:04 +00:00
cegger
52b1d2aee7 struct cfdata * -> cfdata_t 2009-05-05 21:47:49 +00:00
cegger
3d240405ea CFATTACH_DECL3 is no longer used.
ok dyoung@
2009-05-05 21:40:25 +00:00
dyoung
e470d88889 Change struct cfdata * to cfdata_t. No functional change intended. 2009-05-05 21:34:13 +00:00
cegger
4474fa75b2 device_t/softc split
tested by and ok dyoung@
2009-05-05 21:33:21 +00:00
elad
b50c4b9e09 Add device scope actions for rnd(4) and use them.
Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/04/27/msg004953.html
2009-05-05 21:03:28 +00:00
bouyer
f48b5c49cc Declare sh_flags volatile.
Without it, on ports where splhigh() is inline, the compiler will optimise
the second SOFTINT_PENDING test in softint_schedule(). A dissasembly
of softint_schedule() with and without the volatile sh_flags confirm this
on sparc.
Because of this there is a race that could lead to the softhand_t
being enqueued twice on si_q, leading to a corrupted queue and
some handler being SOFTINT_PENDING but never called.

Should fix PR kern/38637
2009-05-05 20:26:36 +00:00
msaitoh
b25f90b108 Doesn't print error message only when the register is BGE_SRS_MODE.
It occurs on some environment (and once after boot?). Other *BSDs and
Linux don't print the error message for all registers.
2009-05-05 18:08:28 +00:00
tsutsui
a6747c30ce - KNF and some misc cosmetics
- remove a function name from error messages on attach failure
2009-05-05 16:38:41 +00:00
tsutsui
1ad413250a Add support for i82596 Rev A chip which doesn't have the enhanced 32 bit
big endian mode:
- add IEE_REV_A flag to indicate if chip support the 32 bit BE mode or not
- add IEE_SWAPA32() macro and use it on necessary 32 bit DMA pointers
- rename IEE_SWAP() macro for the SCP address pointer and statistics
  counters which require word swap even on Rev B/C chips to IEE_SWAP32()
  for clarification
- add comments about these BE mode quirks

Tested on HP9000 735/125 by me and also tested on 715/50 by skrll@
with netbsd-5 branch, and fixes MI part of PR port-hp700/35531.
2009-05-05 15:47:35 +00:00
cegger
4bbacd3411 buildfix: use %d for BOOTP_SIZE_(MIN,MAX).
Makes i386 ALL kernel build again.
2009-05-05 12:48:31 +00:00
nonaka
6cb21f59ee Added NE2000 with 8bit bus width support.
reviewd by tsutsui@ at tech-kern ML.
2009-05-05 12:37:24 +00:00
cegger
06e69f3860 struct device * -> device_t 2009-05-05 12:10:07 +00:00
cegger
f2bccc0a8e struct device * -> device_t, use device_private() 2009-05-05 12:07:15 +00:00
cegger
73af259591 Attach on BCM5709 chip.
XXX Firmware fails to complete initialization on this chip.
2009-05-05 10:21:22 +00:00
cegger
dc97f7f624 print autoconf error message with aprint_error 2009-05-05 10:02:52 +00:00
cegger
6a970ea21d device_t/softc split 2009-05-05 09:51:23 +00:00
rmind
3d7fe7769c ufsdirhash_recycle():
- Fix ufs_dirhashmem modification (do it atomically).
- Fix a memory leak.

OK by <ad>.
2009-05-04 20:54:25 +00:00
ginsbach
ced39b2b50 Mention POSIX.1-2008 (_POSIX_C_SOURCE == 200809L) and
XPG 7 (_XOPEN_SOURCE == 700) in comments.
2009-05-04 16:44:14 +00:00
manu
c328d568d4 TFTPROOT loads the RAMdisk through TFTP at boot time. It needs the
network to be functionnal, and therefore must be called after
config_finalize(). Unfortunately, config_finalize() attaches md0
through mdattach(), and when tftproot_getfile() attempts to attach it
later by calling mdattach() again, it gets a failure.

This change checks for the RAMdisk size in mdattach(). If it is zero, then
the RAMdisk has not been loaded yet, and nothing is done. It will be
attached later when tftproot_getfile() will call mdattach()
2009-05-04 16:20:41 +00:00
yamt
183ff8793d sysctl_doeproc: fix a bug in rev.1.135.
don't forget to mark our marker process PK_MARKER.
this fixes crashes in sched_pstats, etc.
2009-05-04 14:52:33 +00:00
pooka
b142e2e100 Nuke RUMPCN_HASNTBUF. The inspiration behind it must've been ... deep. 2009-05-04 14:31:25 +00:00
cegger
463905bb9c struct cfdata * -> cfdata_t 2009-05-04 12:38:51 +00:00
cegger
1a57d635a0 struct device * -> device_t
No functional changes intended.
2009-05-04 12:19:29 +00:00