Commit Graph

168719 Commits

Author SHA1 Message Date
matt 55d5280da2 On MP systems, make sure to update l->l_cpu with the cpu_info of the current
processor (in case it was running on a different processor before).
2008-04-10 23:29:01 +00:00
dyoung 9fb0fb3f28 Add the redzones above and below the interrupt stack back to the
DIAGNOSTIC kernel.
2008-04-10 23:22:30 +00:00
tls 597ee710c7 Extend crypto.4 interface:
* Asynchronous operation with result retrieval via select/poll
	* Mutliple-request submit/retrieve ioctls
	* Mutliple-session create-destroy ioctls

Revise/rewrite crypto.4 manual page.  It should now be much easier to write
new applications to this API.

Measured performance for trivial requests: 84,000 very short modular math
operations/sec, 120,000 very short md5 hashes per sec (with a hardware
accellerator of moderate performance but very low latency, whose driver
will be contributed at a later date).

Contributed to TNF by Coyote Point Systems, Inc.
2008-04-10 22:48:42 +00:00
oster ff5172a732 Fix a problem in 'top' where we could end up with the following sort of
load-average display:

load averages:  1.12,  3.45,  6.7890

as the load on the system drops from long-term triple-digit averages
closer to zero.
2008-04-10 20:41:42 +00:00
cegger 86537ae77c sprintf -> snprintf 2008-04-10 19:49:14 +00:00
cegger 9d57c80079 use aprint_*_dev and device_xname 2008-04-10 19:13:36 +00:00
dyoung 18f5f53751 Add some assertions that will catch any exception to
ro->ro_sa == NULL implies ro->_ro_rt == NULL.
2008-04-10 18:12:02 +00:00
dyoung 2527883e86 s/8/NBBY/ 2008-04-10 18:09:14 +00:00
thorpej 8fc3977bed Don't even bother initializing the namelist if we're not going to use it. 2008-04-10 17:16:39 +00:00
thorpej f2bff8adc3 Use sysctl to fetch network statistics unless a memory file is specified
on the command line.
2008-04-10 17:14:25 +00:00
nonaka ded7276f3f - zaurus uses MBR
- Added fdisk to ramdisk
- increase ramdisk size
2008-04-10 15:45:29 +00:00
tsutsui df870ff695 Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
tsutsui 23023a98aa Add more libraries required by libgssapi and libkrb5 etc. in NOPIC case. 2008-04-10 15:05:23 +00:00
nakayama 3e0d94e5d9 Remove kernel unlock in startlwp which is probably a leftover of
vmlocking2 merge.

This may fix PR kern/38375.
2008-04-10 14:28:28 +00:00
tsutsui 5e574c5a4a Add more required libraries by libkrb5 and libroken in NOPIC case. 2008-04-10 14:26:33 +00:00
adrianp c09e4a3a8c Fix for CVE-2007-3108
The BN_from_montgomery function in crypto/bn/bn_mont.c in OpenSSL 0.9.8e and
earlier does not properly perform Montgomery multiplication, which might
allow local users to conduct a side-channel attack and retrieve RSA
private keys.
2008-04-10 14:19:59 +00:00
tsutsui 4c7d97cc4a Add libhx509 to PAM_STATIC_LDADD which is required by libkrb5. 2008-04-10 13:52:45 +00:00
tsutsui 3ac5edae14 Add more required libraries in proper order.
Fix build error in NOPIC case.
2008-04-10 13:49:53 +00:00
yamt 7f11d683b1 - make nfs_receive and nfs_reply static.
- ansify.
2008-04-10 12:32:37 +00:00
agc e7debae8a8 Fix a minor nit in a comment 2008-04-10 09:31:51 +00:00
he 7a931cc637 Remove a now-spurious & so that this builds again (for cobalt). 2008-04-10 09:05:53 +00:00
dyoung db4cb7c623 Commit straggler: elansc now attaches to something that provides
the 'pcibus' interface instead of the 'pci' interface.
2008-04-10 06:53:12 +00:00
riz de31682369 Catch the documentation up with the changes in vfs_vnops.c revision
1.155 - s/struct file/file_t/, and dropping a struct lwp * arg from
some functions.
2008-04-10 04:43:02 +00:00
apb 0942122d9d Sync command line options with MAKEDEV(8). Also re-word the
previously-incorrect part about "must be called from the /dev
directory".
2008-04-09 20:23:20 +00:00
apb 378687ec1c Document the new "-t mtree" option, and the fact that mtree is now
preferred by default.
2008-04-09 20:21:43 +00:00
apb b0ec85766d * Fix the problem with pax complaining "file would overwrite itself" for
already-existing device nodes.  This is done by invoking pax with its
  current working directory set to an empty temporary directory.

* Add "-t mtree" command line option, to force MAKEDEV to use "mtree
  -e -U" to create device nodes.  Here are some timings from "MAKEDEV
  ${method} all" on an i386 system; each method was executed three
  times, first in an empty directory, then twice in an already-populated
  directory:

    -m mknod
	    4.56 real         1.58 user         1.68 sys
	    2.96 real         1.37 user         1.48 sys
	    2.95 real         1.43 user         1.44 sys
    -p pax
	    1.80 real         0.18 user         0.62 sys
	    2.35 real         0.25 user         0.80 sys
	    2.38 real         0.24 user         0.82 sys
    -t mtree
	    1.62 real         0.22 user         0.44 sys
	    0.23 real         0.29 user         0.04 sys
	    0.24 real         0.28 user         0.05 sys

* If no command line options force a choice, then prefer mtree, pax, or
  mknod, in that order of preference.

No objections in tech-userlevel to an earlier version of this change.
2008-04-09 20:19:15 +00:00
wiz e47f3f6ebe Commit fix for the fdfile leak described in PR 38374.
Patch provided by YAMAMOTO Takashi.

Ok ad@
2008-04-09 19:36:59 +00:00
skrll 2bbc32f026 de-__P 2008-04-09 19:18:25 +00:00
skrll 1e4d6af0d6 Correct a comment. 2008-04-09 19:11:35 +00:00
njoly e3df4dc6c4 s/_POSIX_MESSAGE_PASSING/_SC_MESSAGE_PASSING/ in value. 2008-04-09 18:38:12 +00:00
njoly 3c71964512 Fix _SC_MQ_OPEN_MAX/_SC_MQ_PRIO_MAX sysctlgetmibinfo calls.
The corresponding sysctl nodes are available under kern.mqueue tree.
2008-04-09 18:37:04 +00:00
christos e8853135f2 fixed reversed tests in calendar (from Anon Ymous) 2008-04-09 17:47:53 +00:00
dyoung 5aed0dd299 Attach elansc at mainbus instead of at pci. 2008-04-09 17:35:17 +00:00
dyoung f1dc500675 Use device_t and accessors. Use cfdata_t and __arraycount().
Miscellaneous cosmetic changes.
2008-04-09 17:32:01 +00:00
dyoung 85481997e1 s/pcimatch/match/ to avoid conflict with a global name. 2008-04-09 17:27:14 +00:00
tsutsui 1a5b627b8f Return a proper value from isabr_iointr() even in error path. 2008-04-09 17:08:22 +00:00
dyoung 82efc281ac Export some PCI autoconf routines for use by elansc(4), for example. 2008-04-09 17:01:53 +00:00
nisimura e11b7f14dc - fix an indentation error in atawd.c
- use partition 'e' for a disk with no NetBSD slice.
- add Linux ATAG to feature ELF Linux kernel booting. Commented out for now.
- fix errors to retrieve iospace BARs.
2008-04-09 16:26:29 +00:00
tsutsui 14395bf943 Remove leftover stuff moved to dmac3var.h. 2008-04-09 15:43:03 +00:00
tsutsui 8f53f53cd9 Split device_t/softc, with misc cleanup. 2008-04-09 15:40:30 +00:00
nakayama c43d57923a Remove kernel locks around malloc introduced when I added SMP support. 2008-04-09 15:21:02 +00:00
nakayama 39b07dd47b Reorganize clock assignments on SMP kernel:
- don't use separate statintr on primary CPU.
- invoke clockintr instead of statintr on secondary CPUs.

This change fixes the problem setitimer(2) didn't work on secodary CPUs.
2008-04-09 14:58:23 +00:00
joerg 426688d27e Regen. 2008-04-09 14:15:11 +00:00
joerg a74db6c2ab Add PCI ID of 3Ware 9650 family. 2008-04-09 14:14:40 +00:00
skrll 26e28c7770 Revert previous in 30seconds. 2008-04-09 13:45:51 +00:00
nakayama 99adca9efa Use %xcc for 64-bit comparisons. 2008-04-09 12:49:05 +00:00
skd d51db07a71 Fix small error in device/sc splitup. 2008-04-09 11:32:26 +00:00
skrll 9a2b7df6e3 Apply fix from binutils-current so that sparc gdb can be cross built
on a 64bit host.

Problem reported by mrg.
2008-04-09 10:26:20 +00:00
cegger f98b30fb5e Re-add chunk of code that got lost in rev. 1.10. Makes this file build/work again. vi sometimes plays games with me. Spotted by dogcow. 2008-04-09 06:13:26 +00:00
nisimura 2553846738 - bind wd_softc to f->f_devdata.
- allow to have BSDFFS, EXT2FS and DOSFS on disk drive.
- the bootloader name is becoming unappropriate.
2008-04-09 06:07:57 +00:00