Commit Graph

150744 Commits

Author SHA1 Message Date
Bernd Walter
6c96d2f595 MFC 204462,204463,204476: fix multicast hashes 2010-03-13 16:37:17 +00:00
Jaakko Heinonen
324846ecfa MFC r204447:
In _gettemp(), check that the length of the path doesn't exceed
MAXPATHLEN. Otherwise the path name (or part of it) may not fit to
carrybuf causing a buffer overflow.

PR:		bin/140228
2010-03-12 06:56:51 +00:00
Joerg Wunsch
cf4bd5e4d9 (r205011) The "number" argument is everything but optional. 2010-03-12 05:16:24 +00:00
Xin LI
ea2c000633 MFC r203760: Improve time precision for grdc(6):
Traditionally, grdc would obtain time through time(3) which in turn gets
only the second part of clock (CLOCK_SECOND), and sleep for 1 second after
each screen refresh.

This approach would have two problems.  First, we are not guaranteed to
be waken up at the beginning of a whole second, which will typically
exhibit as a "lag" on second number.  Second, because we sleep for whole
second, and the refresh process would take some time, the error would
accumulate from time to time, making the lag variable.

Make grdc(6) to use time(3) to get time only at the beginning, and sample
time in CLOCK_REALTIME_FAST granularity after refreshing, and use the
nanosecond part to caculate how much time we want to sleep.

PR:		bin/120813
2010-03-12 00:51:13 +00:00
Bernhard Schmidt
36026f82d6 MFC r203934:
Fix for the Intel WiFi Link 1000.  The EEPROM image is in the OTPROM block
before the last block, not in the last block itself.

Approved by:	rpaulo (mentor)
Obtained from:	OpenBSD
2010-03-11 17:15:40 +00:00
Bernhard Schmidt
8b35484392 MFC r204213:
Fix some typos.

Approved by:	rpaulo (mentor)
2010-03-11 17:11:07 +00:00
Andriy Gapon
e850e4719f MFC r203785: acpi: drop the second bus_generic_attach pass
X-MFCto7 after: 1 week
2010-03-11 08:58:13 +00:00
Andriy Gapon
57ff35ce74 MFC r203776: acpi cpu: probe+attach before all other enumerated children
X-MFCto7 after:	1 week
2010-03-11 08:55:03 +00:00
Fabien Thomas
060d3bde04 MFC r204878:
Change the way shutdown is handled for log file.

 pmc_flush_logfile is now non-blocking and just ask the kernel
 to shutdown the file. From that point, no more data is
 accepted by the log thread and when the last buffer is flushed
 the file is closed.

 This will remove a deadlock between pmcstat asking for
 flush while it cannot flush the pipe itself.
2010-03-11 07:36:45 +00:00
Fabien Thomas
4e0c5d79a0 MFC r204878:
Change the way shutdown is handled for log file.

 pmc_flush_logfile is now non-blocking and just ask the kernel
 to shutdown the file. From that point, no more data is
 accepted by the log thread and when the last buffer is flushed
 the file is closed.

 This will remove a deadlock between pmcstat asking for
 flush while it cannot flush the pipe itself.
2010-03-11 07:35:30 +00:00
Pyun YongHyeon
f4153ff1ea MFC r204647:
Remove programming LED register and enable 25MHz TX clock for
  88E1149 PHY. This will fix intermittent watchdog timeouts as well
  as very slow network performance on 88E8072 Yukon Extreme.

  PR:	kern/144148
2010-03-10 22:21:07 +00:00
John Baldwin
7a547c991a MFC 204638:
Allow lseek(SEEK_END) to work on disk devices by using the DIOCGMEDIASIZE
to determine the media size.
2010-03-10 19:47:05 +00:00
Jung-uk Kim
0cd9e69dae MFC: r197438, r203810, r203813, r203935, r203936
Sync acpi_video(4) with HEAD.

r197438:
Uninline an instance of STAILQ_FOREACH_SAFE().

r203810:
Implement LCD brightness control notify handler.

r203813:
Make sanity check slightly more useful and tweak an error message.

r203935:
Add support for `cycle' and `zero' events for LCD brightness control.

r203936:
Rename some macros to clarify their intentions and fix style nits.
2010-03-10 17:58:32 +00:00
Gavin Atkinson
50819829d3 Merge r204053 from head:
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
2010-03-10 13:40:37 +00:00
Konstantin Belousov
bf5483fddc MFC r204590:
Correct mfip module dependency on mfi. This allows mfip to be loaded as
module when mfi is a module itself.
2010-03-09 13:32:50 +00:00
John Baldwin
cd6f0f7554 MFC 204518:
Print the contents of the miscellaneous (MISC) register to the console if
it is valid along with the other register values when a machine check is
encountered.
2010-03-08 21:36:20 +00:00
Qing Li
44520d2930 MFC 204402
Use reference counting instead of locking to secure an address while
that address is being used to generate temporary IPv6 address. This
approach is sufficient and avoids recursive locking.
2010-03-08 21:30:12 +00:00
Edwin Groothuis
ca493fb650 MFC of tzdata2010e, r204887
- Adjust beginning / end of DST in Bangladesh (minimal impact)
- Fiji ends DST one month earlier to last Sunday of March
- Samoa changes
- Chile extends DST until 3 April this year.
2010-03-08 21:29:00 +00:00
Alexander Motin
f50241e452 MFC r204648:
Several changes to fix livelock under high load, introduced by r203489:
 - change the way in which command queue overflow is handled;
 - do not expose to CAM two command slots, used for driver's internal purposes;
 - allow driver to use up to 1024 command slots, instead of 256 before.
2010-03-08 16:53:58 +00:00
Luigi Rizzo
0b98eb0a9e MFC main build script and missing directory 2010-03-08 13:37:14 +00:00
Fabien Thomas
433d44f161 MFC r204783:
Bug fixed:
 - no display on serial terminal in top mode.
 - display alignment for continuation string.
 - correct invalid value used for display limit.
2010-03-08 07:53:44 +00:00
Luigi Rizzo
e6d9522c45 MFC qemu configuration 2010-03-07 16:24:33 +00:00
Luigi Rizzo
1fce10e770 reduce diffs from HEAD 2010-03-07 15:07:24 +00:00
Luigi Rizzo
f078d8617f MFC r197137 and r200510, which fixes a problem in 8.0
with callouts firing one tick too late. See the logs for
the original patch for details.
RELENG_7 is not affected by the problem.
2010-03-07 14:29:12 +00:00
Ivan Voras
90cb9e50f4 MFC r204611, r204633: Comment and better sysctl documentation string for
VM guest detection variable and sysctl.
2010-03-07 12:29:50 +00:00
Konstantin Belousov
272a1b6901 MFC r204464:
Several fixes for miscellaneous clone handlers in if_tun and if_tap.
2010-03-07 09:52:35 +00:00
Gregory Neil Shapiro
1b0154570e MFC: Enable the use of nanosleep() instead of using pause() and signals.
This Makefile change can be removed when the next version of sendmail
     is imported as it will have this built in to the FreeBSD conf.h section.
2010-03-07 02:02:07 +00:00
Marcel Moolenaar
35420d4867 MFC revs 203696, 203783:
Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process can
obtain the memory map of the traced process.

Requested by: kib@
2010-03-07 00:07:00 +00:00
Marcel Moolenaar
d5f57f7e08 MFC revs 203696, 203708, 203783 and 203788:
Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process can
obtain the memory map of the traced process.

Requested by: kib@
2010-03-07 00:05:44 +00:00
Konstantin Belousov
d3fe3690fb MFC r204413:
For kinfo_proc in kp->ki_siglist, return the set of the signals pending
in the process queue when gathering information for the process, and set
of signals pending for the thread, when gathering information for the
thread.
2010-03-06 12:35:33 +00:00
Fabien Thomas
02178aec70 MFC 204329 partially:
Fixed dependencies (make checkdpadd).
2010-03-05 22:52:41 +00:00
Fabien Thomas
2553c38555 MFC 203790:
- Reorganize code in 'plugin' to share log processing.
- Kcachegrind (calltree) support with assembly/source
  code mapping and call count estimator (-F).
- Top mode for calltree and callgraph plugin (-T).
2010-03-05 22:40:31 +00:00
Xin LI
3905c549f0 MFC r203461:
static'ify function prototypes and convert K&R to ANSI.
2010-03-05 00:33:05 +00:00
Xin LI
949a9c3cf1 MFC r203460:
pukeText is an internal function so define it as static rather than
exporting it.
2010-03-05 00:32:22 +00:00
Xin LI
6e064db94e MFC r203459:
Plug two memory leaks in error case.
2010-03-05 00:31:03 +00:00
Rafal Jaworowski
0500dff0e4 MFC r204283
Do not force verbose and single mode in non-metadata boot case.

We want to go multi-user by default also in case of booting without
loader(8).
2010-03-04 20:22:48 +00:00
Rafal Jaworowski
c1e2139303 MFC r204317
Fix handling of GPT disk partition index.

Obtained from:	Semihalf
2010-03-04 20:12:12 +00:00
Rafal Jaworowski
17b7e3fbec MFC r204316
Let loader(8) for U-Boot use default storage more flexibly.

Obtained from:	Semihalf
2010-03-04 20:07:59 +00:00
Rafal Jaworowski
bdf0c295b9 MFC r204315
Enable U-Boot storage for PowerPC. While there fix loader(8) help file name.
2010-03-04 20:03:26 +00:00
Brooks Davis
e483194cab MFC r201853:
Make options KGSSAPI build and add it to NOTES.

rpcsec_gss_prot.c:
  Use kernel printf and headers.

vc_rpcsec_gss.c:
  Use a local RPCAUTH_UNIXGIDS definition for 16 instead of using NGROUPS.
2010-03-04 19:35:22 +00:00
Konstantin Belousov
bd94a8bcdc MFC r204307:
Make pause(3) implementation not depended on the legacy sigcompat.c
interfaces. Do not block rt signals during and after pause(3) calls.
Use private libc namespace to call proper methods.
2010-03-04 07:12:44 +00:00
Konstantin Belousov
a617939995 MFC r204308:
Do not restrict the allowed signals that can be specified by number
to the list of signals that has symbolic name. It was impossible to
send rt signals with kill(1) due to the check.
2010-03-04 07:08:01 +00:00
Brooks Davis
d4e3872db3 MFC r201959
Use the correct types to store uids and gids in the credential cache and
eliminate an inappropriate use of NGROUPS.
2010-03-03 21:47:25 +00:00
Rui Paulo
ae266114fb Add ah_eeprom_v4k.c 2010-03-03 20:28:35 +00:00
Rui Paulo
8004f2b353 Add ar9280.c and ar9280_attach.c. 2010-03-03 20:08:12 +00:00
Rui Paulo
fe0da2ff6e MFC 204656:
Add missing ar9285_reset.c file.
2010-03-03 20:06:50 +00:00
Alexander Motin
576e956f32 MFC r204509:
- Add ALI M5228 PATA ID.
- Add missed DMA initialization for ALI SATA chips.
2010-03-03 19:14:05 +00:00
Alexander Motin
3a8904bf97 MFC r204250:
Fix recursive lock attempt on hot-plug event in non-ATA_CAM mode.
2010-03-03 19:12:53 +00:00
Alexander Motin
4c88138161 MFC r204210, r204216:
Add Intel PCH SATA controller IDs.
2010-03-03 19:11:39 +00:00
Jaakko Heinonen
91288970ce MFC r204276:
Fix expansion of \W in prompt strings when the working directory is "/".
The prompt string was truncated after \W when the working directory was "/".

PR:		bin/89410
2010-03-03 16:06:43 +00:00