Commit Graph

81257 Commits

Author SHA1 Message Date
jmallett
dbf91abc13 Remove bogus duplicate assignment of local variables. 2002-10-05 04:35:59 +00:00
rwatson
722fc75788 Get Vinum up and running with GEOM:
(1) Use namei() and devfs to discover devices rather than a hard-coded
    MAKEDEV implementation.  Once rootfs is in place, this will allow
    Vinum to be used for the root file system partition.

(2) Pass FREAD to device opens so that GEOM will return sector size
    rather than an error on attempts to read label data.

(3) Avoid clobbering return values from close_drive() and masking this
    failure, resulting in a later divide by zero due to not having
    updated the Vinum-cached sector size.

(4) Ignore failures from DIOCWLABEL as that appears not to be required
    in the GEOM environment.

We've done testing in simple Vinum environments, but those with more
complex environments might want to give this a spin in DP2 and make
sure everything is up to speed.

Fixes in collaboration with:	iedowse
Reviewed by:			grog
2002-10-05 03:44:00 +00:00
rwatson
fc6cf98e79 Refinement on previous fix for mutex destruction: make sure we don't
release the mutex multiple times for multi-plex volumes.

Following further consultation with:	grog
2002-10-05 03:33:38 +00:00
rwatson
a648bd3f53 Remove a panic on vinum module unload: make sure to destroy all mutexes
before freeing so that WITNESS doesn't dereference mutex data pointers
and page fault.  It's now possible to unload vinum.ko with a GENERIC
kernel on 5.0-CURRENT without panic.

Debugged/fixed with the aid of:	jake, grog
2002-10-05 03:07:23 +00:00
jmallett
0419ba230a Define _MACHINE. 2002-10-05 02:56:49 +00:00
deischen
742f14e507 Once again, remove the i386-specific hacks to save and restore
the FPU state on receiving and returning from a signal.
The FPU save and restore macros are no longer needed, but
remain defined in case we need to use them again (something
else breaks).  They'll be removed permanently once new
syscalls are added to handle the new i386 ucontext size.
2002-10-05 02:22:26 +00:00
iwasaki
be995d42bc Make sure that ACPI PCI driver probe routine call pci_cfgregopen()
before start accessing PCI config space.

Reviewed by:	jhb
2002-10-05 02:16:49 +00:00
iwasaki
479e7dd9d8 Oops, forgot to add main file for my previous commit :-) 2002-10-05 02:06:00 +00:00
iwasaki
8db9ba4b9e Add code for ACPI PCI link object manipulation.
This allocate the best IRQ to boot-disable devices (have IRQ 0).
Allocated IRQ will be used for PCI interrupt routing when ACPI is
enabled.

Note that verbose messaging enabled for the time being so that
people can easily notice the strange behavior if it happened.
2002-10-05 02:01:05 +00:00
mike
c9d55a4efc style(9) <machine/setjmp.h> headers so they look mostly the same. 2002-10-04 22:10:06 +00:00
mike
cf479e3516 Add restrict type-qualifier to sem_getvalue(). 2002-10-04 21:32:00 +00:00
mike
308c69ee6a o Adjust the SEM_VALUE_MAX macro so that <machine/limits.h> isn't
needed.
o Remove unneeded includes which only add namespace pollution.
o Sort function prototypes.
o Add restrict type-qualifier to sem_getvalue().
2002-10-04 21:31:33 +00:00
sam
1ed00d451b add support for /dev/crypto 2002-10-04 20:44:46 +00:00
sam
80ef0853a6 install sys/opencrypto include files in /usr/include/crypto 2002-10-04 20:44:28 +00:00
sam
0b72e3a745 manual pages for the new kernel crypto support (need work)
Obtained from:	openbsd
2002-10-04 20:43:30 +00:00
sam
9496147138 hookup new crypto support to the config/build process 2002-10-04 20:42:36 +00:00
sam
1ba0866904 New bus_dma interfaces for use by crypto device drivers:
o bus_dmamap_load_mbuf
o bus_dmamap_load_uio

Test on i386.  Known to compile on alpha and sparc64, but not tested.
Otherwise untried.
2002-10-04 20:40:39 +00:00
sam
451a9f90e1 add crypto interface to the MFILES list 2002-10-04 20:36:39 +00:00
sam
369f70a716 major 70 is for /dev/crypto (to be consistent with openbsd) 2002-10-04 20:36:13 +00:00
sam
ad2116d998 module for ubsec crypto driver 2002-10-04 20:35:33 +00:00
sam
109cbe34c8 module for hifn driver 2002-10-04 20:35:23 +00:00
sam
f42003f8d1 module for /dev/crypto support 2002-10-04 20:35:02 +00:00
sam
0196f79e00 add DTYPE_CRYPTO for use by /dev/crypto support 2002-10-04 20:34:30 +00:00
sam
f3556bbd12 add RANDOM_PURE for use by crypto drivers that harvest data from h/w RNG's 2002-10-04 20:34:08 +00:00
sam
3a935a95e3 Crypto device driver for Broadcom-based cards. Known to work with 582x-based
cards.  Supposed to work with several others.

Obtained from:	openbsd
2002-10-04 20:33:20 +00:00
sam
7e497f5bab Crypto device driver for hifn-based cards. Tested with 7951-, and 7811-based
cards.  Claimed to support many others.

Obtained from:	 openbsd
2002-10-04 20:32:37 +00:00
sam
91416784e4 In-kernel crypto framework derived from openbsd. This facility provides
a consistent interface to h/w and s/w crypto algorithms for use by the
kernel and (for h/w at least) by user-mode apps.  Access for user-level
code is through a /dev/crypto device that'll eventually be used by openssl
to (potentially) accelerate many applications.  Coming soon is an IPsec
that makes use of this service to accelerate ESP, AH, and IPCOMP protocols.

Included here is the "core" crypto support, /dev/crypto driver, various
crypto algorithms that are not already present in the KAME crypto area,
and support routines used by crypto device drivers.

Obtained from:	openbsd
2002-10-04 20:31:23 +00:00
phk
16827939fa Give make(1) the ability to use KQUEUE to wait for worker processes
instead of polling for them.

Unfortunately we cannot enable it yet because it panics the kernel
somewhere in kqueue.

Submitted by:	Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
2002-10-04 20:30:03 +00:00
jhb
d4e647af8c Fix a bogon in previous commit. bcopy() from the malloc'd memory that we
already copied into, rather than doing the bcopy() from the userland
pointer.  "Oops."
2002-10-04 20:19:36 +00:00
iwasaki
68f2798ccf Resolve conflicts arising from the ACPI CA 20021002 import. 2002-10-04 20:09:19 +00:00
iwasaki
6a8b238332 This commit was generated by cvs2svn to compensate for changes in r104470,
which included commits to RCS files with non-trunk default branches.
2002-10-04 20:07:58 +00:00
iwasaki
3b2a4f1cbe Vendor import of the Intel ACPI CA 20021002 drop. 2002-10-04 20:07:58 +00:00
phk
789741b5dc White-space change only. Move closer to style(9). 2002-10-04 18:10:39 +00:00
bmah
444df569cd Remove matcd(4) device. 2002-10-04 16:53:39 +00:00
bmah
2545140454 New release notes: matcd(4) removal, libbsdxml.
While here, fix a minor style nit.
2002-10-04 16:53:12 +00:00
tjr
d2ae103f16 Fix off-by-one error processing the line after an empty line when the
-a option is not specified.

Submitted by:	schweikh
MFC after:	1 week
2002-10-04 16:45:25 +00:00
ru
d4a97d92cd Sort in ``phone directory'' order (except for LIBC_*). 2002-10-04 16:25:08 +00:00
keramida
f8228e08a5 Add a couple of missing ':' in panic msgs.
Suggested by:	gallatin
2002-10-04 15:58:03 +00:00
keramida
d0344dd61b Fix typo in panic msg.
Reviewed by:	gallatin
2002-10-04 15:56:02 +00:00
ru
6c1c40796f Minor tweaks to make this manpage readable. 2002-10-04 15:07:39 +00:00
ru
c065224eef Style.
Approved by:	phk
2002-10-04 15:06:44 +00:00
deischen
6bcd2dc9e0 Add another temporary hack to allow running older i386 binaries.
This will be removed when new versions of syscalls sigreturn()
and sigaction() are added (mini is working on this but is in
the middle of a move).

This should fix the problem of cvsupd dying.
2002-10-04 14:50:55 +00:00
nyan
86b70d31d6 Include <sys/diskpc98.h> 2002-10-04 14:05:00 +00:00
phk
cfc2d358d8 Connect libbsdxml (nee libexpat) to the build. 2002-10-04 13:40:39 +00:00
phk
d6d4af20f7 Reflect the fact that we install our libexpat as libbsdxml. 2002-10-04 13:36:12 +00:00
phk
54a5f50c0e Unhook the SCSI CD driver from the disk "mini-layer" and/or GEOM.
SCSI disks are too square pegs for the round holes in both of these.

And since atapi-cd has clearly shown that there are better acccess
models for CD media than trying to pretend to be a classical disk,
we stop the masquerade rather than patch up the costume.

But do implement the DIOCGMEDIASIZE and DIOCGSECTORSIZE so it will
be possible to manually attach to GEOM, should some the need arise.

Ideally, this driver should do media-detection and call make_dev()
when a CD is inserted and destroy_dev() when it is removed, this
would allow our future devd(8) to automount etc etc but coding that
takes SCSI-clue beyond anything I posses.

Tested on:      sparc64
2002-10-04 13:33:30 +00:00
bde
6a20847b5b Use the -mno-align-long-strings on i386's to debloat the kernel a little.
This reduces the size of GENERIC's text space by 73999 bytes (about 2%).
The bloat is from approximately 3437 strings longer than 31 characters
being padded to a 32-byte boundary.
2002-10-04 12:54:36 +00:00
robert
947e91552f Correct the regressive part of my last commit to these files:
use the .Fn macro instead of the .Fo ... .Fc combination to
format function prototypes.

Reminded by:	bde
2002-10-04 11:31:00 +00:00
phk
68c8dc8ee7 Ok, concensus was to install libexpat under a "private brandname", and after
some deliberation the name "libbsdxml" was chosen since it conveys the two
most important attributes:  "Private to FreeBSD" and "XML".

Add a skeleton man-page to give the credit and point for further
documentation.  (If somebody wants to write a true mdoc manpage for
this I am sure both the eXpat people and I will be grateful).

(Still not connected to the build)
2002-10-04 11:20:18 +00:00
phk
614e9a7774 Properly isolate the locking domains of sysctl from the topology lock
for the sysctls which report the configuration.

Sponsored by:	DARPA & NAI Labs.
2002-10-04 10:38:36 +00:00