Commit Graph

124971 Commits

Author SHA1 Message Date
David E. O'Brien
838ae103d1 Update for the 'file' 4.17 import. 2006-06-19 07:53:49 +00:00
David E. O'Brien
9c5a4d53e8 This commit was generated by cvs2svn to compensate for changes in r159764,
which included commits to RCS files with non-trunk default branches.
2006-06-19 07:52:15 +00:00
David E. O'Brien
88a5e5ac7b Virgin import of Christos Zoulas's FILE 4.17. 2006-06-19 07:52:15 +00:00
David Xu
85b2d575de Clear bit 22 in MSR IA32_MISC_ENABLE, according to Intel document,
when the bit 22 is set to 1, CPUID with EAX=0 returns a maximum
value in EAX[7..0] of 3, when set to 0(default), CPUID with EAX=0
returns the number corresponding to the maximum standard function
supported. On my machine, BIOS sets the bit to 1 to make it to be
compatible with old OS, this causes dual-core Pentium-D (two
physical cores) to be identified as hyperthreading (two logical
cores) by function mp_topology().
2006-06-19 07:51:47 +00:00
Paul Saab
b33484302d Remove two debugging printfs 2006-06-19 05:35:56 +00:00
Bruce A. Mah
2ec641c210 Various wording nits (hopefully resulting in net improvements) to the
main kernel section.
2006-06-19 02:55:27 +00:00
Andrew Thompson
615fccc52b Fix spelling mistake in comment. 2006-06-19 02:25:11 +00:00
Olivier Houchard
08459723d8 Make sure the stack is properly aligned.
Enable the MMU when relocating as well, and use write-through cache.
2006-06-18 22:46:30 +00:00
Simon L. B. Nielsen
aee85526aa - Fail with an understandable error message if we cannot detect the
sector size, instead of later failing with an error about /boot/mbr
  not being a multiple of the sector size (since we end up with an
  assumed sector size of MAX_SEC_SIZE * 2).
- We query the sector size via an IOCTL anyway, so if that succeeds
  use that instead of probing for it via read(2) calls.  This fixes
  the problem with fdisk failing to operate on at least graid3 and
  md(4) devices on kernels with src/sys/geom/geom_dev.c before
  rev. 1.90, due to fdisk failing to detect the sector size.
- When detecting the root device allow "/" characters in it, which
  happens with e.g. gmirror devices.

Reviewed by:	cperciva
MFC after:	1 week
2006-06-18 22:02:22 +00:00
Simon L. B. Nielsen
274ede62a8 In g_dev_strategy(), when failing an IO request with EINVAL due to
offset or request size which is not a multiple of the sector size, make
sure that the bio is set to indicate that no data has actually been
transferred.

The result of this is that the file offset is no longer incremented for
these requests.  The fact that the file offset was incremented broke
fdisk(8)'s probing of sector size for non-512 byte sector sizes.

Reviewed by:	phk, cperciva
Submitted by:	mdodd
MFC after:	2 weeks
2006-06-18 22:01:15 +00:00
Bruce A. Mah
b06185fd6d Minor tightening up of release notes:
Delete two release notes related to the kern.elf*.can_exec_dyn that
seemed to cancel each other out.

Consolidate two notes related to BPF JIT.

Delete note about fixing CHECKSUM.MD5 bug; no released versions of
FreeBSD shipped with it.
2006-06-18 21:32:26 +00:00
Bruce A. Mah
5575962843 Put several notes in the right place: Move an arp(8) note from kernel
to userland.  Move all of the items in the Kernel contrib section to
the top-level contrib section.

All of the moved items are unchanged with respect to their actual
contents.
2006-06-18 21:13:28 +00:00
Robert Watson
721150ad8f When retrieving SO_ERROR via getsockopt(), hold the socket lock around
the retrieval and replacement with 0.

MFC after:	1 week
2006-06-18 19:02:49 +00:00
Alexander Leidinger
5ea8ff67ee Document support for the Aceeca Mez1000 RDA. 2006-06-18 17:56:37 +00:00
Alexander Leidinger
8cc6aade65 Add support for the Aceeca Mez1000 RDA.
PR:		82839
Submitted by:	Mike Durian <durian@shadetreesoftware.com>
2006-06-18 17:55:29 +00:00
Alexander Leidinger
8128fd701e Add support for:
- Curitel PC5740 Wireless Modem (Verizon's PCMCIA card)
 - Sierra MC5720 Wireless Modem (Built in to Thinkpad X60s)

PR:		98908
Submitted by:	Michael Collette <metrol@metrol.net>
2006-06-18 17:54:33 +00:00
Christian Brueffer
69af36686e We just have one generic sound driver, reflect this.
MFC after:	3 days
2006-06-18 17:53:04 +00:00
Warner Losh
f36c2bbe0c Remove the insistance on having a device.hints. This was a seat belt
for those upgrading from 4.x -> 5.x.  It is therefore no longer
necessary because it is installed on 5.x and 6.x and one has to
upgrade from 6.x -> current, or at the very least 5.x (although not
supported, it can be made to work).
2006-06-18 17:48:45 +00:00
Christian Brueffer
7e7a050537 o We only have one generic audio driver, reflect this (1)
o Mention the author of the driver
o Minor mdoc improvement

Discussed with:		netchild (1)
2006-06-18 17:48:08 +00:00
Alexander Leidinger
9e270de5ac Add support for:
- Curitel PC5740 Wireless Modem (Verizon's PCMCIA card)
 - Sierra MC5720 Wireless Modem (Built in to Thinkpad X60s)

Bump the date in the uscanner man page for the update some minutes ago.
2006-06-18 17:46:40 +00:00
Warner Losh
08586b224d Don't descend into ${MACHINE} on the arm platforms. 2006-06-18 17:44:40 +00:00
Alexander Leidinger
04cb71301e Add support for:
- Curitel PC5740 Wireless Modem (Verizon's PCMCIA card)
 - Sierra MC5720 Wireless Modem (Built in to Thinkpad X60s)

The scanner in the PR is already supported.

PR:		98908
Submitted by:	Michael Collette <metrol@metrol.net>
2006-06-18 17:43:38 +00:00
Alexander Leidinger
4e93c5c41e Add Epson Perfection 1270 scanner. All other scanners in the PR are already
detected, but with a different name.

PR:		98106
Submitted by:	Lars Engels <lars.engels@0x20.net>
2006-06-18 17:29:16 +00:00
Alexander Leidinger
e932b6c236 When attaching an Xbox 360 gamepad a computer, the LED on the gamepad
blinks by default. When the operating system (read: normally an Xbox
360) initializes the gamepad, the LED stops blinking.

Change our uhid code to do the same.

PR:		97169
Submitted by:	Ed Schouten <ed@fxq.nl>
2006-06-18 17:18:17 +00:00
Alexander Leidinger
4d3976cebb 2 spelling fixes...
Noticed by:	John E Hein <jhein@timing.com>
2006-06-18 17:02:21 +00:00
Bruce A. Mah
f5a1fa6c19 New release note: COMPAT_43 removed from GENERIC.
Updated release note:  MPSAFE-ness of NFS includes the client code.
2006-06-18 16:36:51 +00:00
Christian Brueffer
c0a9b4dc1f o sort the HARDWARE list somewhat
o mention ATA and SATA support
o mdoc improvements

MFC after:	3 days
2006-06-18 14:45:28 +00:00
Christian Brueffer
2c90ece85e o Remove FILES section (uninteresting for users)
o Xref asr(4)

MFC after:	3 days
2006-06-18 14:37:48 +00:00
Andre Oppermann
6593a94979 Remove T/TCP RFC1644 Connection Count comparison macros. They are no longer
used and needed.

Sponsored by:   TCP/IP Optimization Fundraise 2005
2006-06-18 14:24:12 +00:00
Alexander Leidinger
851a904af5 - Rename hw.snd.unit to hw.snd.default_unit to make the purpose more obvious.
- Enable 4 automatic vchan's by default.
- Add some comments which provide ides/questions for improvement.
- Prefix some temporary sysctl's with an underscore to denote that it is not
  an official API but a workaround until the real solution is implemented.
2006-06-18 14:14:41 +00:00
Christian Brueffer
ea6af27ab0 o Capitalization fixes
o Remove the outdated FILES section

MFC after:	3 days
2006-06-18 14:12:27 +00:00
Christian Brueffer
cb0767679a Add MLINKS:
ixgb.4 -> if_ixgb.4
mxge.4 -> if_mxge.4
2006-06-18 14:08:20 +00:00
Alexander Leidinger
b23fd15a6c - xref linsysfs
- improve the ldconfig part
- tell about pitfalls with the osrelease sysctl
2006-06-18 13:51:39 +00:00
Alexander Leidinger
826209c583 Alpha is gone, no need to keep them. 2006-06-18 13:44:26 +00:00
Andre Oppermann
2f1a4ccfc1 Do not access syncache entry before it was allocated for the TF_NOOPT case
in syncache_add().

Found by:	Coverity Prevent
CID:		1473
2006-06-18 13:03:42 +00:00
Yaroslav Tykhiy
42ccd54fec Add a funny sysctl: debug.kdb.trap_code .
It is similar to debug.kdb.trap, except for it tries to cause a page fault
via a call to an invalid pointer.  This can highlight differences between
a fault on data access vs. a fault on code call some CPUs might have.

This appeared as a test for a work \
Sponsored by: RiNet (Cronyx Plus LLC)
2006-06-18 12:27:59 +00:00
Andre Oppermann
8411d000a1 Move all syncache related structures to tcp_syncache.c. They are only used
there.

This unbreaks userland programs that include tcp_var.h.

Discussed with:	rwatson
2006-06-18 12:26:11 +00:00
Yaroslav Tykhiy
8276a67ad0 Fix style while I'm here. 2006-06-18 12:13:49 +00:00
Yaroslav Tykhiy
042bbfae5a The i386 "call" instruction works as follows: it pushes
the return address on the stack and only then "dereferences" %pc.
Therefore, in the case of a call to an invalid address, we arrive
to the trap handler with the invalid value in tf_eip.  This used
to prevent db_backtrace() from assigning the most recent and interesting
frame on the stack to the right spot in the right function, from
which the invalid call was attempted.

Try to detect and work around that by recovering the return address
from the stack.

The work-around requires the fault address be passed to db_backtrace().
Smuggle it as tf_err.

MFC after:	1 month
Sponsored by:	RiNet (Cronyx Plus LLC)
2006-06-18 12:07:00 +00:00
Andre Oppermann
bdfbf1e203 Remove double lock acquisition in syncookie_lookup() which came from last
minute conversions to macros.

Pointy hat to:	andre
2006-06-18 11:48:03 +00:00
Yaroslav Tykhiy
a0a148de0f "clean" of <bsd.prog.mk> no longer removes a.out, Errs,
errs, mklog, and ${PROG}.core .

MFC after:	1 week
2006-06-18 11:26:17 +00:00
Yaroslav Tykhiy
0e4e809602 Give a major overhaul to asf(8).
The improvements are:

- can get the kld info from core files via kvm(3);
- can use kldstat(2) directly, which is a piece of cake;
- can use .symbols or whatever, which allows for use by
  non-developers when reporting system crashes -- now asf(8)
  can be mentioned in the handbook at last;
- speed (no more double fts(3) per loaded module);
- various bugs fixed.

At the same time, the new asf(8) should stay compatible with
the old one, bar bugs.  Perhaps some defaults may be changed
later to match today's state of affairs.

Reviewed by:	grog
MFC after:	1 month
Sponsored by:	RiNet (Cronyx Plus LLC)
2006-06-18 11:14:40 +00:00
Christian Brueffer
5cf3ccd2bf o Convert to our new SYNOPSIS layout
o Add "device scbus/pci/etc" where needed for consistency

MFC after:	3 days
2006-06-18 09:53:00 +00:00
Christian Brueffer
ec33470ba7 Correct date for the previous commit. 2006-06-18 07:33:51 +00:00
Marcel Moolenaar
c69e06b14f Unconditionally enable ppc(4) and puc(4). 2006-06-18 05:05:46 +00:00
Marcel Moolenaar
05dd86316f Make this usable for all platforms. 2006-06-18 05:04:42 +00:00
Bruce A. Mah
ab554e3f7f New release notes: SCHED_CORE, snd_envy24(4), better traceroute(8)
ICMP unreachable decoding, Linux emulation now FC4 (+MFC).

MFCs noted:  ipmi(4), cm(4) MPSAFE, nve(4) ALTQ, sk(4) MPSAFE,
2006-06-18 04:48:11 +00:00
Warner Losh
a1295da1fd comment out twi for now: no iicbus in KB920X: it breaks booting 2006-06-17 23:34:59 +00:00
Warner Losh
aee1351504 Carefully note the RMII bit in the config register at attach time.
The boot loader is supposed to leave this bit set to the right value
for the board.  If this bit was set at attach time, use it to init the
config register correctly.

Note: this means the boot loader has to properly initialize it.
2006-06-17 23:24:35 +00:00
Warner Losh
0ca5ce8fee improve reporting of clocks 2006-06-17 23:22:10 +00:00