119203 Commits

Author SHA1 Message Date
sam
82b0b14c2f MFC 1.2: correct install location
Approved by:	re (hrs)
2006-03-21 20:54:22 +00:00
sam
ea98fe9873 MFC 1.907: make sure install scripts are executable
Approved by:	re (hrs)
2006-03-21 20:53:52 +00:00
hrs
7893f335c1 MFC(rev.1.25):
Correctly locate the character proceeding the matched string in -w
  mode when in non-UTF-8 multibyte locales (e.g. EUC, GB2312, etc.).

PR:		gnu/91909
Silence from:	tjr
Approved by:	re (kensmith)
2006-03-21 20:51:35 +00:00
jmg
81aad613ec MFC: systat.1 v1.46, vmstat.c v1.69
Properly spell and document ozfod...

Approved by:	re (hrs)
2006-03-21 20:49:50 +00:00
emax
3308876691 MFC:
Reorganize /etc/rc.d/syscons and move all keyboard related settings
into one function syscons_configure_keyboard(). Call new function from
both syscons_start() and sysconst_setkeyboard(). The reason for this
is because syscons_start() will (re)configure both keyboard and screen
settings. Apparently, some graphics cards have problems with running
vidcontrol(1) while X11 is running.

Remove "/etc/rc.d/syscons restart" from /etc/devd.conf. It is no longer
required. Using "/etc/rc.d/syscons setkeyboard" is enough. This also
should fix annoying "syscons not running?" message.

Tested by:	Ulrich Spoerlein < q at galgenberg dot net >
Approved by:	re (hrs)
2006-03-21 19:42:32 +00:00
jhb
bc610ba42b MFC: Don't allow userland to set hardware watch points on kernel memory.
Approved by:	re (mux)
2006-03-20 19:56:44 +00:00
ru
fbe3ef4eae MFC: 1.538: Don't create stray objects on pc98.
Approved by:	re (mux)
2006-03-20 16:33:28 +00:00
suz
8f7675c1f5 MFC Rev 1.32
Approved by: re(mux)
2006-03-20 16:23:08 +00:00
pjd
a56f321071 MFC: graid3(8)
Synchronize graid3(8) with HEAD:
- Speed up synchronization process by using configurable number of parallel
  I/O requests.
- Reimplement graid3 softc synchronization by using per-device sx(9) lock.
- Stop synchronization from pre-sync hook.
- Fix possible race between synchronization and regular requests.

Approved by:	re (mux)
2006-03-20 15:50:02 +00:00
pjd
c2dead3970 MFC: gmirror(8)
Synchronize gmirror(8) with HEAD:
- Speed up synchronization process by using configurable number of parallel
  I/O requests.
- Allow for kernel dumps to the mirror.
- Reimplement gmirror softc synchronization by using per-device sx(9) lock.
- Stop synchronization from pre-sync hook.
- Fix possible race between synchronization and regular requests.

Approved by:	re (mux)
2006-03-20 15:48:55 +00:00
pjd
84853dde8e MFC: sys/nfsclient/nfs_diskless.c 1.15
I wanted 'nolockd' here instead of 'lockd'.

Approved by:	re (mux)
2006-03-20 15:45:14 +00:00
rwatson
f07336c6df Merge ktrace.c:1.21 from HEAD to RELENG_6:
When opening a trace file, open O_NONBLOCK so that ktrace doesn't stall
  if the target is a fifo.  After opening a trace file, check that it is a
  regular file, and if not, return an error.

  Reported by:    kris
  PR:             94278

Approved by:	re (scottl)
2006-03-20 14:25:19 +00:00
rwatson
aa083dc18c Merge fifo_vnops.c:1.133 from HEAD to RELENG_6:
If fifo_open() is called with a negative file descriptor, return EINVAL
  rather than panicking later.  This can occur if the kernel calls
  vn_open() on a fifo, as there will be no associated file descriptor,
  and therefore the file descriptor operations cannot be modified to
  point to the fifo operation set.

  Reported by:    Martin <nakal at nurfuerspam dot de>
  PR:             94278

Approved by:    re (scottl)
2006-03-20 14:24:21 +00:00
jkoshy
813c792bf7 MFC {r1.9 libpmc.c, r1.10 pmc.3}: Add an alias 'unhalted-cycles'
denoting cycles where the CPU is not in a halt or sleep state. [1]
Increment the manual page date, bring the copyright year upto-date.

Approved by:	re (mux) [1]
2006-03-19 01:48:44 +00:00
davidxu
5ee78a5b24 MFC revision 1.258.
Approved by: re (mux)
2006-03-18 23:37:36 +00:00
davidxu
3b744ce278 MFC kern_thread.c revision 1.231
kern_exit.c   revision 1.286

    calcu fix for threaded process.

Approved by: re (mux)
2006-03-18 23:36:21 +00:00
glebius
fc9f312630 MFC 1.3:
Free private data when deleting hook.

  PR:		kern/93952
  Submitted by:	Antoine Brodin <antoine.brodin laposte.net>

Approved by:	re (mux)
2006-03-18 22:00:37 +00:00
glebius
64f07cddfc MFC 1.119:
There is no IFF_POLLING flag anymore.

Approved by:	re (mux)
2006-03-18 21:59:22 +00:00
glebius
4ff9bbbe0f MFC 1.21,1.22:
Fix several typos and trim spaces at eol.

  PR:		kern/93759
  Submitted by:	Antoine Brodin <antoine.brodin laposte.net>

Approved by:	re (mux)
2006-03-18 21:55:43 +00:00
glebius
c2c4397b27 MFC 1.24,1.25:
Fix misinformation in "setconfig" message description.

  Noticed by:	Brian A. Seklecki <lavalamp spiritual-machines.org>

Approved by:	re (mux)
2006-03-18 21:54:09 +00:00
glebius
4e2930669d MFC:
Add '-F' option which allows to delete existing empty directories, when
  creating symbolic links.

  PR:		bin/92149
  Submitted by:	Eugene Grosbein <eugen grosbein.pp.ru>

Approved by:	re (mux)
2006-03-18 21:49:43 +00:00
glebius
cd16ebbcdf MFC 1.111:
Set ifp->if_baudrate according to current speed.

Approved by:	re (mux)
2006-03-18 21:48:08 +00:00
joerg
21ede35923 Add reference to PR for TOSHIBA TransMemory quirk entry.
Approved by:	re (implicitly)
2006-03-18 21:15:40 +00:00
flz
59e6f5d5cc MFC:
- Add a scsi_da.c and a umass.c quirk for Genesys 6-in-1 Card Reader.

      src/sys/dev/usb/usbdevs: rev 1.250 -> 1.251
      src/sys/cam/scsi/scsi_da.c: rev 1.185 -> 1.186
      src/sys/dev/usb/umass.c: rev 1.130 -> 1.131

Approved by:	re (mux)
2006-03-18 20:30:26 +00:00
thompsa
f7c3e9e781 MFC r1.9, r1.10
- If a keymap file is not found for the selected country then default to the
   more common USA ISO rather than index 0 (Belgian).

 - Use jp.pc98 as default keymap for pc98

Approved by:	re (murray)
2006-03-17 21:55:31 +00:00
joerg
ec16460f5a MFC rev 1.29. In short, it unbreaks symlinks that have double
slashes recorded in them, as in

pathnames.h -> ../../bsdi.1.0/include//pathnames.h

Approved by:	re (scottl)
2006-03-17 21:32:14 +00:00
glebius
f90db41611 MFC:
Do not touch ifp->if_baudrate in miibus aware drivers.

Approved by:	re (scottl)
2006-03-17 21:30:57 +00:00
joerg
95a2ca40ce MFC rev 1.187: Add no synchronize cache quirk for TOSHIBA TransMemory
USB stick.

Approved by:	re (scottl)
2006-03-17 21:30:03 +00:00
glebius
d2f4d3f55d MFC:
- Introduce ifmedia_baudrate(), which returns correct baudrate of the
    given media status. [1]
  - Utilize ifmedia_baudrate() in miibus_statchg() to update ifp->if_baudrate.

  Obtained from:  NetBSD [1]

Approved by:	re (scottl)
2006-03-17 20:17:43 +00:00
jhb
b10d27f0a1 Add a compat API shim for ithread_remove_handler().
Approved by:	re (mux)
2006-03-17 17:32:46 +00:00
delphij
cf9a299a52 MFC: Add snapinfo.
Discussed with:	marks
Approved by:	re (scottl)
2006-03-17 05:08:16 +00:00
kensmith
880b89d40e MFC v1.11:
> date: 2006/03/17 02:05:46;  author: kensmith;  state: Exp;  lines: +0 -5
> First pass at trimming package set down.  Disc2 is still too big
> even with this but we're still deciding exactly what to do about
> that.

Approved by:	re (scottl)
2006-03-17 02:12:34 +00:00
rwatson
1cb719ab5e Regenerate.
Approved by:	re (scottl)
2006-03-17 01:47:33 +00:00
rwatson
3d5d8935a4 Provide unconditionally compiled stub implementations of audit system
calls that simply return ENOSYS.  This will allow basic forward
compatibility with userland audit pieces to be committed in the future,
avoiding the "login killed by SIGSYS" problem users of CVS HEAD
experienced when booting older kernels with newer user spaces (an
unsupported but not uncommon situation when debugging problems).

Approved by:	re (scottl)
Obtained from:	TrustedBSD Project
2006-03-17 01:47:06 +00:00
deischen
32f6962a6f MFC: Relevent commit logs are below.
Only catch SIGINFO (for dumping thread states) when LIBPTHREAD_DEBUG
  is defined in the environment.

  Modify the code path of the ifdef NOTYET part of _kse_single_thread():

  o  Don't reinitialise the atfork() handler list in the child.  We
     are meant to call the child handler, and on subsequent fork()s
     should call all three functions as normal.
  o  Don't reinitialise the thread specific keyed data in the
     child after a fork.  Applications may require this for context.
  o  Reinitialise curthread->tlflags after removing ourselves from
     (and reinitialising) the various internal thread lists.
  o  Reinitialise __malloc_lock in the child after fork() (to balance
     our explicitly taking the lock prior to the fork()).

  With these changes, it is possible to enable the NOTYET code in
  thr_kern.c to allow the use of non-async-safe functions after
  fork()ing from a threaded program.

  Eliminate a race condition in timed waits (cv, mutex, and sleeps).

  Don't forget to initialize a tailq before using it.

  For the ``#ifdef NOTYET'' code that allows calling non-async-safe
  functions in the child after a fork() from a threaded process,
  use __sys_setprocmask() rather than setprocmask() to keep our
  signal handling sane.  Without this fix, signals are essentially
  ignored in said child and things such as protection violations
  result in an endless busy loop.

  Allocate a thread's tcb last so it is easier to handle failures to
  malloc() siginfo.

  Include needed headers that were obtained through <pthread.h>.  Sort headers
  while here.

  amd64
  -----
  Fix a race condition introduced when redzones were added.  Use an
  atomic operation to return and adjust the stack (amd64).

  test
  -----
  o  Include <string.h>
  o  Make this ILP32/LP64 clean: cast pointers to long.

Approved by:	re (scottl)
2006-03-16 23:29:08 +00:00
sos
16ca8e211f MFC:
Add new modes.

Approved by: re@ (mux)
2006-03-16 21:30:09 +00:00
sos
7e7021166c MFC:
Add support for the JMicron JMB361, 365 and 366 chips.
HW and documentation kindly provided by JMicron.

Approved by: re@ (mux)
2006-03-16 21:28:51 +00:00
matteo
c155e30263 Change "grep" with "egrep". Merging by hand is not always the best solution@
This change is approved, since the original patch I sent to re@, didn't have this mistake.

Submitted by:	gad
Approved by:	re (implicit)
2006-03-16 12:22:00 +00:00
alc
215850cc69 MFC
File                  Revisions
  kern/imgact_aout.c    1.100
  kern/imgact_elf.c     1.167-1.172, 1.175
  kern/imgact_gzip.c    1.55
  vm/vm_extern.h        1.77
  vm/vm_glue.c          1.214

  Use sf_buf_alloc() instead of vm_map_find() on exec_map to create
  the ephemeral mappings that are used as the source for three copy
  operations from kernel space to user space.  There are two reasons
  for making this change: (1) Under heavy load exec_map can fill up
  causing vm_map_find() to fail.  When it fails, the nascent process
  is aborted (SIGABRT).  Whereas, this reimplementation using
  sf_buf_alloc() sleeps.  (2) Although it is possible to sleep on
  vm_map_find()'s failure until address space becomes available (see
  kmem_alloc_wait()), using sf_buf_alloc() is faster.  Furthermore,
  the reimplementation uses a CPU private mapping, avoiding a TLB
  shootdown on multiprocessors.

  The second argument to vm_map_find() should be NULL instead of 0.

  Correct a long-standing problem in elfN_map_insert(): In order to
  copy a page to user space, the user space mapping must allow write
  access.

  Eliminate an unneeded (vm_prot_t) parameter from two functions.
  Eliminate unnecessary uses of a local variable.

  Maintain the vnode lock throughout elfN_load_file() rather than
  releasing it and reacquiring it in vrele().  Consequently, there is
  no reason to increase the reference count on the vm object caching
  the file's pages.

  Eliminate unused parameters to elfN_load_file().

  Maintain the lock on the vnode for most of exec_elfN_imgact().
  Specifically, it is required for the I/O that may be performed by
  elfN_load_section().

  Avoid an obscure deadlock in the a.out, elf, and gzip image
  activators.  Add a comment describing why the deadlock does not
  occur in the common case and how it might occur in less usual
  circumstances.

  Eliminate an unused variable from exec_aout_imgact().

  Avoid a vm object reference leak in a rarely used code path.

  An executable contains at most one PT_INTERP program header.
  Therefore, the loop that searches for it can terminate after it is
  found rather than iterating over the entire set of program headers.

  Eliminate an unneeded initialization.

Approved by: re (mux)
2006-03-16 00:25:32 +00:00
pjd
66489dd25a MFC: sys/modules/geom/geom_eli/Makefile 1.2
Forgotten MFC.

Approved by:	re (scottl)
2006-03-15 19:20:07 +00:00
matteo
dcaaec9f0a MFC:
Don't build IPv6 support if NO_INET6 was defined

PR:	kern/73865
Approved by:	re (scottl)
2006-03-15 07:44:28 +00:00
dougb
88ccf9e397 MFC moving abi and archdep before SERVERS, and removing scary BEFORE's
MFC'ed versions:
SERVERS 1.6, abi 1.8, archdep 1.11

Reminded by:	delphij
Approved by:	re (scottl)
2006-03-15 00:09:43 +00:00
sam
d92cfb93fe MFC: sync taskqueue api with HEAD modulo preserving the calling
convention for taskqueue_create

Reviewed by:	various
Approved by:	re (scottl)
2006-03-14 23:28:30 +00:00
sam
e282b849e6 MFC 1.90: use m_dup instead of m_copypacket when doing internal bridging
in case packets are modified (e.g. encrypted)

Approved by:	re (scottl)
2006-03-14 23:24:02 +00:00
sam
234e093406 MFC 1.14: correct ni_txrate when using a fixed rate
Approved by:	re (scottl)
2006-03-14 23:22:27 +00:00
marcus
c25c26b047 MFC:
Add missing libdata/ldconfig[32] entries.

Approved by:	re (scottl)
2006-03-14 22:13:13 +00:00
jhb
ac9588d481 MFC: Add the tl_trap_*() and t1_text_*() symbols to unbreak the build.
The changes in rev 1.25 of db_trace.c to use these symbols was MFC'd
earlier.

Approved by:	re (scottl)
2006-03-14 21:12:59 +00:00
jhb
167b2f3ee2 MFC: Don't route interrupts to hyperthreads in an HT system. This
eliminates some performance degradation seen in some workloads when
the change was made from logical APIC addresses to physical APIC addresses.

Approved by:	re (scottl)
2006-03-14 21:07:35 +00:00
jhb
0e122fdeac MFC: Simplify the i8254 timecounter on Alpha, enable use of the alpha
timecounter in UP kernels on SMP machines and, and G/C some cruft.

Approved by:	re (scottl)
2006-03-14 21:04:46 +00:00
imp
252f43a819 Kill 'n' accendtially introduced in last commit.
Approved by: re@ (scottl) implied because the 'n' in the last commit wasn't
			  authorized :-)
2006-03-13 08:08:15 +00:00