Commit Graph

171485 Commits

Author SHA1 Message Date
reinoud
0687ceb21e Avoid panic when trying to mount a non existent block device like a
/dev/vnd0 that is not configured.
2008-07-03 18:01:08 +00:00
christos
b077640a6b Add iteration convenience macros; from Alexander Shishkin 2008-07-03 17:41:54 +00:00
drochner
f5d73c7fd3 split device/softc 2008-07-03 17:36:44 +00:00
drochner
abec36fc7a split device/softc for ioapic 2008-07-03 15:44:19 +00:00
ad
4c75eca868 syn_cache_get: remove new endpoint's socket from head's queue if aborting
the connection. Should fix KASSERT(so->so_head == NULL).
2008-07-03 15:35:28 +00:00
ad
f4ddfb5c59 lwp_lock: this can't be simplified for the UP case, as races still exist. 2008-07-03 15:15:40 +00:00
njoly
153124ee21 Fix SIOCGIFCONF ioctl for 64bit platforms. Add a new linux_ifreq
structure and linux_getifconf function (cleaned up version from
compat_ifconf).

While here, update linux_getifhwaddr to use the new structure.

Ok by christos.
2008-07-03 14:07:09 +00:00
drochner
54745077e8 Remove "struct device" from "struct pic", where it was only real
for ioapics and faked up for others. Add it to "struct ioapic_softc"
for now, until device/softc get split.
This required all typecasts between "struct pic" and "struct ioapic_softc"
to be replaced, I hope I got them all.
functionally tested on i386, compile-tested on xen, untested on amd64
2008-07-03 14:02:24 +00:00
drochner
81ae74c4eb On cardbus configuration reads, check for a master abort in the cbb
and return all-ones explicitely.
Since pccbb.c rev. 1.151 the cbb is set to translate cardbus master
aborts which makes that the PCI configuration read on the primary bus
returns random junk. This can cause the probing code to get confused.
The issue was reported by KIYOHARA Takashi and Jonathan A. Kollasch,
the patch was tested by KIYOHARA Takashi.
2008-07-03 13:37:34 +00:00
hannken
773658bf7e The Intel SCA backplane "ESG-SHV" does not support logical units. 2008-07-03 13:22:31 +00:00
matt
0b6e401be7 Use the same login in pmap_kenter_pa when removing an unmamanged mapping
as in pmap_kremove (otherwise kro_mappings will become incorrect).
2008-07-03 13:02:12 +00:00
ad
2526653044 vinvalbuf: broken assertion. 2008-07-03 12:37:09 +00:00
gson
9717620fd4 Revert the change of revision 1.37 - a driver must not blindly set the
mem/io enable bits of a PCI device as the BARs may not be correctly
configured.  Fixes PR kern/38857.
2008-07-03 12:26:41 +00:00
mishka
bdb4f49309 The wscons.conf syntax is assuming all arguments on their own fields. 2008-07-03 11:19:34 +00:00
ad
c4d3520a6e ufsdirhash_build: missing unlock in failure path. 2008-07-03 09:56:15 +00:00
matt
db24f36199 From: Andy Shevchenko <andy.shevchenko@teleca.com>
The OMAP2 ref timer providing a base for generic timecounting was configured
to reload at HZ similarly to the clock providing the tick interrupt at HZ.
This and the fact that the tc framework expected a full 32 bit counter range
resulted in time running ~40 times faster than normal.

Configure the ref timer as a full range counter to fix this.
2008-07-03 06:19:18 +00:00
matt
b2abaa8158 Nuke some debugging aprint's. 2008-07-03 06:18:01 +00:00
matt
74055e51f8 Nuke some remaining debug aprint 2008-07-03 06:17:24 +00:00
matt
45df48f8af The performance counter based delay function depends on a correct frequency
setting, do this for H4, which runs on a known fixed core frequency.

Submitted by Irme Deak <imre.deak@teleca.com>
2008-07-03 06:16:17 +00:00
matt
6a96a3909c For armv6(VIPT), change the rules for mapping via kenter_pa. Allow readonly
pages to be mapped by different cache color indexes.
2008-07-03 06:13:41 +00:00
matt
52956f334c Fix a typo in the delay loop time delta calculation.
From Irme Desk <imre.deak@teleca.com>.
2008-07-03 06:12:02 +00:00
matt
c62a0ac493 Add AT91 support. (XXX need to finish timecounter support). 2008-07-03 01:15:38 +00:00
he
3cb806e403 Add dependencies on the input files + Makefile for the auto-generated
files rumpdefs.h, rumpnode_if.h, and rumpvnode_if.c.  This is so that
an UPDATE build has a chance of succeeding.

Discussed with pooka@, and he wasn't totally against adding this...
2008-07-02 23:03:35 +00:00
he
b6ffc4250b Don't rely on <sys/mutex.h> being implicitly included, because on
some ports (mvme68k for example) that's not happening.
2008-07-02 21:18:14 +00:00
rmind
7781a976a7 Avoid calling a syscall when argument to sbrk(2) is zero.
OK by <ad>.
2008-07-02 20:07:43 +00:00
rmind
b7cdc71cd2 mq_open: fix confusion of FREAD/FWRITE and VREAD/VWRITE. 2008-07-02 20:06:09 +00:00
rmind
2a94bd63c1 Move scheduling functions from librt to libc.
Fixes PR/38657.
2008-07-02 20:05:16 +00:00
rmind
30dfdb2897 lwp_migrate: if LWP is still on the CPU (LP_RUNNING), it must be handled
like LSONPROC.  Should fix PR/38588.  OK by <ad>.
2008-07-02 19:53:12 +00:00
rmind
160268aca6 Remove proc_representative_lwp(), use a simple LIST_FIRST() instead.
OK by <ad>.
2008-07-02 19:49:58 +00:00
rmind
73f3b7bb31 Remove outdated comments, and historical CCPU_SHIFT. Make resched_cpu static,
const-ify ccpu.  Note: resched_cpu is not correct, should be revisited.

OK by <ad>.
2008-07-02 19:44:10 +00:00
rmind
61fc86b29b Remove locking of p_stmutex from sched_pstats(), protect l_pctcpu with p_lock,
and make l_cpticks lock-less.  Should fix PR/38296.

Reviewed (slightly different version) by <ad>.
2008-07-02 19:38:37 +00:00
drochner
14071b7c24 remove some obviously obsolete definitions 2008-07-02 19:18:52 +00:00
ad
16a991e560 uvm_pageidlezero: fix a broken test which made it give up too easily. 2008-07-02 17:47:53 +00:00
ad
b94f79f0e8 Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@. 2008-07-02 17:28:54 +00:00
ad
df158b64b4 Add some comments. 2008-07-02 17:06:12 +00:00
matt
7408df1239 Change {ff,fd}_exclose and ff_allocated to bool. Change exclose arg to
fd_dup to bool.  Switch assignments from 1/0 to true/false.

This make alpha kernels compile.  Bump kern to 4.99.69 since structure
changed.
2008-07-02 16:45:19 +00:00
matt
41f74018fd Add KASSERTMSG(e, msg) for umass.c. XXX directly calls panic. 2008-07-02 15:25:08 +00:00
matt
1906aa3e59 Switch from KASSERT to CTASSERT for those asserts testing sizes of types. 2008-07-02 14:47:34 +00:00
vanhu
d20c6ed916 From Timo Teras: fix some %d to %zu (size_t values) 2008-07-02 14:46:27 +00:00
vanhu
874968c865 fixed some %d to %zu (size_t values) 2008-07-02 14:46:26 +00:00
matt
67b10687dc Add CTASSERT (compile time assert) from FreeBSD.
Causes sources to fail to compile:
<file>:<line>: error: size of array '__ctassert<line>' is negative
2008-07-02 14:39:20 +00:00
reinoud
5eeb4f695a Update node sanity check system and redo allocation recording fixing
corruptions that could take place when overwriting sparse files.

Still one rare corruption possible where blocks are accidentally marked
free, but the cause is not yet found and looking at the pattern it won't
happen in every day use.
2008-07-02 13:25:33 +00:00
nakayama
773fffc601 UltraSPARCs don't have floating point queue, and reading %fq regsiter
will cause illegal instruction trap. So remove the code handling them.
2008-07-02 12:15:19 +00:00
ad
2c51a15095 Alter layout of fdfile_t slightly to make it fit into 64 bytes on alpha. 2008-07-02 10:30:09 +00:00
plunky
c4df96ad44 change licence of my old code to two-clause BSD licence
remove my name from advertising list
2008-07-02 10:16:20 +00:00
dyoung
d75414adf5 Let us add/remove features from ifconfig, such as support for
various address families (inet, inet6, iso, atalk) and protocols
(802.11, 802.3ad, CARP), simply by trimming the list of sources in
the Makefile.  This helps one customize ifconfig for an embedded
device or for install media, and it eliminates a lot of grotty
#ifdef'age.  Now, the ifconfig syntax and semantics are finalized
at run-time using the constructor routines in each address-family/protocol
module.

(In principle, ifconfig could load virtually all of its syntax from
shared objects.)

Extract a lot of common code into subroutines, in order to shrink
the ifconfig binary a bit.  Make all of the address families share
code for address addition/replacement/removal, and delete "legacy"
code for manipulating addresses.  That may have broken atalk and
iso, despite my best efforts.

Extract an include file, Makefile.inc, containing the make-fu that
both ifconfig and x_ifconfig share.

Sprinkle static.  Change some int's to bool's.  Constify.

Add RCS Ids to carp.c and env.c.  Move media code to a new file,
media.c.  Delete several unneeded header files.

Set, reset, and display the IEEE 802.11 attribute, 'dot11RTSThreshold'.

Bug fix: do not require both a interface address and a destination
address for point-to-point interfaces, but accept a interface
address by itself.
2008-07-02 07:44:13 +00:00
cube
13a6f63066 Protect private mbuf external data storage allocater with a mutex, as it
was done in nfe(4), sk(4) and msk(4).  And maybe some others.
Confirmed to fix the usual issue of data corruption by Jared McNeill.
2008-07-02 03:42:55 +00:00
macallan
9403c29e8e actually initialize sc_dmacmd and get rid of getnodebypci() - use
pcidev_to_ofdev() instead
noticed by Marco Trillo, tested on my iBook G4
2008-07-02 03:20:19 +00:00
dyoung
9b4187042c Comment out some device IDs that do not actually belong to mach64
devices.  This stops machfb0 from trying and failing to attach as
console on my G4 PowerBook.  Now, genfb0 will attach as console,
instead.

Apparently, Michael Lorenz made a similar change on the netbsd-4
branch, but it was never committed to -current.
2008-07-01 23:25:06 +00:00
dyoung
dcfcd6affa Cosmetic: use device_t, cfdata_t, __arraycount(), device_private(). 2008-07-01 23:19:48 +00:00