Commit Graph

162607 Commits

Author SHA1 Message Date
gabor
ea21a95532 - More style(9) fixups
Approved by:	delphij (mentor)
2010-02-20 08:19:19 +00:00
neel
60c69691d9 Fix DDB backtrace that includes a kernel exception frame.
The backtrace code tries to look for an instruction of the form "sw ra, x(sp)"
to figure out the program counter of the calling function. When we generate
the kernel exception frame we store the 'ra' at the time of the exception
using an instruction of the same form. The problem is that the 'ra' at the
time of the exception is not the same as the 'program counter' at the time
of the exception.

The fix is to save the 'exception program counter' register by staging
it through the 'ra' register.
2010-02-20 07:34:37 +00:00
neel
130eee4fb0 Get rid of unused options: KERNPHYSADDR, KERNVIRTADDR, PHYSADDR, PHYS_ADDR_64BIT
Discussed with: gonzo, imp
2010-02-20 06:39:14 +00:00
delphij
5c6008ca2a Treat numbers after [Ee] a positive number rather than an invalid
one.
2010-02-20 01:23:15 +00:00
emaste
1739980e91 Avoid corrupting the list or queue if _REMOVE is invoked with a
reference to the head.

PR:		kern/119307
MFC After:	1 week
2010-02-20 01:05:30 +00:00
jkim
30767ce70b Return partially filled buffer for non-blocking read(2)
in non-immediate mode.

PR:		kern/143855
2010-02-20 00:19:21 +00:00
delphij
1650c19704 Add a reference to newly added seq(1) command.
Submitted by:	jilles
MFC after:	3 months
2010-02-20 00:16:44 +00:00
delphij
baab66ca0e Add seq(1), a small utility to generate sequence number.
Obtained from:	NetBSD
MFC after:	3 months
2010-02-19 23:54:12 +00:00
marius
d6ad7eba7f Hook up nfs_common missed in r203968.
Submitted by:	kib
2010-02-19 21:11:40 +00:00
pjd
93ac446555 Don't set f_bsize to recordsize. It might confuse some software (like squid).
Submitted by:	Alexander Zagrebin <alexz@visp.ru>
MFC after:	2 weeks
2010-02-19 20:18:16 +00:00
deischen
9db946a540 Correct spelling of reseting (found while researching the "bb hang detected"
messages that are plaguing me).  While I'm here, delete trailing whitespace.
2010-02-19 18:23:45 +00:00
tuexen
02181ec064 * Fix another u_long -> uint32_t issue.
* Remove an unused global variable.
* Fix an issue reported by Bruce Cran related to reusing SCTP socket which
  where connected.

MFC after: 1 week
2010-02-19 18:00:38 +00:00
kan
6133908f1e Define DMA_RX_STATUS_OVERFLOW with correct value.
The RX overflow is reported in bit 2 on real hardware and Linux driver
for the same device already has this defined correctly.
This fixes frequent interrupt storms seen on RouterStation Pro boards.

Discussed with:	gonzo
2010-02-19 17:37:46 +00:00
fanf
94f94d90e4 Update to upstream version 1.338
Fix a long-standing cpp compatibility bug: The -DFOO argument
(without an explicit value) should define FOO to 1 not to the empty
string.

Add support for CRLF newlines, based on a suggestion from Mark Rushakoff.

Obtained from:	http://dotat.at/prog/unifdef/
2010-02-19 16:54:51 +00:00
jhb
564efe918f Fix mptutil's method for locating disk devices attached to a specific
mpt(4) controller.  Previously, the code assumed that multiple match
patterns provided to an XPT_DEV_MATCH request were ANDed together.
Instead, they are ORed.  Instead, to match peripherals for a specific bus,
one query needs to be performed to lookup the path ID of the bus.  A second
query can then be performed matching peripherals attached to that path.
This approach also makes the code a bit cleaner as the returned match
results do not mix bus and perphierals.

Reported by:	several folks
MFC after:	1 week
2010-02-19 15:16:00 +00:00
attilio
3138bddc87 Use the cached value within comparison.
Submitted by:	jhb
2010-02-19 15:10:05 +00:00
attilio
d4d3373f23 Fix the grammar.
Submitted by:	Brandon Gooch <bgooch at se dot edu>
2010-02-19 15:03:55 +00:00
attilio
5687771459 Fix a race in regard of p_numthreads.
Submitted by:	Giovanni Trematerra
		<giovanni dot trematerra at gmail dot com>
2010-02-19 14:59:41 +00:00
jhb
e2e4685935 - Don't emit a warning in 'show adapter' if the IOC2 or IOC6 pages are not
present.  mpt(4) controllers that do not support RAID do not have an IOC6
  page, for example.
- Correct a check for a missing page error in a debug function.

MFC after:	1 week
2010-02-19 14:31:01 +00:00
jhb
ed5edbc4c6 Fix a typo.
Submitted by:	Jakub Lach  jakub_lach of mailplus pl
2010-02-19 14:27:32 +00:00
pjd
93d47151e4 Add missing KEYWORD line.
Pointed out by:	dougb
2010-02-19 09:18:26 +00:00
nwhitehorn
1444383409 Allow the SMU driver to read a variety of hardware sensors (possible
questions on the thermal calibration), and to read and set fan RPMs from
software. While here, fix a number of bugs.

Calibration code from:	OpenBSD
MFC after:	2 weeks
2010-02-19 04:37:54 +00:00
weongyo
28797afe7e o print msgs with length if the frame is too short to pass to net80211.
o print key index for debugging if the frame is attempted to decrypt for
  WEP, AES or TKIP though currently HW decryption isn't supported.
2010-02-19 03:36:02 +00:00
delphij
24cae0dcda Create a directory for hast's examples. 2010-02-19 02:34:25 +00:00
pjd
932e7c837e Remove some lines left over by accident. 2010-02-18 23:20:15 +00:00
pjd
1c1e2e8b71 Please welcome HAST - Highly Avalable Storage.
HAST allows to transparently store data on two physically separated machines
connected over the TCP/IP network. HAST works in Primary-Secondary
(Master-Backup, Master-Slave) configuration, which means that only one of the
cluster nodes can be active at any given time. Only Primary node is able to
handle I/O requests to HAST-managed devices. Currently HAST is limited to two
cluster nodes in total.

HAST operates on block level - it provides disk-like devices in /dev/hast/
directory for use by file systems and/or applications. Working on block level
makes it transparent for file systems and applications. There in no difference
between using HAST-provided device and raw disk, partition, etc. All of them
are just regular GEOM providers in FreeBSD.

For more information please consult hastd(8), hastctl(8) and hast.conf(5)
manual pages, as well as http://wiki.FreeBSD.org/HAST.

Sponsored by:	FreeBSD Foundation
Sponsored by:	OMCnet Internet Service GmbH
Sponsored by:	TransIP BV
2010-02-18 23:16:19 +00:00
pjd
a448fe30c9 Style nits. 2010-02-18 23:04:01 +00:00
pjd
c08e2cb276 Correct typo in comment. 2010-02-18 22:34:29 +00:00
pjd
af7148d88f Add tunable and sysctl to skip hostid check on pool import. 2010-02-18 22:31:43 +00:00
pjd
3e1636c7b5 No need to include security/mac/mac_framework.h here. 2010-02-18 22:30:37 +00:00
pjd
fda388d7b1 - Style fixes.
- Prefer strlcpy() over strncpy().
2010-02-18 22:29:35 +00:00
pjd
94d64f4ec3 Correct comment. 2010-02-18 22:28:12 +00:00
pjd
bcd34167f7 Log attach just like we log detach. 2010-02-18 22:27:38 +00:00
pjd
c527452336 No need to include security/mac/mac_framework.h here. 2010-02-18 22:26:01 +00:00
pjd
438d612346 Update comment. We also look for GPT partitions. 2010-02-18 22:23:30 +00:00
pjd
2d8af38442 - Reduce scope of vnode lock. vfs_mount_alloc() doesn't need vnode to be
locked.
- Remove code duplication.
2010-02-18 22:22:45 +00:00
pjd
a46e983531 Use vput() instead of VOP_UNLOCK()+vrele(). The comment here is out-dated,
we no longer pass thread pointer to VOP_UNLOCK().
2010-02-18 22:14:44 +00:00
pjd
f061fb129c Use NULL instead of 0 when setting up pointer. 2010-02-18 22:12:40 +00:00
pjd
fcd2271461 Simplify code a bit. 2010-02-18 22:10:55 +00:00
edwin
9e111a74ff Add heads-up requests for parts of the tree I look after and which
are partly maintained by a third party:

- share/zoneinfo
- usr.sbin/zic
- lib/libc/stdtime
2010-02-18 21:14:29 +00:00
imp
69a36480a8 Unbreak SENTRY5 build. 2010-02-18 20:20:34 +00:00
imp
73f0ead32a Hack to make ALCHEMY compile again... 2010-02-18 19:41:38 +00:00
imp
e0d8c3f88b Make printfs work for both OCTEON1 and OCTEON1-32 2010-02-18 19:27:00 +00:00
imp
76db043a74 Parens around tertiary operator so that casting the result works... 2010-02-18 19:24:23 +00:00
gavin
85e2a7ac9f The correct value of DEL is 0x7f, not 0xff. This is purely a documentation
issue - od(1) and hexdump(1) behave as expected.

PR:		docs/143869
Submitted by:	gcooper
MFC after:	2 weeks
2010-02-18 19:06:30 +00:00
imp
ad89e83094 Use proper structure type for 64-bit headers
# this fixes the MALTA64 build
2010-02-18 19:02:33 +00:00
imp
88b1aa3736 n64 has a different size for KINFO_PROC_SIZE. 2010-02-18 18:57:15 +00:00
mjacob
9931d796ac Don't try and re-use a handle, even if the firmware tells you that's what is logged in.
PR:		kern/144026
MFC after:	1 week
2010-02-18 18:35:09 +00:00
imp
a7b90d4600 The kdump data stream is an unaligned data stream for stat and
sockaddr structures.  As such, we have top copy the data structure
into a local buffer before we can reference it, otherwise we have
unaligned references (these are fixed up automatically on some CPUs,
but not on others).  We do this unconditionally to make the code
easier to read and understand.

Submitted by:	Grzegorz Bernacki
2010-02-18 16:05:09 +00:00
kensmith
cff7e8c212 Provide a script that can be used to create the memstick images. For now
it isn't being integrated into 'make release' because for the forseeable
future the memstick images will be identical to what's on the DVD except
for which package set is provided.  If/when what's on the memstick diverges
from what's on the DVD it would make more sense to generate a "memstick"
directory in $CHROOT/R/cdrom and build the memstick image along with the
ISO images.

Reviewed by:	jhb, ru, Garrett Cooper (yanefbsd at gmail dot com)
2010-02-18 15:45:43 +00:00