]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoRemove matcd from MAKEDEV.
scottl [Sat, 5 Oct 2002 18:28:48 +0000 (18:28 +0000)]
Remove matcd from MAKEDEV.

X-MFC after: ASAP

21 years agoMerge implementation of mpo_check_vnode_link() for various appropriate
rwatson [Sat, 5 Oct 2002 18:25:48 +0000 (18:25 +0000)]
Merge implementation of mpo_check_vnode_link() for various appropriate
file-system aware MAC policies.  Sync to MAC tree.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoMerge support for mac_check_vnode_link(), a MAC framework/policy entry
rwatson [Sat, 5 Oct 2002 18:11:36 +0000 (18:11 +0000)]
Merge support for mac_check_vnode_link(), a MAC framework/policy entry
point that instruments the creation of hard links.  Policy implementations
to follow.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoWhile the MAC API has supported the ability to handle M_NOWAIT passed
rwatson [Sat, 5 Oct 2002 17:44:49 +0000 (17:44 +0000)]
While the MAC API has supported the ability to handle M_NOWAIT passed
to mbuf label initialization, that functionality was never merged to
the main tree.  Go ahead and merge that functionality now.  Note that
this requires policy modules to accept the case where the label
element may be destroyed even if init has not succeeded on it (in
the event that policy failed the init).  This will shortly also
apply to sockets.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRearrange object and label init/destroy functions to match the
rwatson [Sat, 5 Oct 2002 17:38:45 +0000 (17:38 +0000)]
Rearrange object and label init/destroy functions to match the
order used in mac_policy.h and elsewhere.  Sort order is basically
"by operation category", then "alphabetically by object". Sync to
MAC tree.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoAdd hifn(4) and ubsec(4) devices for i386/pc98.
bmah [Sat, 5 Oct 2002 17:23:18 +0000 (17:23 +0000)]
Add hifn(4) and ubsec(4) devices for i386/pc98.

21 years agoNew release notes: crypto(4) and related info
bmah [Sat, 5 Oct 2002 17:22:22 +0000 (17:22 +0000)]
New release notes:  crypto(4) and related info

Updated release notes:  Update KSE info and add cross-reference to
kse(2) manpage.

Fix a couple of minor typos while I'm here.

21 years agoSync to MAC tree: use 'flag' instead of 'how' for mac_init_mbuf();
rwatson [Sat, 5 Oct 2002 17:18:43 +0000 (17:18 +0000)]
Sync to MAC tree: use 'flag' instead of 'how' for mac_init_mbuf();
remove a slightly less than useful comment.

21 years agoDon't allow dev_stdclone(9) to accept minors larger than the system is
green [Sat, 5 Oct 2002 17:10:28 +0000 (17:10 +0000)]
Don't allow dev_stdclone(9) to accept minors larger than the system is
able to handle (0xffffff).

21 years agoAnother big diff, little functional change: move label internalization,
rwatson [Sat, 5 Oct 2002 16:57:16 +0000 (16:57 +0000)]
Another big diff, little functional change: move label internalization,
externalization, and cred label life cycle events to entirely above
devfs and vnode events.  Sync from MAC tree.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoMove all object label init/destroy routines to the head of the
rwatson [Sat, 5 Oct 2002 16:54:59 +0000 (16:54 +0000)]
Move all object label init/destroy routines to the head of the
entry points to better match the entry point ordering in mac_policy.h.
Big diff, no functional change; merge from the MAC tree.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoSynch from TrustedBSD MAC tree:
rwatson [Sat, 5 Oct 2002 16:46:03 +0000 (16:46 +0000)]
Synch from TrustedBSD MAC tree:

- If a policy isn't registered when a policy module unloads, silently
  succeed.

- Hold the policy list lock across more of the validity tests to avoid
  races.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoNB: This commit does *NOT* make GEOM the default in FreeBSD
phk [Sat, 5 Oct 2002 16:35:33 +0000 (16:35 +0000)]
NB: This commit does *NOT* make GEOM the default in FreeBSD
NB: But it will enable it in all kernels not having options "NO_GEOM"

Put the GEOM related options into the intended order.

Add "options NO_GEOM" to all kernel configs apart from NOTES.

In some order of controlled fashion, the NO_GEOM options will be
removed, architecture by architecture in the coming days.

There are currently three known issues which may force people to
need the NO_GEOM option:

boot0cfg/fdisk:
        Tries to update the MBR while it is being used to control
        slices.  GEOM does not allow this as a direct operation.

SCSI floppy drives:
        Appearantly the scsi-da driver return "EBUSY" if no media
        is inserted.  This is wrong, it should return ENXIO.

PC98:
        It is unclear if GEOM correctly recognizes all variants of
        PC98 disklabels.  (Help Wanted!  I have neither docs nor HW)

These issues are all being worked.

Sponsored by: DARPA & NAI Labs.

21 years agoCosmetic line wrap synchronization.
rwatson [Sat, 5 Oct 2002 16:33:46 +0000 (16:33 +0000)]
Cosmetic line wrap synchronization.

21 years agoPush the debugging obect label counters into security.mac.debug.counters
rwatson [Sat, 5 Oct 2002 16:30:53 +0000 (16:30 +0000)]
Push the debugging obect label counters into security.mac.debug.counters
rather than directly under security.mac.debug.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoDon't use dkunit() to find our softc when we can hang it off the dev_t.
phk [Sat, 5 Oct 2002 15:49:39 +0000 (15:49 +0000)]
Don't use dkunit() to find our softc when we can hang it off the dev_t.

This removes yet a dependency on the old disklabel stuff.

Sponsored by: DARPA & NAI Labs.

21 years agoMerge the last couple of my changes to fd.c into the pc98 version.
phk [Sat, 5 Oct 2002 15:15:43 +0000 (15:15 +0000)]
Merge the last couple of my changes to fd.c into the pc98 version.

Sponsored by: DARPA & NAI Labs

21 years agoBegin another merge from the TrustedBSD MAC branch:
rwatson [Sat, 5 Oct 2002 15:10:00 +0000 (15:10 +0000)]
Begin another merge from the TrustedBSD MAC branch:

- Change mpo_init_foo(obj, label) and mpo_destroy_foo(obj, label) policy
  entry points to mpo_init_foo_label(label) and
  mpo_destroy_foo_label(label).  This will permit the use of the same
  entry points for holding temporary type-specific label during
  internalization and externalization, as well as for caching purposes.
- Because of this, break out mpo_{init,destroy}_socket() and
  mpo_{init,destroy}_mount() into seperate entry points for socket
  main/peer labels and mount main/fs labels.
- Since the prototype for label initialization is the same across almost
  all entry points, implement these entry points using common
  implementations for Biba, MLS, and Test, reducing the number of
  almost identical looking functions.

This simplifies policy implementation, as well as preparing us for the
merge of the new flexible userland API for managing labels on objects.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoFix building of minimal kernels without npx by rearranging ifdefs.
deischen [Sat, 5 Oct 2002 14:36:14 +0000 (14:36 +0000)]
Fix building of minimal kernels without npx by rearranging ifdefs.
Also fix some style bugs in surrounding code, and add a comment
about FP state restoral that seems questionable.

Submitted by: bde

21 years agoUse in-tree libbsdxml instead of ports based libexpat.
phk [Sat, 5 Oct 2002 13:16:07 +0000 (13:16 +0000)]
Use in-tree libbsdxml instead of ports based libexpat.

Sponsored by: DARPA & NAI Labs.

21 years agoMatch the new g_io_deliver() API in the kernel.
phk [Sat, 5 Oct 2002 13:12:10 +0000 (13:12 +0000)]
Match the new g_io_deliver() API in the kernel.

Sponsored by: DARPA & NAI Labs.

21 years agoPass sbuf to the kernel routines to match new kernel code.
phk [Sat, 5 Oct 2002 13:11:01 +0000 (13:11 +0000)]
Pass sbuf to the kernel routines to match new kernel code.

Sponsored by: DARPA & NAI Labs

21 years agoFix problem introduced in rev.1.406, which can cause already unlocked
sobomax [Sat, 5 Oct 2002 12:56:10 +0000 (12:56 +0000)]
Fix problem introduced in rev.1.406, which can cause already unlocked
mutex being unlocked again causing system panic.

21 years agoPlug memoryleaks detected by FlexeLint.
phk [Sat, 5 Oct 2002 12:00:11 +0000 (12:00 +0000)]
Plug memoryleaks detected by FlexeLint.

21 years agoIf dsgetlabel() returns a label with a size of zero in diskdumpconf(),
brian [Sat, 5 Oct 2002 11:24:21 +0000 (11:24 +0000)]
If dsgetlabel() returns a label with a size of zero in diskdumpconf(),
treat it as an invalid partition.

This fixes a bug where ``dumpon <device>'' will configure the dump
device at a random offset on the disk if <device> isn't a valid
partition.

Reviewed by: phk

21 years agoFix namespace issues by using visibility conditionals from
mike [Sat, 5 Oct 2002 05:48:50 +0000 (05:48 +0000)]
Fix namespace issues by using visibility conditionals from
<sys/cdefs.h>.  Sort function prototypes.

21 years agoFix namespace issues by using visibility conditionals from
mike [Sat, 5 Oct 2002 05:47:56 +0000 (05:47 +0000)]
Fix namespace issues by using visibility conditionals from
<sys/cdefs.h>.

21 years agoChange <sys/_sigset.h> to typedef __sigset_t instead of sigset_t, so
mike [Sat, 5 Oct 2002 05:40:48 +0000 (05:40 +0000)]
Change <sys/_sigset.h> to typedef __sigset_t instead of sigset_t, so
that headers that include it can conditionalize sigset_t's visibility.

21 years agoPut an easy-to-miss assignment into the proper place. It was stray in the
jmallett [Sat, 5 Oct 2002 04:49:46 +0000 (04:49 +0000)]
Put an easy-to-miss assignment into the proper place.  It was stray in the
middle of a block of code, with no clear assignment.  While here, move one
nearby assignment out of declaration.

21 years agoRemove bogus duplicate assignment of local variables.
jmallett [Sat, 5 Oct 2002 04:35:59 +0000 (04:35 +0000)]
Remove bogus duplicate assignment of local variables.

21 years agoGet Vinum up and running with GEOM:
rwatson [Sat, 5 Oct 2002 03:44:00 +0000 (03:44 +0000)]
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

21 years agoRefinement on previous fix for mutex destruction: make sure we don't
rwatson [Sat, 5 Oct 2002 03:33:38 +0000 (03:33 +0000)]
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

21 years agoRemove a panic on vinum module unload: make sure to destroy all mutexes
rwatson [Sat, 5 Oct 2002 03:07:23 +0000 (03:07 +0000)]
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

21 years agoDefine _MACHINE.
jmallett [Sat, 5 Oct 2002 02:56:49 +0000 (02:56 +0000)]
Define _MACHINE.

21 years agoOnce again, remove the i386-specific hacks to save and restore
deischen [Sat, 5 Oct 2002 02:22:26 +0000 (02:22 +0000)]
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.

21 years agoMake sure that ACPI PCI driver probe routine call pci_cfgregopen()
iwasaki [Sat, 5 Oct 2002 02:16:49 +0000 (02:16 +0000)]
Make sure that ACPI PCI driver probe routine call pci_cfgregopen()
before start accessing PCI config space.

Reviewed by: jhb

21 years agoOops, forgot to add main file for my previous commit :-)
iwasaki [Sat, 5 Oct 2002 02:06:00 +0000 (02:06 +0000)]
Oops, forgot to add main file for my previous commit :-)

21 years agoAdd code for ACPI PCI link object manipulation.
iwasaki [Sat, 5 Oct 2002 02:01:05 +0000 (02:01 +0000)]
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.

21 years agostyle(9) <machine/setjmp.h> headers so they look mostly the same.
mike [Fri, 4 Oct 2002 22:10:06 +0000 (22:10 +0000)]
style(9) <machine/setjmp.h> headers so they look mostly the same.

21 years agoAdd restrict type-qualifier to sem_getvalue().
mike [Fri, 4 Oct 2002 21:32:00 +0000 (21:32 +0000)]
Add restrict type-qualifier to sem_getvalue().

21 years agoo Adjust the SEM_VALUE_MAX macro so that <machine/limits.h> isn't
mike [Fri, 4 Oct 2002 21:31:33 +0000 (21:31 +0000)]
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().

21 years agoadd support for /dev/crypto
sam [Fri, 4 Oct 2002 20:44:46 +0000 (20:44 +0000)]
add support for /dev/crypto

21 years agoinstall sys/opencrypto include files in /usr/include/crypto
sam [Fri, 4 Oct 2002 20:44:28 +0000 (20:44 +0000)]
install sys/opencrypto include files in /usr/include/crypto

21 years agomanual pages for the new kernel crypto support (need work)
sam [Fri, 4 Oct 2002 20:43:30 +0000 (20:43 +0000)]
manual pages for the new kernel crypto support (need work)

Obtained from: openbsd

21 years agohookup new crypto support to the config/build process
sam [Fri, 4 Oct 2002 20:42:36 +0000 (20:42 +0000)]
hookup new crypto support to the config/build process

21 years agoNew bus_dma interfaces for use by crypto device drivers:
sam [Fri, 4 Oct 2002 20:40:39 +0000 (20:40 +0000)]
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.

21 years agoadd crypto interface to the MFILES list
sam [Fri, 4 Oct 2002 20:36:39 +0000 (20:36 +0000)]
add crypto interface to the MFILES list

21 years agomajor 70 is for /dev/crypto (to be consistent with openbsd)
sam [Fri, 4 Oct 2002 20:36:13 +0000 (20:36 +0000)]
major 70 is for /dev/crypto (to be consistent with openbsd)

21 years agomodule for ubsec crypto driver
sam [Fri, 4 Oct 2002 20:35:33 +0000 (20:35 +0000)]
module for ubsec crypto driver

21 years agomodule for hifn driver
sam [Fri, 4 Oct 2002 20:35:23 +0000 (20:35 +0000)]
module for hifn driver

21 years agomodule for /dev/crypto support
sam [Fri, 4 Oct 2002 20:35:02 +0000 (20:35 +0000)]
module for /dev/crypto support

21 years agoadd DTYPE_CRYPTO for use by /dev/crypto support
sam [Fri, 4 Oct 2002 20:34:30 +0000 (20:34 +0000)]
add DTYPE_CRYPTO for use by /dev/crypto support

21 years agoadd RANDOM_PURE for use by crypto drivers that harvest data from h/w RNG's
sam [Fri, 4 Oct 2002 20:34:08 +0000 (20:34 +0000)]
add RANDOM_PURE for use by crypto drivers that harvest data from h/w RNG's

21 years agoCrypto device driver for Broadcom-based cards. Known to work with 582x-based
sam [Fri, 4 Oct 2002 20:33:20 +0000 (20:33 +0000)]
Crypto device driver for Broadcom-based cards.  Known to work with 582x-based
cards.  Supposed to work with several others.

Obtained from: openbsd

21 years agoCrypto device driver for hifn-based cards. Tested with 7951-, and 7811-based
sam [Fri, 4 Oct 2002 20:32:37 +0000 (20:32 +0000)]
Crypto device driver for hifn-based cards.  Tested with 7951-, and 7811-based
cards.  Claimed to support many others.

Obtained from:  openbsd

21 years agoIn-kernel crypto framework derived from openbsd. This facility provides
sam [Fri, 4 Oct 2002 20:31:23 +0000 (20:31 +0000)]
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

21 years agoGive make(1) the ability to use KQUEUE to wait for worker processes
phk [Fri, 4 Oct 2002 20:30:03 +0000 (20:30 +0000)]
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>

21 years agoFix a bogon in previous commit. bcopy() from the malloc'd memory that we
jhb [Fri, 4 Oct 2002 20:19:36 +0000 (20:19 +0000)]
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."

21 years agoResolve conflicts arising from the ACPI CA 20021002 import.
iwasaki [Fri, 4 Oct 2002 20:09:19 +0000 (20:09 +0000)]
Resolve conflicts arising from the ACPI CA 20021002 import.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r104470,
iwasaki [Fri, 4 Oct 2002 20:07:58 +0000 (20:07 +0000)]
This commit was generated by cvs2svn to compensate for changes in r104470,
which included commits to RCS files with non-trunk default branches.

21 years agoVendor import of the Intel ACPI CA 20021002 drop.
iwasaki [Fri, 4 Oct 2002 20:07:58 +0000 (20:07 +0000)]
Vendor import of the Intel ACPI CA 20021002 drop.

21 years agoWhite-space change only. Move closer to style(9).
phk [Fri, 4 Oct 2002 18:10:39 +0000 (18:10 +0000)]
White-space change only.  Move closer to style(9).

21 years agoRemove matcd(4) device.
bmah [Fri, 4 Oct 2002 16:53:39 +0000 (16:53 +0000)]
Remove matcd(4) device.

21 years agoNew release notes: matcd(4) removal, libbsdxml.
bmah [Fri, 4 Oct 2002 16:53:12 +0000 (16:53 +0000)]
New release notes:  matcd(4) removal, libbsdxml.

While here, fix a minor style nit.

21 years agoFix off-by-one error processing the line after an empty line when the
tjr [Fri, 4 Oct 2002 16:45:25 +0000 (16:45 +0000)]
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

21 years agoSort in ``phone directory'' order (except for LIBC_*).
ru [Fri, 4 Oct 2002 16:25:08 +0000 (16:25 +0000)]
Sort in ``phone directory'' order (except for LIBC_*).

21 years agoAdd a couple of missing ':' in panic msgs.
keramida [Fri, 4 Oct 2002 15:58:03 +0000 (15:58 +0000)]
Add a couple of missing ':' in panic msgs.

Suggested by: gallatin

21 years agoFix typo in panic msg.
keramida [Fri, 4 Oct 2002 15:56:02 +0000 (15:56 +0000)]
Fix typo in panic msg.
Reviewed by: gallatin

21 years agoMinor tweaks to make this manpage readable.
ru [Fri, 4 Oct 2002 15:07:39 +0000 (15:07 +0000)]
Minor tweaks to make this manpage readable.

21 years agoStyle.
ru [Fri, 4 Oct 2002 15:06:44 +0000 (15:06 +0000)]
Style.

Approved by: phk

21 years agoAdd another temporary hack to allow running older i386 binaries.
deischen [Fri, 4 Oct 2002 14:50:55 +0000 (14:50 +0000)]
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.

21 years agoInclude <sys/diskpc98.h>
nyan [Fri, 4 Oct 2002 14:05:00 +0000 (14:05 +0000)]
Include <sys/diskpc98.h>

21 years agoConnect libbsdxml (nee libexpat) to the build.
phk [Fri, 4 Oct 2002 13:40:39 +0000 (13:40 +0000)]
Connect libbsdxml (nee libexpat) to the build.

21 years agoReflect the fact that we install our libexpat as libbsdxml.
phk [Fri, 4 Oct 2002 13:36:12 +0000 (13:36 +0000)]
Reflect the fact that we install our libexpat as libbsdxml.

21 years agoUnhook the SCSI CD driver from the disk "mini-layer" and/or GEOM.
phk [Fri, 4 Oct 2002 13:33:30 +0000 (13:33 +0000)]
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

21 years agoUse the -mno-align-long-strings on i386's to debloat the kernel a little.
bde [Fri, 4 Oct 2002 12:54:36 +0000 (12:54 +0000)]
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.

21 years agoCorrect the regressive part of my last commit to these files:
robert [Fri, 4 Oct 2002 11:31:00 +0000 (11:31 +0000)]
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

21 years agoOk, concensus was to install libexpat under a "private brandname", and after
phk [Fri, 4 Oct 2002 11:20:18 +0000 (11:20 +0000)]
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)

21 years agoProperly isolate the locking domains of sysctl from the topology lock
phk [Fri, 4 Oct 2002 10:38:36 +0000 (10:38 +0000)]
Properly isolate the locking domains of sysctl from the topology lock
for the sysctls which report the configuration.

Sponsored by: DARPA & NAI Labs.

21 years agoImplement the "kern.disks" sysctl in GEOM.
phk [Fri, 4 Oct 2002 10:15:26 +0000 (10:15 +0000)]
Implement the "kern.disks" sysctl in GEOM.

This makes "mdconfig -l" work again.

Sponsored by: DARPA & NAI Labs.

21 years agoProperly conditionalize a debugging printf.
phk [Fri, 4 Oct 2002 10:06:19 +0000 (10:06 +0000)]
Properly conditionalize a debugging printf.

Sponsored by: DARPA & NAI Labs.

21 years agoAdd the new function "sbuf_done()" which returns non-zero if the sbuf is
phk [Fri, 4 Oct 2002 09:58:17 +0000 (09:58 +0000)]
Add the new function "sbuf_done()" which returns non-zero if the sbuf is
finished.

This allows sbufs to be used for request/response scenarioes without
needing additional communication flags.

Sponsored by: DARPA & NAI Labs.

21 years agoRemove duplicate make_dev() calls.
mdodd [Fri, 4 Oct 2002 08:33:10 +0000 (08:33 +0000)]
Remove duplicate make_dev() calls.

21 years agoTurn on the mcd(4) module.
mdodd [Fri, 4 Oct 2002 07:15:34 +0000 (07:15 +0000)]
Turn on the mcd(4) module.

21 years agonewbus & bus_space the mcd(4) driver.
mdodd [Fri, 4 Oct 2002 07:14:19 +0000 (07:14 +0000)]
newbus & bus_space the mcd(4) driver.

21 years agoAlas, poor matcd, I knew ye well.
scottl [Fri, 4 Oct 2002 06:06:04 +0000 (06:06 +0000)]
Alas, poor matcd, I knew ye well.

It doesn't work.
It cannot be made to work.
Goodbye.

X-MFC after: ASAP

21 years agoAdd a placeholder implementation of wcscoll() and wcsxfrm() which gives
tjr [Fri, 4 Oct 2002 03:18:26 +0000 (03:18 +0000)]
Add a placeholder implementation of wcscoll() and wcsxfrm() which gives
locale-sensitive collation only in single-byte locales, and just does
binary comparison for the others with extended character sets.

21 years agoYesterday, FreeBSD-current ate my disklabel.
wollman [Fri, 4 Oct 2002 03:06:16 +0000 (03:06 +0000)]
Yesterday, FreeBSD-current ate my disklabel.
Today, I wrote a program to tell me where the partitions used to be.
Now I have my /media filesystem back.

21 years agoMinor style(9) changes.
mdodd [Fri, 4 Oct 2002 02:21:26 +0000 (02:21 +0000)]
Minor style(9) changes.

21 years agoRemove duplicate calls to make_dev().
mdodd [Fri, 4 Oct 2002 01:58:55 +0000 (01:58 +0000)]
Remove duplicate calls to make_dev().

21 years agoGah, spell extern correctly. Do not trust cut/paste via old mozilla
peter [Fri, 4 Oct 2002 01:57:46 +0000 (01:57 +0000)]
Gah, spell extern correctly.  Do not trust cut/paste via old mozilla
builds.

21 years agoList the IO SAPIC delivery mode definitions.
peter [Fri, 4 Oct 2002 01:33:30 +0000 (01:33 +0000)]
List the IO SAPIC delivery mode definitions.

21 years agoAdd some unspeakable hackery to the tree under #ifdef __ia64__ to work
peter [Fri, 4 Oct 2002 01:31:39 +0000 (01:31 +0000)]
Add some unspeakable hackery to the tree under #ifdef __ia64__ to work
around limitations in the ia64 kernel stack handling code.  Basically
preallocate a bunch of threads (and hence kstacks) while contigmalloc()
still works, and never free them back to the general memory pool.  After
the system has been running for a while, contigmalloc() eventually fails
at a critical momemt and panics the system.

21 years agoDeclare itc_frequency and itm_reload.
peter [Fri, 4 Oct 2002 01:23:58 +0000 (01:23 +0000)]
Declare itc_frequency and itm_reload.

21 years agoClean up ddb warnings/errors and enable in GENERIC
grehan [Fri, 4 Oct 2002 01:19:18 +0000 (01:19 +0000)]
Clean up ddb warnings/errors and enable in GENERIC

Approved by: benno
Motivated by: gallatin

21 years ago- fix zero-sized stack alloc from previous commit. a default is now
grehan [Fri, 4 Oct 2002 01:13:34 +0000 (01:13 +0000)]
- fix zero-sized stack alloc from previous commit. a default is now
  selected ala sparc64
- KSEIII routines implemented (taken from i386/sparc64)

Approved by: Benno

21 years agoDo a bit of rude hackery to get clock interrupts on all CPUs. This
peter [Fri, 4 Oct 2002 01:00:35 +0000 (01:00 +0000)]
Do a bit of rude hackery to get clock interrupts on all CPUs.  This
is partly based on the Alpha system which duplicates the clock to
each cpu, instead of doing a clock roundrobin like on i386.  This means
we get hz * ncpu clocks per second and so we have to seperate clock
sampling from actual 'do the work' clock processing.  The BSP runs the
complete processing, the rest just sample state etc.

Using the on-cpu interval timer is not ideal as it will drift.  There
is more to be done here, we should use an external clock source.

21 years agoOops, missed this one. Fix a printf format error on 64 bit systems
peter [Fri, 4 Oct 2002 00:35:22 +0000 (00:35 +0000)]
Oops, missed this one.  Fix a printf format error on 64 bit systems
where sizes are long instead of int.

21 years agoFix printf format errors on 64 bit systems where sizes are long
peter [Fri, 4 Oct 2002 00:33:46 +0000 (00:33 +0000)]
Fix printf format errors on 64 bit systems where sizes are long
instead of just int.

21 years agoDisplay the name of the acpi node that we do not find the pci interrupt
peter [Fri, 4 Oct 2002 00:32:09 +0000 (00:32 +0000)]
Display the name of the acpi node that we do not find the pci interrupt
routing table for.