]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoChange the FreeBSD version addendum to "FreeBSD-20020402". This shortens
Dag-Erling Smørgrav [Tue, 2 Apr 2002 21:53:54 +0000 (21:53 +0000)]
Change the FreeBSD version addendum to "FreeBSD-20020402".  This shortens
the version string to 28 characters, which is below the 40-character limit
specified in the proposed SECSH standard.  Some servers, however (like the
one built into the Foundry BigIron line of switches) will hang when
confronted with a version string longer than 24 characters, so some users
may need to shorten it further.

Sponsored by: DARPA, NAI Labs

22 years agoAdd support for the PERC3/Di found in the Dell 1650
Scott Long [Tue, 2 Apr 2002 21:49:26 +0000 (21:49 +0000)]
Add support for the PERC3/Di found in the Dell 1650

Submitted by: mp

22 years agoMake the various ssh clients understand the VersionAddendum option.
Dag-Erling Smørgrav [Tue, 2 Apr 2002 21:48:51 +0000 (21:48 +0000)]
Make the various ssh clients understand the VersionAddendum option.

Submitted by: pb

22 years agofix comment typo, s/neccisary/necessary/g
Alfred Perlstein [Tue, 2 Apr 2002 21:25:12 +0000 (21:25 +0000)]
fix comment typo, s/neccisary/necessary/g

22 years agoOops, forgot to commit the definition of the mtx_name() macro.
Dag-Erling Smørgrav [Tue, 2 Apr 2002 21:12:17 +0000 (21:12 +0000)]
Oops, forgot to commit the definition of the mtx_name() macro.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r93694,
Dag-Erling Smørgrav [Tue, 2 Apr 2002 20:57:22 +0000 (20:57 +0000)]
This commit was generated by cvs2svn to compensate for changes in r93694,
which included commits to RCS files with non-trunk default branches.

22 years agoFix incorrect allocation size (perforce change 8918)
Dag-Erling Smørgrav [Tue, 2 Apr 2002 20:57:22 +0000 (20:57 +0000)]
Fix incorrect allocation size (perforce change 8918)

PR: bin/36658
Submitted by: Takanori Saneto <sanewo@ba2.so-net.ne.jp>

22 years agoSpelling police.
John Baldwin [Tue, 2 Apr 2002 20:44:30 +0000 (20:44 +0000)]
Spelling police.

22 years agoSwitch to using XFree86 version 4. We do this thru installing the package,
David E. O'Brien [Tue, 2 Apr 2002 20:42:54 +0000 (20:42 +0000)]
Switch to using XFree86 version 4.  We do this thru installing the package,
so know we have proper PKG registration and dependency information.

This is a WIP for 5.0 DP #1, so it is still rough around the edges and
does not GC the old XFree86 3.3.6 handling stuff that should be GC'ed.
Sponsored by: FreeBSD Mall, Inc.

22 years agoEnforce an implicit lock order of sleepable locks before non-sleepable
John Baldwin [Tue, 2 Apr 2002 19:27:21 +0000 (19:27 +0000)]
Enforce an implicit lock order of sleepable locks before non-sleepable
locks.

22 years agoWhen reading a UFS-style label from a floppy, don't attempt to use a
Joerg Wunsch [Tue, 2 Apr 2002 18:29:43 +0000 (18:29 +0000)]
When reading a UFS-style label from a floppy, don't attempt to use a
"raw partition" of any kind since the floppy driver doesn't support
UFS-style partitions at all.

Reported by: "Crist J. Clark" <crist.clark@attbi.com>
Reviewed by: bde
MFC after: 3 days

22 years ago- Make this compile if INVARIANTS support is not enabled.
Andrew R. Reiter [Tue, 2 Apr 2002 18:18:56 +0000 (18:18 +0000)]
- Make this compile if INVARIANTS support is not enabled.

22 years agoFix crashes that would happen when more than one 4MB page was used to
Thomas Moestl [Tue, 2 Apr 2002 17:50:13 +0000 (17:50 +0000)]
Fix crashes that would happen when more than one 4MB page was used to
hold the kernel text, data and loader metadata by not using a fixed slot
to store the TSB page(s) into. Enter fake 8k page entries into the kernel
TSB that cover the 4M kernel page(s), sot that pmap_kenter() will work
without having to treat these pages as a special case.

Problem reported by: mjacob, obrien
Problem spotted and 4M page handling proposed by:       jake

22 years ago- Add a mutex to lock the global securelevel value.
Andrew R. Reiter [Tue, 2 Apr 2002 17:43:17 +0000 (17:43 +0000)]
- Add a mutex to lock the global securelevel value.
- Make use of MTX_SYSINIT() as the means to initialize our mutex lock.

22 years agoRemove the superfluous second argument from the IOTSBSLOT() macro.
Thomas Moestl [Tue, 2 Apr 2002 17:41:06 +0000 (17:41 +0000)]
Remove the superfluous second argument from the IOTSBSLOT() macro.

22 years agoLower UPA_MEMSTART to 0x1c000000000. This is required for some larger
Thomas Moestl [Tue, 2 Apr 2002 17:38:52 +0000 (17:38 +0000)]
Lower UPA_MEMSTART to 0x1c000000000. This is required for some larger
Enterprise machines.

22 years agoSet mp_maxid so that UMA works with SMP.
Thomas Moestl [Tue, 2 Apr 2002 17:37:06 +0000 (17:37 +0000)]
Set mp_maxid so that UMA works with SMP.

Submitted by: jake

22 years agoDo not try to set up the PCI bus B error interrupt on "sabre"s, since
Thomas Moestl [Tue, 2 Apr 2002 17:27:35 +0000 (17:27 +0000)]
Do not try to set up the PCI bus B error interrupt on "sabre"s, since
it is only available on "psycho"s. The same applies to the power
management interrupt, which is not enabled by default though.

22 years agoRemove a debugging panic that was triggered when a resource that was out
Thomas Moestl [Tue, 2 Apr 2002 17:23:45 +0000 (17:23 +0000)]
Remove a debugging panic that was triggered when a resource that was out
of range was tried to be allocated; just return failure instead.

22 years ago- Add notes about SX_SYSINIT and MTX_SYSINIT in order to document the
Andrew R. Reiter [Tue, 2 Apr 2002 17:21:00 +0000 (17:21 +0000)]
- Add notes about SX_SYSINIT and MTX_SYSINIT in order to document the
  recent additions of these macros.
- Add in a MLINK to create SX_SYSINIT.9 and MTX_SYSINIT.9.

22 years agoFix leakage of p_pgrp lock.
Seigo Tanimura [Tue, 2 Apr 2002 17:12:06 +0000 (17:12 +0000)]
Fix leakage of p_pgrp lock.

22 years agoDo not use semi-fixed TLB slots for the 4M kernel pages any more.
Thomas Moestl [Tue, 2 Apr 2002 17:10:15 +0000 (17:10 +0000)]
Do not use semi-fixed TLB slots for the 4M kernel pages any more.

22 years ago1.) Rename locore.s to locore.S (by repocopy), to be able to remove
Thomas Moestl [Tue, 2 Apr 2002 17:08:37 +0000 (17:08 +0000)]
1.) Rename locore.s to locore.S (by repocopy), to be able to remove
    special-case make rule
2.) Cleanups, remove superfluous expicit rules, add -nostdlib to LDFLAGS,
    remove -X and -g, remove -g from CFLAGS
3.) Add BINDIR
4.) Build install the loader help file, add an empty help.sparc64
5.) Change the default configuration to only support booting from disk
6.) Get libofw.a from a path relative ${.OBJDIR}, not ${.CURDIR}

Submitted by: jake (1 - 5), obrien (6)

22 years agoExplicitly document how we implicitly enforce the lock order of sleep
John Baldwin [Tue, 2 Apr 2002 16:51:20 +0000 (16:51 +0000)]
Explicitly document how we implicitly enforce the lock order of sleep
locks before spin locks.

22 years agoCorrect the Northbridge test on the new ATA133 VIA's
Søren Schmidt [Tue, 2 Apr 2002 16:45:06 +0000 (16:45 +0000)]
Correct the Northbridge test on the new ATA133 VIA's
Misc cosmetics now I'm there.

22 years ago- Update to new suser() API.
John Baldwin [Tue, 2 Apr 2002 16:41:11 +0000 (16:41 +0000)]
- Update to new suser() API.
- Spell privilege properly.
- Grammar nits.

22 years ago- Add MTX_SYSINIT and SX_SYSINIT as macro glue for allowing sx and mtx
Andrew R. Reiter [Tue, 2 Apr 2002 16:05:43 +0000 (16:05 +0000)]
- Add MTX_SYSINIT and SX_SYSINIT as macro glue for allowing sx and mtx
  locks to be able to setup a SYSINIT call.  This helps in places where
  a lock is needed to protect some data, but the data is not truly
  associated with a subsystem that can properly initialize it's lock.
  The macros use the mtx_sysinit() and sx_sysinit() functions,
  respectively, as the handler argument to SYSINIT().

Reviewed by: alfred, jhb, smp@

22 years agoFix recent fixit.flp flood:
Makoto Matsushita [Tue, 2 Apr 2002 15:07:34 +0000 (15:07 +0000)]
Fix recent fixit.flp flood:
- don't make device files since we are in the DEVFS era.
  (for the last resort, fixit.flp still has /dev/MAKEDEV.)
- increase FIXITINODE size to 10 times (40000).

After this change, we have 42kbytes of free space, and 38
of free inodes (confirmed with 5.0-CURRENT-20020327-JPSNAP).

Since 4-stable doesn't have DEVFS, we can't MFC this (except FIXITINODE).

22 years agoBack the last commit out. The network drivers need reworking first. :(
Josef Karthauser [Tue, 2 Apr 2002 14:54:52 +0000 (14:54 +0000)]
Back the last commit out.  The network drivers need reworking first. :(

22 years agoInstead of get_cyclecount(9), use nanotime(9) to record acquisition and
Dag-Erling Smørgrav [Tue, 2 Apr 2002 14:42:01 +0000 (14:42 +0000)]
Instead of get_cyclecount(9), use nanotime(9) to record acquisition and
release times.  Measurements are made and stored in nanoseconds but
presented in microseconds, which should be sufficient for the locks for
which we actually want this (those that are held long and / or often).
Also, rename some variables and structure members to unit-agnostic names.

22 years agoMFNetBSD: usbdi.c (1.80), usbdi.h (1.51)
Josef Karthauser [Tue, 2 Apr 2002 14:28:18 +0000 (14:28 +0000)]
MFNetBSD: usbdi.c (1.80), usbdi.h (1.51)
    date: 2001/04/13 11:19:58;  author: augustss;
    Finally get rid of the UGLY and EVIL hack for avoiding tsleep().

22 years agoMFNetBSD:
Josef Karthauser [Tue, 2 Apr 2002 14:16:06 +0000 (14:16 +0000)]
MFNetBSD:
    revision 1.89
    date: 2001/11/10 17:10:42;  author: augustss;  state: Exp;  lines: +2 -1
    Abort any xfers on the control pipe before closing it on detach.

22 years agoMFNetBSD: usb_port.h (1.45 partial), usb_subr.c (1.88)
Josef Karthauser [Tue, 2 Apr 2002 14:14:14 +0000 (14:14 +0000)]
MFNetBSD: usb_port.h (1.45 partial), usb_subr.c (1.88)
    date: 2001/11/10 16:53:32;  author: augustss;
    Small portability improvement.

22 years agoMFNetBSD: usb_subr.c (1.87), usbdi.h (1.53)
Josef Karthauser [Tue, 2 Apr 2002 14:08:43 +0000 (14:08 +0000)]
MFNetBSD: usb_subr.c (1.87), usbdi.h (1.53)
    date: 2001/08/15 00:04:59;  author: augustss;
    Add a little infrastructure so that individual drivers can easily check
    if thee was a vendor+product locator match.

22 years agoAdd get-status to the ATA RAID subsystem.
Søren Schmidt [Tue, 2 Apr 2002 13:48:17 +0000 (13:48 +0000)]
Add get-status to the ATA RAID subsystem.

22 years agoReduce differences between NetBSD's version and ours.
Josef Karthauser [Tue, 2 Apr 2002 13:26:40 +0000 (13:26 +0000)]
Reduce differences between NetBSD's version and ours.
(Should be all white space related, but there's the removal of the
odd 'register' directive also).

22 years agoDTRT for packages read from STDIN:
Murray Stokely [Tue, 2 Apr 2002 12:47:10 +0000 (12:47 +0000)]
DTRT for packages read from STDIN:

$ cat pkg.tgz | pkg_add -

The above command line will fail on -CURRENT or -STABLE, and
therefore, so will sysinstall if you try to install additional
packages through the network (FTP) from a multiuser system.  Because
of the different environment during installation (wrt the playpen),
this bug does not manifest itself during initial installs, and users
may install packages from the network just fine at that time.

This bug was fixed in OpenBSD 4 years ago.

----------------------------
revision 1.4
date: 1998/04/07 05:56:13;  author: marc;  state: Exp;  lines: +13 -8
fix package input from standard input -- the program tried to process
stdin twice.  Note: it assumes stdin is a compressed tar file.
----------------------------

PR: conf/36606
Obtained from: OpenBSD
MFC after: 2 weeks

22 years agoProduce a different error message for mktime(3) failure than for bad
Crist J. Clark [Tue, 2 Apr 2002 12:03:16 +0000 (12:03 +0000)]
Produce a different error message for mktime(3) failure than for bad
newsyslog.conf syntax.

PR: bin/36641

22 years agoUse ANSI prototypes and declarations.
Josef Karthauser [Tue, 2 Apr 2002 11:54:28 +0000 (11:54 +0000)]
Use ANSI prototypes and declarations.

22 years agoRetire the bogus ioctl DIOCGPART in toto.
Poul-Henning Kamp [Tue, 2 Apr 2002 11:52:13 +0000 (11:52 +0000)]
Retire the bogus ioctl DIOCGPART in toto.

Once again we can notice that badly thought out hacks ferment and infect
far more code than initially expected.

Sponsored by: DARPA and NAI Labs.

22 years agoUse ANSI prototypes and declarations.
Josef Karthauser [Tue, 2 Apr 2002 11:42:57 +0000 (11:42 +0000)]
Use ANSI prototypes and declarations.
Rename csr_{write|read}_* to aue_csr_* in keeping with NetBSD.

22 years agoStop using the bogus DIOCGPART ioctl, use DIOCGSECTORSIZE and
Poul-Henning Kamp [Tue, 2 Apr 2002 11:40:45 +0000 (11:40 +0000)]
Stop using the bogus DIOCGPART ioctl, use DIOCGSECTORSIZE and
DIOCGMEDIASIZE instead.

The partition type check has been XXX'ed out since we cannot expect
that a BSD disklabel with a type field be available on all platforms.

22 years agoUse DIOCGSECTORSIZE instead of the bogus DIOCGPART ioctl.
Poul-Henning Kamp [Tue, 2 Apr 2002 11:23:14 +0000 (11:23 +0000)]
Use DIOCGSECTORSIZE instead of the bogus DIOCGPART ioctl.

22 years agoOne less user of the bogus DIOCGPART ioctl.
Poul-Henning Kamp [Tue, 2 Apr 2002 11:17:37 +0000 (11:17 +0000)]
One less user of the bogus DIOCGPART ioctl.

22 years agoSend diskpart to the eternal storage device (SMD probably :-) where
Poul-Henning Kamp [Tue, 2 Apr 2002 11:02:21 +0000 (11:02 +0000)]
Send diskpart to the eternal storage device (SMD probably :-) where
it belongs.

22 years agoMove savecore back to the MI list so that it compiles for other
Marcel Moolenaar [Tue, 2 Apr 2002 10:58:30 +0000 (10:58 +0000)]
Move savecore back to the MI list so that it compiles for other
archs than alpha and i386.

22 years agoDon't compile the dummy dumpsys for ia64.
Marcel Moolenaar [Tue, 2 Apr 2002 10:55:40 +0000 (10:55 +0000)]
Don't compile the dummy dumpsys for ia64.

22 years agoo Add header version for ia64,
Marcel Moolenaar [Tue, 2 Apr 2002 10:53:59 +0000 (10:53 +0000)]
o  Add header version for ia64,
o  Make it compile with GCC 3.x.

22 years agoMFNetBSD:
Josef Karthauser [Tue, 2 Apr 2002 10:53:42 +0000 (10:53 +0000)]
MFNetBSD:
    revision 1.50
    date: 2001/04/12 01:18:24;  author: thorpej;  state: Exp;  lines: +6 -2
    Only if __HAVE_GENERIC_SOFT_INTERRUPTS is then splusb == splsoftnet
    (because we register the interrupt with IPL_SOFTNET).  However, if
    we're using a callout, then splusb == splsoftclock (because the
    callouts happen from the softclock interrupt).

    Note that splsoftnet blocks softclock interrupts, but this is
    meant to better describe what's going on.

22 years agoInitial implementation of the ia64 kernel dumper. The dumper
Marcel Moolenaar [Tue, 2 Apr 2002 10:51:32 +0000 (10:51 +0000)]
Initial implementation of the ia64 kernel dumper. The dumper
constructs an ELF image, consisting of the ELF header, for
each memory region a program header, followed by the memory
contents for each region. It does blocked I/O for the headers
as they are typically smaller than DEV_BSIZE.

22 years agoMFNetBSD: (partial merge, as part was already there).
Josef Karthauser [Tue, 2 Apr 2002 10:48:58 +0000 (10:48 +0000)]
MFNetBSD: (partial merge, as part was already there).
    revision 1.56
    date: 2001/11/13 07:55:30;  author: augustss;  state: Exp;  lines: +4 -4
    Add some #endif comments.

22 years agoMFNetBSD:
Josef Karthauser [Tue, 2 Apr 2002 10:47:01 +0000 (10:47 +0000)]
MFNetBSD:
    revision 1.54
    date: 2001/11/09 14:59:11;  author: augustss;  state: Exp;  lines: +2 -1
    Add a debug message.

22 years agoThere is breakage in parsedate, so revert to get_date until this can be
Mark Murray [Tue, 2 Apr 2002 10:45:34 +0000 (10:45 +0000)]
There is breakage in parsedate, so revert to get_date until this can be
resolved.

Reported by: paul

22 years agoWARNS fixes.
Maxim Konovalov [Tue, 2 Apr 2002 10:15:32 +0000 (10:15 +0000)]
WARNS fixes.

Submitted by: kris
Reviewed by: bde
Approved by: ru
MFC after: 2 weeks

22 years agoInitialize a field to cater for ata-raid
Poul-Henning Kamp [Tue, 2 Apr 2002 10:09:16 +0000 (10:09 +0000)]
Initialize a field to cater for ata-raid

22 years agoMFNetBSD: usb.c (1.53), usbdi.h (1.49)
Josef Karthauser [Tue, 2 Apr 2002 09:58:16 +0000 (09:58 +0000)]
MFNetBSD: usb.c (1.53), usbdi.h (1.49)
    date: 2001/01/23 17:04:30;  author: augustss;
    Ad function to remove a usb task.

22 years agoMFNetBSD:
Josef Karthauser [Tue, 2 Apr 2002 09:51:10 +0000 (09:51 +0000)]
MFNetBSD:
    revision 1.52
    date: 2001/01/21 19:00:29;  author: augustss;  state: Exp;  lines: +5 -0
    Ad a comment.

22 years agoMFNetBSD: uhub.c (1.49), usb.c (1.51), usbdi.h (1.48), usbdivar.h (1.63)
Josef Karthauser [Tue, 2 Apr 2002 09:49:36 +0000 (09:49 +0000)]
MFNetBSD: uhub.c (1.49), usb.c (1.51), usbdi.h (1.48), usbdivar.h (1.63)
    date: 2001/01/21 19:00:06;  author: augustss;
    Change the operation of the USB event thread.  Before it only
    performed USB device discovery, now it can also perform (short)
    tasks for device drivers that need a process context, but don't
    have one.  This is not pretty, but better than using busy-wait
    in an interrupt context.

22 years agostyle(9) cleanup.
Maxim Konovalov [Tue, 2 Apr 2002 09:36:46 +0000 (09:36 +0000)]
style(9) cleanup.

Submitted by: kris (an early version of this patch)
Reviewed by: bde
Approved by: ru
MFC after: 2 weeks

22 years agoVarious fixes, mostly for problems introduced by my mdoc transcription,
Sheldon Hearn [Tue, 2 Apr 2002 08:55:49 +0000 (08:55 +0000)]
Various fixes, mostly for problems introduced by my mdoc transcription,
rather than problems that existed in the original HTML "source".

PR: docs/33585
Submitted: Norihiro Kumagai <kumagai@attbi.com>

22 years agoThere are 4 key formats, not 3.
Sheldon Hearn [Tue, 2 Apr 2002 08:47:56 +0000 (08:47 +0000)]
There are 4 key formats, not 3.

PR: 33586
Submitted by: Norihiro Kumagai <kuma@12-225-156-18.client.attbi.com>

22 years agoStyle: don't override `beforeinstall', use FILES.
Ruslan Ermilov [Tue, 2 Apr 2002 07:48:32 +0000 (07:48 +0000)]
Style: don't override `beforeinstall', use FILES.

22 years agoFix find -exec with no command specified (i.e.: find . -exec ';')
Juli Mallett [Tue, 2 Apr 2002 07:20:56 +0000 (07:20 +0000)]
Fix find -exec with no command specified (i.e.: find . -exec ';')

PR: bin/36521
Submitted by: Simon 'corecode' Schubert <corecode@corecode.ath.cx>
Reviewed by: mike
MFC after: 3 days

22 years agoo GC totalphysmem and resvmem.
Marcel Moolenaar [Tue, 2 Apr 2002 07:20:42 +0000 (07:20 +0000)]
o  GC totalphysmem and resvmem.
o  Rephrase comment describing that the memory region can contain
   the kernel.

22 years agoMore newcard devices:
Warner Losh [Tue, 2 Apr 2002 05:52:52 +0000 (05:52 +0000)]
More newcard devices:
Netgear FA-410TXC
Netgear FA-411
Lantech Fastnet TX
Linksys pcm100
Hide the total wildcard device for SVEC too :-(

Obtained from: NetBSD/OpenBSD

22 years agoUpdate comment regarding the locking of the sysctl tree.
Robert Watson [Tue, 2 Apr 2002 05:50:07 +0000 (05:50 +0000)]
Update comment regarding the locking of the sysctl tree.

Rename memlock to sysctllock, and MEMLOCK()/MEMUNLOCK() to SYSCTL_LOCK()/
SYSCTL_UNLOCK() and related changes to make the lock names make more
sense.

Submitted by: Jonathan Mini <mini@haikugeek.com>

22 years agoAdd some devices from OpenBSD/NetBSD:
Warner Losh [Tue, 2 Apr 2002 05:49:09 +0000 (05:49 +0000)]
Add some devices from OpenBSD/NetBSD:

o 3Com 3crwe62092a
o Addtron awp100
o No Wires Necessary WLAN 550 and 1148
o Proxim RANGELANDS 8340

and reorder linksys to be in proper sort order.

Obtained from: OpenBSD (mostly)

22 years agoRegen for 1.30 pccarddevs
Warner Losh [Tue, 2 Apr 2002 05:47:08 +0000 (05:47 +0000)]
Regen for 1.30 pccarddevs

22 years agoActually merge proxim rangelands and addtron awp-100
Warner Losh [Tue, 2 Apr 2002 05:46:10 +0000 (05:46 +0000)]
Actually merge proxim rangelands and addtron awp-100

22 years agoregen to 1.29 pccarddevs
Warner Losh [Tue, 2 Apr 2002 05:39:40 +0000 (05:39 +0000)]
regen to 1.29 pccarddevs

22 years agoMerge from both NetBSD and OpenBSD's pcmciadevs:
Warner Losh [Tue, 2 Apr 2002 05:39:07 +0000 (05:39 +0000)]
Merge from both NetBSD and OpenBSD's pcmciadevs:
NetBSD:
1.163; martin; ELSA MicroLink mc all
1.162; is; typo
1.161; is; typo
1.160; is; Add Lantech Fastnet/TX
OpenBSD:
1.85; millert; proxim rangelan-ds
1.84; provos; linksys wpc11
1.83; mickey; now wires needed wlan
1.82; mickey; socket low power wlan from netbsd [*]
1.81; mickey; ericsson wlan
1.80; fgsch; add openbsd tag back (not needed)
1.79; fgsch; Netgear FA411
1.78; mickey; simple spectrum25 from netbsd [*]
1.77; mickey; emtac wavelan from netbsd [*]
1.76; mickey; buffalo wavelans from netbsd [*]
1.75; jakob; 3com wilress lan pccard
1.74; mickey; linksys2 instant wireless
1.73; mickey; oops (add closing quote)
1.72; mickey; pcm100
[*] (already in freebsd)

Obtained from: NetBSD, OpenBSD

22 years agoConnect ktrdump to the build. <cringe>.
Jake Burkholder [Tue, 2 Apr 2002 04:28:57 +0000 (04:28 +0000)]
Connect ktrdump to the build.  <cringe>.

22 years agoAdd a man page.
Jake Burkholder [Tue, 2 Apr 2002 04:26:37 +0000 (04:26 +0000)]
Add a man page.

Submitted by: davidc

22 years ago1. Add missing include of stdint.h.
Jake Burkholder [Tue, 2 Apr 2002 04:24:59 +0000 (04:24 +0000)]
1. Add missing include of stdint.h.
2. Fix reversed arguments to strcpy.

Noticed by: davidc (2)

22 years agoUse sx locks instead of flags+tsleep locks.
Alfred Perlstein [Tue, 2 Apr 2002 04:20:38 +0000 (04:20 +0000)]
Use sx locks instead of flags+tsleep locks.

Submitted by: Jonathan Mini <mini@haikugeek.com>

22 years agoUse sx locks rather than lockmgr locks for eventhandlers.
Alfred Perlstein [Tue, 2 Apr 2002 04:18:54 +0000 (04:18 +0000)]
Use sx locks rather than lockmgr locks for eventhandlers.

Submitted by: Jonathan Mini <mini@haikugeek.com>

22 years agoMake this compile again after the recent NetBSD merge
Warner Losh [Tue, 2 Apr 2002 03:39:33 +0000 (03:39 +0000)]
Make this compile again after the recent NetBSD merge

22 years agoAdd myself.
Norikatsu Shigemura [Tue, 2 Apr 2002 03:16:50 +0000 (03:16 +0000)]
Add myself.

Reviewed by: knu (mentor)

22 years agoAdd if_wi_{pccard,pci}.c for pccard and pci bus front ends
Warner Losh [Tue, 2 Apr 2002 02:50:48 +0000 (02:50 +0000)]
Add if_wi_{pccard,pci}.c for pccard and pci bus front ends

22 years agoFirst cut at breaking out the bus attachment from the bus independent
Warner Losh [Tue, 2 Apr 2002 02:38:35 +0000 (02:38 +0000)]
First cut at breaking out the bus attachment from the bus independent
part of the driver.  Also, move the softc and some other stuff to
if_wivar.h from if_wireg.h to make future merging activities easier.

22 years agoMinor changes to make this work on sparc64.
Jake Burkholder [Tue, 2 Apr 2002 02:19:02 +0000 (02:19 +0000)]
Minor changes to make this work on sparc64.

Approved by: jdp
Tested on: alpha, i386, sparc64

22 years agoMutex profiling code, conditional on the MUTEX_PROFILING option. Adds the
Dag-Erling Smørgrav [Tue, 2 Apr 2002 00:01:49 +0000 (00:01 +0000)]
Mutex profiling code, conditional on the MUTEX_PROFILING option.  Adds the
following sysctl variables:

  debug.mutex.prof.enable     enable / disable profiling
  debug.mutex.prof.acquisitions     number of mutex acquisitions recorded
  debug.mutex.prof.records     number of acquisition points recorded
  debug.mutex.prof.maxrecords     max number of acquisition points
  debug.mutex.prof.rejected     number of rejections (due to full table)
  debug.mutex.prof.hashsize     hash size
  debug.mutex.prof.collisions     number of hash collisions
  debug.mutex.prof.stats     profiling statistics

The code records four numbers for each acquisition point (identified by
source file name and line number): longest time held, total time held,
number of non-recursive acquisitions, average time held.  The measurements
are in clock cycles (as returned by get_cyclecount(9)); this may cause
measurements on some SMP systems to be unreliable.  This can probably be
worked around by replacing get_cyclecount(9) by some incarnation of
nanotime(9).

This work was derived from initial patches by eivind.

22 years agoStage-2 commit of the critical*() code. This re-inlines cpu_critical_enter()
Matthew Dillon [Mon, 1 Apr 2002 23:51:23 +0000 (23:51 +0000)]
Stage-2 commit of the critical*() code.  This re-inlines cpu_critical_enter()
and cpu_critical_exit() and moves associated critical prototypes into their
own header file, <arch>/<arch>/critical.h, which is only included by the
three MI source files that need it.

Backout and re-apply improperly comitted syntactical cleanups made to files
that were still under active development.  Backout improperly comitted program
structure changes that moved localized declarations to the top of two
procedures.  Partially re-apply one of the program structure changes to
move 'mask' into an intermediate block rather then in three separate
sub-blocks to make the code more readable.  Re-integrate bug fixes that Jake
made to the sparc64 code.

Note: In general, developers should not gratuitously move declarations out
of sub-blocks.  They are where they are for reasons of structure, grouping,
readability, compiler-localizability, and to avoid developer-introduced bugs
similar to several found in recent years in the VFS and VM code.

Reviewed by: jake

22 years agoAdd support for booting from CD-ROM. Make it possible to enable UFS
Thomas Moestl [Mon, 1 Apr 2002 23:28:35 +0000 (23:28 +0000)]
Add support for booting from CD-ROM. Make it possible to enable UFS
support using make arguments.

22 years ago1.) Produce a boot1 disklabel template of the format disklabel(8) expects.
Thomas Moestl [Mon, 1 Apr 2002 22:57:51 +0000 (22:57 +0000)]
1.) Produce a boot1 disklabel template of the format disklabel(8) expects.
2.) Clean up and change over to using bsd.prog.mk

Submitted by: jake (2)

22 years agoFix SCM IDs.
David E. O'Brien [Mon, 1 Apr 2002 22:56:56 +0000 (22:56 +0000)]
Fix SCM IDs.

22 years agoAllow to compile a YACC produced file with GCC 3.1 (which has different
David E. O'Brien [Mon, 1 Apr 2002 22:55:01 +0000 (22:55 +0000)]
Allow to compile a YACC produced file with GCC 3.1 (which has different
header searching rules for generated files with #line).

22 years agoMFNetBSD:
Josef Karthauser [Mon, 1 Apr 2002 22:03:37 +0000 (22:03 +0000)]
MFNetBSD:
    revision 1.140
    date: 2001/10/24 20:20:03;  author: augustss;  state: Exp;  lines: +9 -5
    More debug.

22 years agoMFNetBSD:
Josef Karthauser [Mon, 1 Apr 2002 21:56:42 +0000 (21:56 +0000)]
MFNetBSD:
    revision 1.138
    date: 2001/10/02 17:59:38;  author: pooka;  state: Exp;  lines: +6 -6
    move DIAGNOSTIC-printf up one block to make it reachable
    noted by Christophe Kalt in private email

22 years agoMove the CTASSERT macro from MD code to systm.h alongside KASSERT so other
Jake Burkholder [Mon, 1 Apr 2002 21:55:00 +0000 (21:55 +0000)]
Move the CTASSERT macro from MD code to systm.h alongside KASSERT so other
code can use it.  This takes a single constant argument and fails to compile
if it is 0 (false).  The main application of this is to make assertions about
structure sizes at compile time, in order to validate assumptions made in
other code.  Examples:

CTASSERT(sizeof(struct foo) == FOO_SIZEOF);
CTASSERT(sizeof(struct foo) == (1 << FOO_SHIFT));

Requested by: jhb, phk

22 years agoMFNetBSD:
Josef Karthauser [Mon, 1 Apr 2002 21:52:45 +0000 (21:52 +0000)]
MFNetBSD:
    revision 1.136
    date: 2001/07/11 14:11:00;  author: augustss;  state: Exp;  lines: +5 -5
    Rearrange register dump when the controller is dying.  Fixes PR 13430.

22 years agoMFNetBSD:
Josef Karthauser [Mon, 1 Apr 2002 21:43:53 +0000 (21:43 +0000)]
MFNetBSD:
    revision 1.135
    date: 2001/04/01 14:59:52;  author: augustss;  state: Exp;  lines: +2 -4
    Avoid a potential null pointer dereference.  From OpenBSD.

22 years agoMFNetBSD:
Josef Karthauser [Mon, 1 Apr 2002 21:42:43 +0000 (21:42 +0000)]
MFNetBSD:
    revision 1.134
    date: 2001/03/25 22:52:21;  author: augustss;  state: Exp;  lines: +4 -1
    Try to make resume work on more machines.

22 years agoOur persistent-state, large temporary file dir is /VAR/tmp, not /USR/tmp.
David E. O'Brien [Mon, 1 Apr 2002 21:35:24 +0000 (21:35 +0000)]
Our persistent-state, large temporary file dir is /VAR/tmp, not /USR/tmp.

22 years agoMFNetBSD: ohci.c (1.99), uhci.c (1.133), usb.c (1.49), usb_port.h
Josef Karthauser [Mon, 1 Apr 2002 21:34:01 +0000 (21:34 +0000)]
MFNetBSD: ohci.c (1.99), uhci.c (1.133), usb.c (1.49), usb_port.h
  (1.39), usbdi.c (1.79), usbdi.h (1.47), usbdivar.h (1.62)

    date: 2001/01/21 02:39:52;  author: augustss;
    Add code to use soft interrupt to handle USB interrupt processing.
    Don't enable the code since it doesn't work with the kludgy Ethernet
    drivers.

22 years agoChange the suser() API to take advantage of td_ucred as well as do a
John Baldwin [Mon, 1 Apr 2002 21:31:13 +0000 (21:31 +0000)]
Change the suser() API to take advantage of td_ucred as well as do a
general cleanup of the API.  The entire API now consists of two functions
similar to the pre-KSE API.  The suser() function takes a thread pointer
as its only argument.  The td_ucred member of this thread must be valid
so the only valid thread pointers are curthread and a few kernel threads
such as thread0.  The suser_cred() function takes a pointer to a struct
ucred as its first argument and an integer flag as its second argument.
The flag is currently only used for the PRISON_ROOT flag.

Discussed on: smp@

22 years agoMFNetBSD:
Josef Karthauser [Mon, 1 Apr 2002 21:18:50 +0000 (21:18 +0000)]
MFNetBSD:
    revision 1.132
    date: 2001/01/20 23:36:02;  author: augustss;  state: Exp;  lines: +6 -7
    Change some splusb() to splhardusb().

22 years agoMFNetBSD: Update many URLs.
Josef Karthauser [Mon, 1 Apr 2002 21:13:22 +0000 (21:13 +0000)]
MFNetBSD: Update many URLs.

22 years agoInclude <string.h> for some prototypes, rather than depending on
Mike Barcroft [Mon, 1 Apr 2002 21:13:17 +0000 (21:13 +0000)]
Include <string.h> for some prototypes, rather than depending on
pollution from <strings.h>.

22 years agoBack out lots of the last commit that was committed by accident.
Josef Karthauser [Mon, 1 Apr 2002 20:47:27 +0000 (20:47 +0000)]
Back out lots of the last commit that was committed by accident.
(It's my test rig for some CVSUP,SUP code).

Spotted by: Michael G. Petry <petry@NetMasters.Com>