Commit Graph

106022 Commits

Author SHA1 Message Date
njl
53952beb8e Change EISA probing to be less invasive. Instead of probing all slots
unconditionally, stop after the first one (system board) if no EISA hardware
is detected.  This fixes a boot hang (i.e. Thinkpad) when ACPI is disabled.
Also, split the probe code into a separate function and do some style cleanup.

Note that the Adaptec 2842 VLB controller probe is broken by this change
and will fail to probe.  It should be fixed separately.
2004-08-03 00:41:47 +00:00
julian
f1c5d06daf Remove an argument that is never used. 2004-08-02 23:48:43 +00:00
marius
8cc22a6e2c Add the PM1564 to the list of supported controllers.
OK'ed by:	scottl
2004-08-02 23:33:15 +00:00
marius
7a55a6bbcf - Set the CAM status to CAM_SCSI_STATUS_ERROR rather than CAM_REQ_CMP
in case of a CHECK CONDITION.
- Make this driver return SCSI status information.
- While here, factor out the clearing of the CAM status from every
  element of the switch statement to only once before the switch.

This fixes burning CDs with recent cdrecord 2.01 alpha versions and
burners attached to asr(4) controllers but there could have been
other applications and da(4) etc. also affected.

Reviewed by:	gibbs, scottl
MFC after:	2 weeks
2004-08-02 23:32:23 +00:00
marcel
52fb831b82 Move the inclusion of libdisk.h from sysinstall.h to the source files
that actually need it. This makes it easier for a platform porter to
find the files that may need tweaking to support whatever MD specific
partitioning is needed. It also helps to prevent that the libdisk API
gets exposed and/or used where it's not needed.
2004-08-02 23:18:48 +00:00
trhodes
4cf054f847 Add some style(9) touch ups; style(9) states that new code should follow
these conventions and, well, this is a new driver.

Tested on:	i386, sparc64
Reviewed by:	scottl
2004-08-02 22:55:23 +00:00
obrien
47f728c0bc Put a cap on the auto-tuning of kern.maxvnodes.
Cap value chosen by:	scottl
2004-08-02 21:52:43 +00:00
iedowse
022dd0e2ed Reinstate a usb_transfer_complete() call that got lost in the
previous revision.
2004-08-02 20:53:31 +00:00
markm
4cc8ba8712 Add module versions. 2004-08-02 20:42:28 +00:00
markm
f2823af1c4 Diff reduction WRT i386 version. 2004-08-02 20:36:47 +00:00
markm
3ac428cadc Sort includes; minor whitespace. 2004-08-02 20:32:56 +00:00
markm
e056e8d396 Go back to the historical minor numbers. Add a module version while
I'm here.

Asked for minor numbers by:	jhb
2004-08-02 19:59:41 +00:00
le
537c655c95 Typo in comment. 2004-08-02 19:57:37 +00:00
marcel
d445c537c0 Add Linux swap partition and MS reserved partition descriptions.
While here:
o  Make the UUIDs static to avoid runtime initialization,
o  Rename ext to mslinux,
o  Replace the use of memcmp() with uuid_equal(),
o  Various style(9) improvements,
o  Order the comparisons based on importance,
o  Remove the word partition from all the descriptions,
o  Other description improvements.

Includes patch from: T. Muthu Mohan < Muthu_T at dell dot com >
2004-08-02 19:28:03 +00:00
marcel
7d35c7a3e7 What's in a name: s/disklabel/bsdlabel/ 2004-08-02 19:22:11 +00:00
obrien
9e684fc5bb Really back out rev 1.388. 2004-08-02 19:21:51 +00:00
le
ab2f52db36 Ignore geom_vinum providers. 2004-08-02 19:14:58 +00:00
dfr
090a3e72f1 Add definitions for TLS relocations. 2004-08-02 19:12:17 +00:00
wpaul
91a993c68f Today, RealTek sent me a driver to test which had been compiled with
some debug support turned on. It turns out the sections in this driver
binary had relative virtual addresses (RVAs) that were different
from the raw addresses, and it had a .data section where the virtual size
was much larger than the raw size. (Most production binaries produced
with the Microsoft DDK have RVA == PA.)

There's code in the ndiscvt(8) utility that's supposed to handle
the vsize != rsize case, but it turns out it was slightly broken,
and it failed to handle the RVA != RA case at all. Hopefully, this
commit will fix all that.
2004-08-02 18:54:01 +00:00
obrien
52662ee16c Back out 1.388.
Demanded by:	jhb
2004-08-02 18:48:14 +00:00
marcel
d934973592 Remove GPT_ENT_TYPE_FREEBSD_UFS2. It was speculatively added before
UFS2 was here. It so happened that UFS2 did not need a seperate
partition type. Keep the definition as a comment for documentation
purposes. If there is a benefit for UFS2 file systems to have a
seperate partition type under GPT, then this definition should be
restored as that was the intention of the definition.
2004-08-02 18:46:52 +00:00
marcel
1459f98b9c Fix 2 typos in previous commit: both s/strct/struct/ 2004-08-02 18:37:55 +00:00
hrs
1cec2017bd New release notes (changes in the first half of July 2004):
bus_dma(9) alignment and boundary compensation support,
	kqueue(2) EVFILT_FS,
	KDB framework,
	sound and snd_* driver reorganization,
	natd(8) globalports option[*],
	ppp(8) LQM support[*] and "rad_alive N" option,
	GEOM_STRIPE FAST mode support,
	MSDOSFS_LARGE[*],
	ALTQ framework support added to various network drivers[*],
	bsdtar(1) now the default tar(1) utility,
	cvs(1) iso8601 option keyword,
	multibyte characters support:
		fgetwln(3), join(1), nextwctype(3), od(1), regex(3), rev(1),
		sed(1) 'y' command, and tr(1),
	ftw(3) and nftw(3) implemented,
	C99 functions: nearbyint(3),
	am-utils 6.0.9->6.0.10p1 import,
	GNU grep 2.4d->2.5.1 import, and
	tcsh 6.11->6.13.00 import.

MFC:
	IPFilter 3.4.31->3.4.35.

[*]Based on work by:	josef
2004-08-02 18:24:58 +00:00
obrien
991777970f Don't build and install a mem.ko module.
Currently one cannot load the mem.ko module without panicing if mem is
compiled into the kernel and one cannot build a kernel w/o "device mem"
right now either.  Thus it is too dangerous to install mem.ko right now
because if one puts 'mem_load="YES"' in /etc/loader.conf they cannot
boot an "old" kernel (at the time that a kernel doesn't have to be built
with "device mem).
2004-08-02 18:14:06 +00:00
marcel
3dfc568f70 Add the mem and null devices now that they are optional. 2004-08-02 17:53:06 +00:00
marcel
e8f394bb69 Sort the miscellaneous devices to restore ordering after the insertion
of the mem and null devices.
2004-08-02 17:50:39 +00:00
iedowse
4d8c7e2781 Make the USB subsystem unloadable and detachable, though currently
a significant amount of memory may be leaked each time a host
controller is detached.
2004-08-02 15:37:35 +00:00
scottl
fb7f90d7ec Optimize intr_execute_handlers() by combining the pic_disable_source() and
pic_eoi_source() into one call.  This halves the number of spinlock operations
and indirect function calls in the normal case of handling a normal (ithread)
interrupt.  Optimize the atpic and ioapic drivers to use inlines where
appropriate in supporting the intr_execute_handlers() change.

This knocks 900ns, or roughly 1350 cycles, off of the time spent servicing an
interrupt in the common case on my 1.5GHz P4 uniprocessor system.  SMP systems
likely won't see as much of a gain due to the ioapic being more efficient than
the atpic.  I'll investigate porting this to amd64 soon.

Reviewed by:	jhb
2004-08-02 15:31:10 +00:00
iedowse
6d68eec474 When searching for a suitable block of memory on the free list,
skip blocks that are too big by a factor of two or greater. This
avoids some cases of extremely inefficient memory use that can occur
when large (e.g. 64k) blocks on the free list get used when allocating
a 4k chunk of 64-byte fragments. Because fragments have their own
free list, the 60k difference got lost forever every time.
2004-08-02 13:59:02 +00:00
iedowse
5b775a536b Attempt to follow the correct procedure for synchronising with the
system BIOS to disable legacy device emulation as per the "EHCI
Extended Capability: Pre-OS to OS Handoff Synchronisation" section
of the EHCI spec. BIOSes that implement legacy emulation using SMIs
are supposed to disable the emulation when this procedure is performed.
2004-08-02 12:56:01 +00:00
tjr
2e77b96f4a Remove la_LN.* from the list of bogus locales. They're incomplete, but
still potentially useful.
2004-08-02 12:50:12 +00:00
tjr
25f68ff9e7 Exclude bogus la_LN.* and UTF-8 locales from the output of locale -a
to discourage people from using them.
2004-08-02 12:28:28 +00:00
cognet
53db7b6142 *blush*
Fix htonl and htons.
2004-08-02 12:24:18 +00:00
cognet
ca5e850ced Fix comments.
Spotted out by:	mux
2004-08-02 12:23:53 +00:00
tjr
e8ca533b05 Add cross-reference to fmt(1) and a fairly standard ENVIRONMENT section. 2004-08-02 11:15:01 +00:00
tjr
09ae76cbc8 Cross-reference fold(1). 2004-08-02 11:12:13 +00:00
tjr
9811ba2d67 Add support for multibyte characters. 2004-08-02 11:10:20 +00:00
ssouhlal
43af5e5ee2 Remove 'device mem' from GENERIC, which markm@ mistakingly added.
We don't have mem/kmem yet.

Approved by:	grehan (mentor)
2004-08-02 11:08:48 +00:00
mlaier
9d6ef7aa69 Unbreak DEVICE_POLLING build / LINT. Sorry!
Submitted by:	roam
2004-08-02 10:08:28 +00:00
pjd
27a1acf9e3 Don't use version number in library name. The library version is checked
after dlopen() anyway, so we should be safe.

Suggested by:	ru
2004-08-02 09:05:29 +00:00
stefanf
db9322a9fc Remove an implicit int parameter by using prototypes. 2004-08-02 08:46:23 +00:00
stefanf
142f90039d Don't pass function pointers via a void * parameter. 2004-08-02 08:18:43 +00:00
stefanf
2e9ff9c3df - Signal handlers must have an int argument.
- Use prototypes.
- Add a cast for a signed vs unsigned comparison.
- Mark as WARNS?=3 clean.
2004-08-02 08:10:28 +00:00
murray
e1dbd754dd Improve the wording of the last commit, and update the document date. (1)
While here, update an example.

(1) Submitted by:	ru
2004-08-02 07:28:02 +00:00
obrien
5a8f74ead8 Consistently list _CPUCFLAGS. 2004-08-02 04:19:22 +00:00
alc
afa1e8a9c9 Eliminate the acquisition and release of Giant around the call to
pmap_mincore() in mincore(2).  Either pmap locking exists (alpha, amd64,
i386, ia64) or pmap_mincore() is unimplemented (arm, powerpc, sparc64).
2004-08-02 03:31:05 +00:00
tjr
6fcad02d4b Document incorrect handling of multibyte characters with -I and -J options. 2004-08-02 03:07:42 +00:00
grehan
bed31da747 Add PowerPC bridge instruction flag to the assembler to help out
with test code written in the loader.
2004-08-02 03:06:21 +00:00
grehan
19020b09b6 G5 support: handle the case where the OpenFirmware memory array uses
64 bits for the phys address, but only 32 for the virtual address.
2004-08-02 03:05:09 +00:00
grehan
cdfd234759 Kernel traps were not being passed to trap_fatal in some
circumstances.

Spotted by:  gallatin
2004-08-02 02:37:29 +00:00