Commit Graph

188249 Commits

Author SHA1 Message Date
mav
93c07fc1e4 MFcalloutng:
Make dcons input polling adaptive, reducing poll rate to 1Hz after several
minutes of inactivty to reduce global interrupt rate.  Most of users never
used FireWire debugging, so it is not very useful to consume power by it.
2013-02-19 18:22:25 +00:00
dim
b72d635ee9 Pull in r175360 from upstream llvm trunk:
MCParser: Reject .balign with non-pow2 alignments.

  GNU as rejects them and there are configure scripts in the wild that
  check if the assembler rejects ".align 3" to determine whether the
  alignment is in bytes or powers of two.

MFC after:	3 days
2013-02-19 17:53:32 +00:00
dim
90c71ac75a Import change 6d783560e4aad1e680097d11e89755647a5aba87 from upstream
heimdal:

  fix sizeof(uuid)

Found by:	clang ToT
Reviewed by:	stas
2013-02-19 17:38:18 +00:00
kientzle
cf4cf7e029 Fix includes for use in libstand. 2013-02-19 17:09:23 +00:00
davide
da217eece1 Fixup r246916 in case gcc is used to build.
Reported by:	attilio, simon
2013-02-19 16:43:48 +00:00
jhb
82e5f32ac4 Fix a few typos. 2013-02-19 16:35:27 +00:00
charnier
0e99416743 WARNS=6 compliance 2013-02-19 13:32:26 +00:00
charnier
8f92a0e983 WARNS=6 compliance 2013-02-19 13:17:16 +00:00
charnier
ed1bf36a9b Remove old-style function definition 2013-02-19 12:57:07 +00:00
uqs
729ec5c121 Fix typo
Submitted by:	Matt Burke <mattblists@icritical.com>
2013-02-19 10:25:51 +00:00
adrian
74a3195be4 Print out the RTS/CTS rate in the TX descriptor. 2013-02-19 06:42:12 +00:00
markj
9d1eadb90c - Make sure to set an error code when trying to obtain a data descriptor for
a section of type SHT_NULL.
- Update the man page to reflect the fact that elf_getdata() and
  elf_rawdata() may return with an error of ELF_E_SECTION.

PR:		bin/175491
Approved by:	emaste (co-mentor)
MFC after:	1 week
2013-02-19 03:23:13 +00:00
adrian
7c5c2ceb80 kgdb enhancements!
* document the kgdb -b flag
* better verify what's valid with -b
* add more comprehensive command line help

PR:		kern/175743
Submitted by:	Christoph Mallon <christoph.mallon@gmx.de>
2013-02-19 02:09:18 +00:00
ganbold
66b9a88a92 Define gpio constants rather than using enum.
Fix pull-up and pull-down values of gpio.
According to A10 user manual possible pull register
values are 00 Pull-up/down disable, 01 Pull-up, 10 Pull-down.

Approved by: gonzo@
2013-02-19 02:01:35 +00:00
pjd
34f552176e More white-space cleanups.
Reported by:	zont (the first one)
2013-02-18 23:58:05 +00:00
kientzle
35a51d801b Add mem_load_raw() for loading data from another location in memory.
This will be used by some upcoming changes to loader(8) FDT
handling to allow it to use an FDT provided by an earlier
boot stage the same as an FDT loaded from disk.
2013-02-18 23:13:13 +00:00
jilles
a04bf837da setbuf(3): Restore a BUGS section about setbuf().
The brokenness of setbuf() is not specific to 4.2BSD and 4.3BSD but inherent
in the API definition.

Reported by:	bde
2013-02-18 22:47:59 +00:00
markj
440e93e344 Mark the coretemp(4) sysctls as MPSAFE, ensuring that Giant won't be held
unnecessarily by a user thread waiting to run on a specific CPU after
calling sched_bind().

Reviewed by:	rstone
Approved by:	emaste (co-mentor)
Sponsored by:	Sandvine Incorporated
MFC after:	1 week
2013-02-18 22:47:16 +00:00
joel
f8ce717fb6 mdoc: sort sections. 2013-02-18 20:21:26 +00:00
kientzle
dad21c930a Clarify an error message. The addresses here are
really offsets within the primary mapped memory block
(which may not start at address zero).
2013-02-18 20:11:20 +00:00
gshapiro
12b6f6bd9d Merge sendmail 8.14.6 errata issue
MFC after:	3 days
2013-02-18 19:33:07 +00:00
adrian
3d5fb5a458 Fix an incorrect sizeof()
PR:		kern/176238
Submitted by:	Christoph Mallon <christoph.mallon@gmx.de>
2013-02-18 18:39:15 +00:00
hselasky
5d87c6bca9 Fix bad EEPROM parsing code.
MFC after:	2 weeks
2013-02-18 17:55:27 +00:00
adrian
26041a646c * Add initial debugging of the interrupt status entry
* Add in the TDMA debugging entries that I added a while ago
2013-02-18 04:20:43 +00:00
adrian
77bd08ca12 Make this output more terse. 2013-02-18 04:19:21 +00:00
adrian
bad82cfd14 Add a new ATH KTR debug method to log the interrupt status. 2013-02-18 04:10:38 +00:00
luigi
6b4006784b the NO_PAM option has been finally removed in favor of WITHOUT_PAM. 2013-02-18 02:08:41 +00:00
kientzle
84343db6c7 Add strtoul() to libstand by copying from libc and clipping out
locale code.
2013-02-18 01:55:53 +00:00
adrian
6c5725b06d Disable this variable; the code using it is also disabled. 2013-02-18 01:37:55 +00:00
alc
dd08c86f50 Place a cap on the size of the kernel's heap, also known as the kmem
submap.  Otherwise, after r246204, the auto-scaling logic in kern_malloc.c
tries to create a kmem submap that consumes the entire kernel map on a
Pandaboard with 1 GB of RAM.

Tested by:	gonzo
2013-02-18 01:22:20 +00:00
adrian
4089ecb7c4 Disable this code and add a note as to why.
It wasn't currently being called anyway - but being explicit about it
can't hurt.
2013-02-18 01:08:59 +00:00
alc
88b6705ed6 On arm, like sparc64, the end of the kernel map varies from one type of
machine to another.  Therefore, VM_MAX_KERNEL_ADDRESS can't be a constant.
Instead, #define it to be a variable, vm_max_kernel_address, just like we
do on sparc64.

Reviewed by:	kib
Tested by:	ian
2013-02-18 01:02:48 +00:00
pjd
4ec0049878 Allow [] in remote address, which fixes IPv6 support.
Reported by:	simon
2013-02-18 00:38:40 +00:00
pjd
827a11a3e0 Update the comment: we do show the backtrace of misbehaving thread. 2013-02-17 21:37:32 +00:00
pjd
0bf19fd812 - Add support for 'memsync' mode. This is the fastest replication mode that's
why it will now be the default.
- Bump protocol version to 2 and add backward compatibility for version 1.
- Allow to specify hosts by kern.hostid as well (in addition to hostname and
  kern.hostuuid) in configuration file.

Sponsored by:	Panzura
Tested by:	trociny
2013-02-17 21:12:34 +00:00
kib
e5238fcb15 Do not update the fsinfo block on each update of any fat block, this
is excessive. Postpone the flush of the fsinfo to VFS_SYNC(),
remembering the need for update with the flag MSDOSFS_FSIMOD, stored
in pm_flags.

FAT32 specification describes both FSI_Free_Count and FSI_Nxt_Free as
the advisory hints, not requiring them to be correct.

Based on the patch from bde, modified by me.

Reviewed by: bde
MFC after:   2 weeks
2013-02-17 20:35:54 +00:00
markj
5e903e7e4b Strengthen the check in IS_OUT_OF_BOUNDS to ensure that (j - 1) is a
valid index into the input buffer.

PR:		bin/175213
Reviewed by:	gabor
Approved by:	emaste (co-mentor)
MFC after:	1 week
2013-02-17 19:48:23 +00:00
mav
a8b029c7cf MFcalloutng:
Microoptimize i8254 one-shot operation mode (disabled by default to allow
timecounter functionality) by not writing to mode and MSB registers when
it is not required.  This saves several microseconds of CPU time per call,
reducing minimal measured interrupts interval to 19.5us.
2013-02-17 18:42:30 +00:00
ache
711b357b3d In 'make hierarchy' don't install /sys/sys pointing to usr/src/sys
but just /sys pointing there
2013-02-17 13:06:59 +00:00
pjd
387f2efcf7 Remove space before tab. 2013-02-17 11:58:30 +00:00
pjd
c74931bdaf Remove redundant check. 2013-02-17 11:57:47 +00:00
pjd
fdfa7cdb9e Style. 2013-02-17 11:56:36 +00:00
pjd
c0b1af2f13 - Require CAP_FSYNC capability right when opening a file with O_SYNC or O_FSYNC
flags.
- While here simplify check for locking flags.

Sponsored by:	The FreeBSD Foundation
2013-02-17 11:53:51 +00:00
pjd
06ac2f97fd Remove redundant parenthesis. 2013-02-17 11:49:21 +00:00
pjd
1f59e8bcc8 Remove redundant space. 2013-02-17 11:48:16 +00:00
pjd
30ca80d1fc Add break to the default case. 2013-02-17 11:47:58 +00:00
pjd
3a0f30d9ae Don't treat pointers as booleans. 2013-02-17 11:47:30 +00:00
pjd
f88c314f24 Remove redundant parenthesis. 2013-02-17 11:47:01 +00:00
pjd
f32abb67d2 Remove redundant space. 2013-02-17 11:36:41 +00:00
pjd
e6c70efea9 Remove trailing spaces. 2013-02-17 11:36:13 +00:00