]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoThis commit was generated by cvs2svn to compensate for changes in r85587,
David E. O'Brien [Sat, 27 Oct 2001 08:07:37 +0000 (08:07 +0000)]
This commit was generated by cvs2svn to compensate for changes in r85587,
which included commits to RCS files with non-trunk default branches.

22 years agoImport the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.
David E. O'Brien [Sat, 27 Oct 2001 08:07:37 +0000 (08:07 +0000)]
Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.

22 years agoImplement elf_reloc. This makes klds work.
Jake Burkholder [Sat, 27 Oct 2001 07:09:40 +0000 (07:09 +0000)]
Implement elf_reloc.  This makes klds work.

Obtained from: netbsd

22 years agoHandle instruction access mmu miss faults in kernel mode. These can only
Jake Burkholder [Sat, 27 Oct 2001 07:06:15 +0000 (07:06 +0000)]
Handle instruction access mmu miss faults in kernel mode.  These can only
be generated by non-preloaded klds.

22 years agoo Modify copyright date format for improved consistency: use '-' for
Robert Watson [Sat, 27 Oct 2001 05:47:47 +0000 (05:47 +0000)]
o Modify copyright date format for improved consistency: use '-' for
  year ranges, rather than a comma-delimited list of years.

22 years agoo Update copyright dates.
Robert Watson [Sat, 27 Oct 2001 05:46:43 +0000 (05:46 +0000)]
o Update copyright dates.

Obtained from: TrustedBSD Project

22 years agoo Improve style(9) compliance following KSE modifications. In particular,
Robert Watson [Sat, 27 Oct 2001 05:45:42 +0000 (05:45 +0000)]
o Improve style(9) compliance following KSE modifications.  In particular,
  strip the space from '( struct thread *...', wrap long lines.
o Remove an unneeded comment on the topic of no lock being required as
  part of the NDINIT() in __acl_get_file(), as it's really not required
  there.

Obtained from: TrustedBSD Project

22 years agoo Althought this is not specified in POSIX.1e, the UFS ACL implementation
Robert Watson [Sat, 27 Oct 2001 05:39:17 +0000 (05:39 +0000)]
o Althought this is not specified in POSIX.1e, the UFS ACL implementation
  coerces the deletion of a default ACL on a directory when no default
  ACL EA is present to success.  Because the UFS EA implementation doesn't
  disinguish the EA failure modes "that EA name has not been
  administratively enabled" from "that EA name has no defined data",
  there's a potential conflict in error return values.  Normally, the
  lack of administratively configured EA support is coerced to
  EOPNOTSUPP to indicate that ACLs are not available; in this case,
  it is possible to get a successful return, even if ACLs are not
  available because EA support for them has not been enabled.

  Expand the comment in ufs_setacl() to identify this case.

Obtained from: TrustedBSD Project

22 years agoo Clarify a comment about the locking condition of the vnode upon exit
Robert Watson [Sat, 27 Oct 2001 05:19:14 +0000 (05:19 +0000)]
o Clarify a comment about the locking condition of the vnode upon exit
  from ufs_extattr_enable_with_open().
o Print auto-start notifications if (bootverbose).  This was previously
  commented out since it didn't know how to check for bootverbose.
o Drop in comments throughout indicating where ENOENT should be replaced
  with ENOATTR once that is available.

Obtained from: TrustedBSD Project

22 years agoo The comment about ordering the destruction of the lock and the removal of
Robert Watson [Sat, 27 Oct 2001 05:05:39 +0000 (05:05 +0000)]
o The comment about ordering the destruction of the lock and the removal of
  the flag indicating that the structure was initialized didn't need
  an XXX, since it didn't need fixing.

Obtained from: TrustedBSD Project

22 years agoo Wrap a number of long lines of code, many of which were introduced
Robert Watson [Sat, 27 Oct 2001 05:03:05 +0000 (05:03 +0000)]
o Wrap a number of long lines of code, many of which were introduced
  due to KSE-related (p) expansions.

Obtained from: TrustedBSD Project

22 years agoSince namespace support was added to the UFS extended attribute
Robert Watson [Sat, 27 Oct 2001 04:58:28 +0000 (04:58 +0000)]
Since namespace support was added to the UFS extended attribute
implementation to replace single-character namespace prefixes, '$' is no
longer an invalid attribute name, and the namespace is relevant to
validity determination.

o Remove '$' case from ufs_extattr_valid_attrname()
o Add attrnamespace argument to ufs_extattr_valid_attrname(), and
  fill out appropriately.

Currently no decisions are made based on the namespace argument, but
may be in the future.

Obtained from: TrustedBSD Project

22 years agoo Spelling error s/suffient/sufficient/
Robert Watson [Sat, 27 Oct 2001 03:14:37 +0000 (03:14 +0000)]
o Spelling error s/suffient/sufficient/

PR: 31524
Submitted by: Dan Langille <dan@freebsddiary.org>

22 years agoCorrect James Cook's year of birth. I wonder how anybody could expect
Greg Lehey [Sat, 27 Oct 2001 02:51:59 +0000 (02:51 +0000)]
Correct James Cook's year of birth.  I wonder how anybody could expect
him to have been born in the 15th century.

22 years agoTurn on table-of-contents generation for the release notes and
Bruce A. Mah [Sat, 27 Oct 2001 02:41:29 +0000 (02:41 +0000)]
Turn on table-of-contents generation for the release notes and
hardware notes.

Requested by: many

22 years agoExplicitly use int32_t for on-disk records for pw_change and pw_expire,
Peter Wemm [Sat, 27 Oct 2001 02:13:41 +0000 (02:13 +0000)]
Explicitly use int32_t for on-disk records for pw_change and pw_expire,
since that is what we use now and this insulates us from any time_t
tweaks here.  We can define a record format that uses 64 bit times if/when
we need to.

22 years agoEnable round-robin arbitration between transmit and receive unit
Luigi Rizzo [Sat, 27 Oct 2001 00:59:17 +0000 (00:59 +0000)]
Enable round-robin arbitration between transmit and receive unit
in the 21143, instead of giving priority to the receive unit.
This gives a 10-15% performance improvement in the forwarding rate
under heavy load.

Reviewed-by: Bill Paul
22 years agoSupport the "install.debug" and "reinstall.debug" targets for kernel modules.
Dag-Erling Smørgrav [Sat, 27 Oct 2001 00:52:50 +0000 (00:52 +0000)]
Support the "install.debug" and "reinstall.debug" targets for kernel modules.
Small tweaks to kldxref may be necessary to avoid the surprising (but harm-
less) behaviour of 'kldload foo' loading foo.ko.debug instead of foo.ko if
it is present in the kernel directory.

Approved by: a week of silence on -arch
MFC after: 2 weeks

22 years agoForce the length of the sockaddr to be correct for AF_INET and AF_INET6
Bill Fenner [Fri, 26 Oct 2001 23:10:08 +0000 (23:10 +0000)]
Force the length of the sockaddr to be correct for AF_INET and AF_INET6
in bind() and connect().  Linux doesn't care if the length of the
sockaddr matches its address family; FreeBSD does.  This fixes the
known issues with the resolver in linux_base-7.

22 years agoRemove the -I../libc/${MACHINE_ARCH} that was there solely for
Peter Wemm [Fri, 26 Oct 2001 21:20:23 +0000 (21:20 +0000)]
Remove the -I../libc/${MACHINE_ARCH} that was there solely for
the #include "DEFS.h" that was only used on i386 (which has been fixed).

22 years agoMake libc_r check the kern.usrstack sysctl instead of using internal
Peter Wemm [Fri, 26 Oct 2001 21:19:22 +0000 (21:19 +0000)]
Make libc_r check the kern.usrstack sysctl instead of using internal
kernel #defines to figure out where the stack is located.  This stops
libc_r from exploding when the kernel is compiled with a different
KVM size.  IMHO this is all kinda bogus, it would be better to just
check %esp and work from that.

22 years agoAdd 'ciss'.
Mike Smith [Fri, 26 Oct 2001 21:17:26 +0000 (21:17 +0000)]
Add 'ciss'.

22 years agoAdd mtx_lock_giant() and mtx_unlock_giant() wrappers for sysctl management
Matthew Dillon [Fri, 26 Oct 2001 20:48:04 +0000 (20:48 +0000)]
Add mtx_lock_giant() and mtx_unlock_giant() wrappers for sysctl management
of Giant during the Giant unwinding phase, and start work on instrumenting
Giant for the file and proc mutexes.

These wrappers allow developers to turn on and off Giant around various
subsystems.  DEVELOPERS SHOULD NEVER TURN OFF GIANT AROUND A SUBSYSTEM JUST
BECAUSE THE SYSCTL EXISTS!  General developers should only considering
turning on Giant for a subsystem whos default is off (to help track down
bugs).  Only developers working on particular subsystems who know what
they are doing should consider turning off Giant.

These wrappers will greatly improve our ability to unwind Giant and test
the kernel on a (mostly) subsystem by subsystem basis.   They allow Giant
unwinding developers (GUDs) to emplace appropriate subsystem and structural
mutexes in the main tree and then request that the larger community test
the work by turning off Giant around the subsystem(s), without the larger
community having to mess around with patches.  These wrappers also allow
GUDs to boot into a (more likely to be) working system in the midst of
their unwinding work and to test that work under more controlled
circumstances.

There is a master sysctl, kern.giant.all, which defaults to 0 (off).  If
turned on it overrides *ALL* other kern.giant sysctls and forces Giant to
be turned on for all wrapped subsystems.  If turned off then Giant around
individual subsystems are controlled by various other kern.giant.XXX sysctls.

Code which overlaps multiple subsystems must have all related subsystem Giant
sysctls turned off in order to run without Giant.

22 years agominor commenting based on syscall environment
Matthew Dillon [Fri, 26 Oct 2001 20:35:52 +0000 (20:35 +0000)]
minor commenting based on syscall environment

22 years agoIf an article in the release documentation has a table of contents,
Bruce A. Mah [Fri, 26 Oct 2001 20:26:59 +0000 (20:26 +0000)]
If an article in the release documentation has a table of contents,
make it go down to 3 section levels (the default depth for FreeBSD
articles is 1 level, but few articles have tables-of-contents
enabled).

22 years agoAdd VOP_IOCTL support, and fix a bug that would cause a panic if a file or
Dag-Erling Smørgrav [Fri, 26 Oct 2001 18:52:47 +0000 (18:52 +0000)]
Add VOP_IOCTL support, and fix a bug that would cause a panic if a file or
symlink lacked a filler function.

22 years ago- Change the taskqueue locking to protect the necessary parts of a task
John Baldwin [Fri, 26 Oct 2001 18:46:48 +0000 (18:46 +0000)]
- Change the taskqueue locking to protect the necessary parts of a task
  while it is on a queue with the queue lock and remove the per-task locks.
- Remove TASK_DESTROY now that it is no longer needed.
- Go back to inlining TASK_INIT now that it is short again.

Inspired by: dfr

22 years agoStyle: sort __sys_foo() prototypes, tabs -> spaces, etc.
Ruslan Ermilov [Fri, 26 Oct 2001 18:45:02 +0000 (18:45 +0000)]
Style: sort __sys_foo() prototypes, tabs -> spaces, etc.

22 years agoRemoved:
Ruslan Ermilov [Fri, 26 Oct 2001 17:46:36 +0000 (17:46 +0000)]
Removed:

- uthread_signal.c; libc_r does not wrap signal() since 1998/04/29.

- uthread_attr_setprio.c; it was never connected to the build, and
  pthread_attr_setprio() does not exist in POSIX.

- uthread_sigblock.c and uthread_sigsetmask.c; these were no-ops
  bloating libc_r's space.

pthread_private.h:

- Removed prototypes of non-syscalls: send().

- Removed prototypes of unused syscalls: sigpending(), sigsuspend(),
  and select().

- Fixed prototype of fork().

- MFS: Fixed prototypes of <sys/socket.h> syscalls.

Reviewed by: deischen
Approved by: deischen, jasone

22 years agoAdd APM compatibility feature to ACPI.
Mitsuru IWASAKI [Fri, 26 Oct 2001 17:43:05 +0000 (17:43 +0000)]
Add APM compatibility feature to ACPI.
This emulates APM device node interface APIs (mainly ioctl) and
provides APM services for the applications.  The goal is to support
most of APM applications without any changes.
Implemented ioctls in this commit are:
 - APMIO_SUSPEND (mapped ACPI S3 as default but changable by sysctl)
 - APMIO_STANDBY (mapped ACPI S1 as default but changable by sysctl)
 - APMIO_GETINFO and APMIO_GETINFO_OLD
 - APMIO_GETPWSTATUS

With above, many APM applications which get batteries, ac-line
info. and transition the system into suspend/standby mode (such as
wmapm, xbatt) should work with ACPI enabled kernel (if ACPI works well :-)

Reviewed by: arch@, audit@ and some guys

22 years agoRemove the internal implementation details of wrapping syscalls,
Ruslan Ermilov [Fri, 26 Oct 2001 17:38:20 +0000 (17:38 +0000)]
Remove the internal implementation details of wrapping syscalls,
which do not match the reality anyway.

Approved by: deischen, bde

22 years agoThis commit was generated by cvs2svn to compensate for changes in r85552,
Ruslan Ermilov [Fri, 26 Oct 2001 17:22:12 +0000 (17:22 +0000)]
This commit was generated by cvs2svn to compensate for changes in r85552,
which included commits to RCS files with non-trunk default branches.

22 years agoFrom ChangeLog:
Ruslan Ermilov [Fri, 26 Oct 2001 17:22:12 +0000 (17:22 +0000)]
From ChangeLog:

: 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
:
: * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
: being handled as end-of-sentence characters,

This fixes ".Fl \&?".  Previously, it produced an additional whitespace.
There were no precedents in FreeBSD manpages.  That's why it was

Noticed by: Thomas Klausner <wiz@netbsd.org>

22 years agomdoc(7) police:
Ruslan Ermilov [Fri, 26 Oct 2001 17:11:50 +0000 (17:11 +0000)]
mdoc(7) police:

- Minor markup nits.
- Arrange for appearance in 4.5.

22 years agoThere are users of FreeBSD 4.5 already.
Ruslan Ermilov [Fri, 26 Oct 2001 17:01:15 +0000 (17:01 +0000)]
There are users of FreeBSD 4.5 already.

22 years agoDocument HPT372 support.
Jeroen Ruigrok van der Werven [Fri, 26 Oct 2001 16:46:10 +0000 (16:46 +0000)]
Document HPT372 support.

22 years agoFix title to conform to FreeBSD/port naming convention.
Bruce A. Mah [Fri, 26 Oct 2001 16:43:20 +0000 (16:43 +0000)]
Fix title to conform to FreeBSD/port naming convention.

22 years agoWe support the Intel ICH3 [ATA-100] chipset as well.
Jeroen Ruigrok van der Werven [Fri, 26 Oct 2001 16:34:26 +0000 (16:34 +0000)]
We support the Intel ICH3 [ATA-100] chipset as well.

22 years agoNew release notes: isic(4) support for Compaq Microcom 610 ISDN, fbtab(5)
Bruce A. Mah [Fri, 26 Oct 2001 16:28:36 +0000 (16:28 +0000)]
New release notes:  isic(4) support for Compaq Microcom 610 ISDN, fbtab(5)
globbing, rcmd(3) uses ${RSH}.

MFCs noted:  sysinstall(8) can load KLDs at install-time.

Fix typo for isdnphone(8).

22 years agoMove recently added procedure which was incorrectly placed within an
Matthew Dillon [Fri, 26 Oct 2001 16:27:54 +0000 (16:27 +0000)]
Move recently added procedure which was incorrectly placed within an
#ifdef DDB block.

22 years agoDetach the prom console when platform.cons_init is called. This seems
Matt Jacob [Fri, 26 Oct 2001 16:13:47 +0000 (16:13 +0000)]
Detach the prom console when platform.cons_init is called. This seems
to avoid most of the double character kernel goop we've been having by having
both a prom console && a normal console.

Was not able to test with graphics head. Hope this doesn't break anything.

Reviewed by: silence on alpha

22 years agoMake cdevsw[] static.
Poul-Henning Kamp [Fri, 26 Oct 2001 15:31:22 +0000 (15:31 +0000)]
Make cdevsw[] static.

22 years agoReporting device drivers by traversing cdevsw[] is at best a hack
Poul-Henning Kamp [Fri, 26 Oct 2001 15:30:44 +0000 (15:30 +0000)]
Reporting device drivers by traversing cdevsw[] is at best a hack
which may or may not return something which is partially right.

Disable the "devices" file until we find out what this is needed for,
and what exactly those apps need.

This will allow cdevsw to become static again.

Approved by: DES

22 years agomdoc(7) police:
Ruslan Ermilov [Fri, 26 Oct 2001 11:16:18 +0000 (11:16 +0000)]
mdoc(7) police:

- Bump document date.
- Remove hard sentence breaks.
- Fix markup.

22 years agoFinish the asbestos suited move of $mach/conf/*.$mach to conf/*.$mach.
Ruslan Ermilov [Fri, 26 Oct 2001 10:33:45 +0000 (10:33 +0000)]
Finish the asbestos suited move of $mach/conf/*.$mach to conf/*.$mach.
Fix some more typos.

22 years agoRemove /var/spool/uucp subtree, not needed for 'cu'
Andrey A. Chernov [Fri, 26 Oct 2001 09:40:28 +0000 (09:40 +0000)]
Remove /var/spool/uucp subtree, not needed for 'cu'

22 years agoCompensate for the way that _setjmp aligns the start of jmp_buf.
Doug Rabson [Fri, 26 Oct 2001 08:26:45 +0000 (08:26 +0000)]
Compensate for the way that _setjmp aligns the start of jmp_buf.

22 years agoClose buffer overflow noted in security advisory DSA-085.
Jordan K. Hubbard [Fri, 26 Oct 2001 08:25:32 +0000 (08:25 +0000)]
Close buffer overflow noted in security advisory DSA-085.
Submitted by: Koga Youichirou <y-koga@jp.FreeBSD.org>
Obtained from: Debian

22 years agoAdd a per-thread ucred reference for syscalls and synchronous traps from
John Baldwin [Fri, 26 Oct 2001 08:12:54 +0000 (08:12 +0000)]
Add a per-thread ucred reference for syscalls and synchronous traps from
userland.  The per thread ucred reference is immutable and thus needs no
locks to be read.  However, until all the proc locking associated with
writes to p_ucred are completed, it is still not safe to use the per-thread
reference.

Tested on: x86 (SMP), alpha, sparc64

22 years agoFix nit in copyright.
David E. O'Brien [Fri, 26 Oct 2001 06:45:10 +0000 (06:45 +0000)]
Fix nit in copyright.

22 years agoUse the new machine-independent versions of crtbegin and crtend
David E. O'Brien [Fri, 26 Oct 2001 06:39:54 +0000 (06:39 +0000)]
Use the new machine-independent versions of crtbegin and crtend
from the "common" directory.

22 years agoAdd locking to taskqueues. There is one mutex per task, one mutex per
John Baldwin [Fri, 26 Oct 2001 06:32:21 +0000 (06:32 +0000)]
Add locking to taskqueues.  There is one mutex per task, one mutex per
queue, and a mutex to protect the global list of taskqueues.  The only
visible change is that a TASK_DESTROY() macro has been added to mirror
the TASK_INIT() macro to destroy a task before it is free'd.

Submitted by: Andrew Reiter <awr@watson.org>

22 years agoUse msleep() to avoid lost wakeup's instead of doing an ineffective
John Baldwin [Fri, 26 Oct 2001 06:09:01 +0000 (06:09 +0000)]
Use msleep() to avoid lost wakeup's instead of doing an ineffective
splhigh() before the mtx_unlock and tsleep().  The splhigh() was probably
correct in the original code using simplelocks but is not correct in
5.0-current.

Noticed by: Andrew Reiter <awr@FreeBSD.org>

22 years agoMinimal libc for sparc64.
Jake Burkholder [Fri, 26 Oct 2001 05:40:07 +0000 (05:40 +0000)]
Minimal libc for sparc64.

Reviewed by: obrien

22 years agoImplement kern.maxvnodes. adjusting kern.maxvnodes now actually has a
Matthew Dillon [Fri, 26 Oct 2001 00:08:05 +0000 (00:08 +0000)]
Implement kern.maxvnodes.  adjusting kern.maxvnodes now actually has a
real effect.

Optimize vfs_msync().  Avoid having to continually drop and re-obtain
mutexes when scanning the vnode list.  Improves looping case by 500%.

Optimize ffs_sync().  Avoid having to continually drop and re-obtain
mutexes when scanning the vnode list.  This makes a couple of assumptions,
which I believe are ok, in regards to vnode stability when the mount list
mutex is held.  Improves looping case by 500%.

(more optimization work is needed on top of these fixes)

MFC after: 1 week

22 years agoThe same unbreakage (0755 -> 0775) for /var/games and subdirs
Andrey A. Chernov [Thu, 25 Oct 2001 23:18:41 +0000 (23:18 +0000)]
The same unbreakage (0755 -> 0775) for /var/games and subdirs

22 years agoAdd missing TAILQ_INSERT_TAIL's which somehow didn't get comitted with
Matthew Dillon [Thu, 25 Oct 2001 23:13:56 +0000 (23:13 +0000)]
Add missing TAILQ_INSERT_TAIL's which somehow didn't get comitted with
the recent vnode cleanup.

22 years agoFix /var/mail, /var/rwho and /var/spool/lock back to 0775
Andrey A. Chernov [Thu, 25 Oct 2001 23:13:11 +0000 (23:13 +0000)]
Fix /var/mail, /var/rwho and /var/spool/lock back to 0775
Not sure about other dirs with the same damage (0755) by recent commit.

22 years agoIn > LONG_MAX test use sseek return value and not _offset which can be not
Andrey A. Chernov [Thu, 25 Oct 2001 22:56:04 +0000 (22:56 +0000)]
In > LONG_MAX test use sseek return value and not _offset which can be not
active.

22 years agoDefault to not performing ufs_dirhash's extensive directory-block
Ian Dowse [Thu, 25 Oct 2001 22:55:59 +0000 (22:55 +0000)]
Default to not performing ufs_dirhash's extensive directory-block
sanity check after every directory modification. This check can be
re-enabled at any time by setting the sysctl "vfs.ufs.dirhash_docheck"
to 1.

This group of sanity tests was there to ensure that any UFS_DIRHASH
bugs could be caught by a panic before a potentially corrupted
directory block would be written to disk. It has served its main
purpose now, so disable it in the interest of performance.

MFC after: 1 week

22 years agoIn cluster_rbuild(), 'size' had better match buf->b_bcount and buf->b_bufsize
Matthew Dillon [Thu, 25 Oct 2001 22:49:48 +0000 (22:49 +0000)]
In cluster_rbuild(), 'size' had better match buf->b_bcount and buf->b_bufsize
or the cluster will not be properly merged.  Dup the code from
cluster_wbuild() and add some printf()s to see if bad cases are present.

MFC after: 2 weeks

22 years agoMove abstract inside articleinfo and re-indent, no content changes.
Bruce A. Mah [Thu, 25 Oct 2001 21:06:37 +0000 (21:06 +0000)]
Move abstract inside articleinfo and re-indent, no content changes.

22 years agoNew release notes: Multiple low-level consoles, fxp(4) bundling.
Bruce A. Mah [Thu, 25 Oct 2001 20:47:12 +0000 (20:47 +0000)]
New release notes:  Multiple low-level consoles, fxp(4) bundling.

22 years agoo Modify format of /etc/fbtab to accept glob matching patterns for
Robert Watson [Thu, 25 Oct 2001 20:45:47 +0000 (20:45 +0000)]
o Modify format of /etc/fbtab to accept glob matching patterns for
  target devices, not just individual devices and directories.  This
  permits activities such as:

ttyv0 0600 /dev/dsp*

  Whereas previously that was not supported.  This change is
  backwards-compatible, except where device names included globbing
  characters, which is not the case for any devices listed in MAKEDEV.

Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 3 weeks

22 years agoUse TASK_INIT to initialize taskqueue task instead of violating the
John Baldwin [Thu, 25 Oct 2001 19:56:02 +0000 (19:56 +0000)]
Use TASK_INIT to initialize taskqueue task instead of violating the
abstraction.

Submitted by: Andrew Reiter <arr@watson.org>

22 years agoRemove wx driver, which got recently removed.
Jeroen Ruigrok van der Werven [Thu, 25 Oct 2001 19:45:39 +0000 (19:45 +0000)]
Remove wx driver, which got recently removed.

Submitted by: revamped kernincludes.sh

22 years agoUnbreak NEWCARD by removing options NFS and replacing it with the
Jeroen Ruigrok van der Werven [Thu, 25 Oct 2001 19:41:13 +0000 (19:41 +0000)]
Unbreak NEWCARD by removing options NFS and replacing it with the
new NFSCLIENT and NFSSERVER options.

Submitted by: revamped kernincludes.sh

22 years agoAargh. I really shouldn't do late night commits. Remove a floating point
Jonathan Lemon [Thu, 25 Oct 2001 19:36:44 +0000 (19:36 +0000)]
Aargh. I really shouldn't do late night commits.  Remove a floating point
multiply, and replace it with a close equivalent.  1.488 =~ 1.5

22 years agoNow that nfsm_reply() does not usually set 'error' to 0, we need
Ian Dowse [Thu, 25 Oct 2001 19:07:56 +0000 (19:07 +0000)]
Now that nfsm_reply() does not usually set 'error' to 0, we need
to do it explicitly in nfsrv_noop so that the reply gets sent back
to the client. This fixes the generation of a selection of RPC
error replies (RPC_PROGMISMATCH, RPC_PROGUNAVAIL, RPC_PROCUNAVAIL
etc.) that are used by some clients to detect support for optional
protocols and features.

Reviewed by: peter
Reported by: Thomas Quinot <quinot@inf.enst.fr>
PR: kern/31479

22 years agoDefs for three (unused so far) bits in PCI command/status register
Luigi Rizzo [Thu, 25 Oct 2001 17:43:26 +0000 (17:43 +0000)]
Defs for three (unused so far) bits in PCI command/status register
were off by one bit.

22 years agoBetter code to scan the ethertable.
Luigi Rizzo [Thu, 25 Oct 2001 17:40:03 +0000 (17:40 +0000)]
Better code to scan the ethertable.

22 years agoFix an inverted test csae. Success of getenv() is determined by a return
John Baldwin [Thu, 25 Oct 2001 17:22:31 +0000 (17:22 +0000)]
Fix an inverted test csae.  Success of getenv() is determined by a return
value of !NUL rather than NUL.

Submitted by: luigi
Pointy hat to: jhb

22 years agoPut WARNS into the right place.
Ruslan Ermilov [Thu, 25 Oct 2001 17:09:37 +0000 (17:09 +0000)]
Put WARNS into the right place.

22 years agoCurrently no code does a CROSSJUMP() to sw1a, so we don't need a
John Baldwin [Thu, 25 Oct 2001 16:54:21 +0000 (16:54 +0000)]
Currently no code does a CROSSJUMP() to sw1a, so we don't need a
CROSSJUMPTARGET() for it.

Submitted by: bde

22 years agoUse %ecx instead of %ebx for the scratch register while updating %dr7 since
John Baldwin [Thu, 25 Oct 2001 16:52:43 +0000 (16:52 +0000)]
Use %ecx instead of %ebx for the scratch register while updating %dr7 since
%ecx isn't a call safe register and thus we don't have to save and restore
it.

Submitted by: bde

22 years ago- Fix typo in comment from previous revision.
John Baldwin [Thu, 25 Oct 2001 16:50:16 +0000 (16:50 +0000)]
- Fix typo in comment from previous revision.
- Fix a bug in the LDT changes where the wrong argument was passed to
  set_user_ldt() from cpu_switch().  The bug was passing a pointer to the
  ldt, but set_user_ldt() takes a pointer to the process' mdproc structure.

Submitted by: bde

22 years agoWhitespace, comment, and string fixes.
John Baldwin [Thu, 25 Oct 2001 16:47:01 +0000 (16:47 +0000)]
Whitespace, comment, and string fixes.

Submitted by: bde (mostly)

22 years agoStyle and WARNS cleanups.
Jonathan Lemon [Thu, 25 Oct 2001 16:41:38 +0000 (16:41 +0000)]
Style and WARNS cleanups.

Submitted by: ru

22 years agoDon't put an extra space after password prompts, because it violates POLA,
Maxim Sobolev [Thu, 25 Oct 2001 15:51:50 +0000 (15:51 +0000)]
Don't put an extra space after password prompts, because it violates POLA,
makes FreeBSD inconsistent with previous releases and "other unices" as well
as with some internal password-asking services (e.g. ftp) within the same
release.

22 years agoStyle these once again.
Ruslan Ermilov [Thu, 25 Oct 2001 12:16:51 +0000 (12:16 +0000)]
Style these once again.

22 years agoFixed misformatting of options line for COMPAQ_M610 and EICON_DIVA in
Bruce Evans [Thu, 25 Oct 2001 12:05:45 +0000 (12:05 +0000)]
Fixed misformatting of options line for COMPAQ_M610 and EICON_DIVA in
rev.1.974.

Fixed previous misformatting of options line for ACCEPT_FILTER_DATA,
ACCEPT_FILTER_HTTP, ACPI_DEBUG, COMPAT_SVR4, DEBUG_SVR4, ED_NO_MIIBUS,
IFS, PCFCLOCK_MAX_RETRIES, PCFCLOCK_VERBOSE, PECOFF_DEBUG, PECOFF_SUPPORT,
PPC_PROBE_CHIPSET, RANDOM_IP_ID, REGRESSION, SC_CUT_SEPCHARS,
SC_CUT_SPACES2TABS, SES_ENABLE_PASSTHROUGH, UFS_DIRHASH, UFS_EXTATTR
and UFS_EXTATTR_AUTOSTART.

22 years agoFixed bugs in rev.1.973. Actually enable PCI_ENABLE_IO_MODES. It
Bruce Evans [Thu, 25 Oct 2001 11:46:54 +0000 (11:46 +0000)]
Fixed bugs in rev.1.973.  Actually enable PCI_ENABLE_IO_MODES.  It
defeats the point of LINT to comment out positive options.

Fixed style bugs in rev.1.973:
- disordering of PCI options list.
- missing space after "options".
- line longer than 80 characters.
- bogus quoting of "BIOS".

22 years agoFinish the removal of uucp scripts.
Ruslan Ermilov [Thu, 25 Oct 2001 11:27:55 +0000 (11:27 +0000)]
Finish the removal of uucp scripts.

Forgotten by: kris

22 years agoFixed some English errors, mainly ones not fixed in the previous commit.
Bruce Evans [Thu, 25 Oct 2001 11:20:15 +0000 (11:20 +0000)]
Fixed some English errors, mainly ones not fixed in the previous commit.
The previous commit message should have said this too (the only BSDism
fixed was punctuation for non-sentences).  Neither these changes nor
the ones in the previous commit were exactly as submitted by me.

22 years agoadd options line for Compaq Microcom 610 ISDN card.
Hellmuth Michaelis [Thu, 25 Oct 2001 11:14:46 +0000 (11:14 +0000)]
add options line for Compaq Microcom 610 ISDN card.

22 years agoImplement va->pa translation for kernel virtual addresses. This is
Doug Rabson [Thu, 25 Oct 2001 09:08:21 +0000 (09:08 +0000)]
Implement va->pa translation for kernel virtual addresses. This is
untested - it only seems to be used for crashdumps.

22 years agoJust use ${MACHINE}, it's already special-casing pc98.
Ruslan Ermilov [Thu, 25 Oct 2001 09:05:47 +0000 (09:05 +0000)]
Just use ${MACHINE}, it's already special-casing pc98.

22 years agoCall ExitBootServices and disable interrupts before we start hacking
Doug Rabson [Thu, 25 Oct 2001 08:53:39 +0000 (08:53 +0000)]
Call ExitBootServices and disable interrupts before we start hacking
the VM registers. This ought to make things slightly more reliable here.

22 years agoAdd the two sections used for PLT entries to the text and sdata sections
Doug Rabson [Thu, 25 Oct 2001 08:50:14 +0000 (08:50 +0000)]
Add the two sections used for PLT entries to the text and sdata sections
respectively. This makes IPLTLSB relocations work properly (these are
generated for weak symbols, particularly for _longjmp).

22 years agoSimplify.
Ruslan Ermilov [Thu, 25 Oct 2001 08:50:06 +0000 (08:50 +0000)]
Simplify.

22 years agoThe directory of the makefile that's including the file is tried first.
Ruslan Ermilov [Thu, 25 Oct 2001 08:37:12 +0000 (08:37 +0000)]
The directory of the makefile that's including the file is tried first.
See section 3.2 of "PMake - A Tutorial" in /usr/share/doc/psd/12.make.

22 years agoMake `-b' option actually work as advertised.
Maxim Sobolev [Thu, 25 Oct 2001 07:56:20 +0000 (07:56 +0000)]
Make `-b' option actually work as advertised.

22 years agoSort SUBDIR.
Ruslan Ermilov [Thu, 25 Oct 2001 07:55:43 +0000 (07:55 +0000)]
Sort SUBDIR.

22 years agoFix cross-building further.
Ruslan Ermilov [Thu, 25 Oct 2001 07:28:55 +0000 (07:28 +0000)]
Fix cross-building further.

Introduce ${TARGET} defaulting to ${MACHINE} which should be set to
whatever your target ${MACHINE} is, and use that with world-related
stages.  That is, to build pc98 on alpha, one now needs to set both
TARGET_ARCH=i386 and TARGET=pc98.

The scope of ${TARGET} is limited to Makefile.inc1 and cross-tools.

In particular, this change was tested to fix:

1.  Cross building of "alpha" on i386.  The breakage was introduced
    by rev. 1.10 to sbin/i386/Makefile (missing <machine/cronyx.h>).

2.  Descending into machine-specific subdirs for a different arch.
    Previously, sbin/i386 and usr.sbin/boot0cfg were descended into
    when cross-building "alpha" or pc98 on i386.

3.  Fixes pc98 cross-building which was horribly broken, caused by
    not setting MACHINE correctly (most ${MACHINE} == pc98 checking
    Makefiles put -DPC98 to CFLAGS).

22 years agoDon't use the ip_timestamp structure to access timestamp options, as the
Jonathan Lemon [Thu, 25 Oct 2001 06:27:51 +0000 (06:27 +0000)]
Don't use the ip_timestamp structure to access timestamp options, as the
compiler may cause an unaligned access to be generated in some cases.

PR: 30982

22 years agoIf we are bridging, fall back to using any inet address in the system,
Jonathan Lemon [Thu, 25 Oct 2001 06:14:21 +0000 (06:14 +0000)]
If we are bridging, fall back to using any inet address in the system,
irrespective of receive interface, as a last resort.

Submitted by: ru

22 years agoRelocate the KASSERT for a null recvif to a location where it will
Jonathan Lemon [Thu, 25 Oct 2001 05:56:30 +0000 (05:56 +0000)]
Relocate the KASSERT for a null recvif to a location where it will
actually do some good.

Pointed out by: ru

22 years agoMdoc fixes and clarification.
Jonathan Lemon [Thu, 25 Oct 2001 05:53:11 +0000 (05:53 +0000)]
Mdoc fixes and clarification.

Submitted by: sheldonh

22 years agoDocument the link0 option, which downloads the microcode to the board.
Jonathan Lemon [Thu, 25 Oct 2001 05:49:23 +0000 (05:49 +0000)]
Document the link0 option, which downloads the microcode to the board.

22 years agoAdd support for loadable microcode which implements interrupt coalescing
Jonathan Lemon [Thu, 25 Oct 2001 05:32:01 +0000 (05:32 +0000)]
Add support for loadable microcode which implements interrupt coalescing
and packet bundling.  Make the microcode settings controllable via sysctl
and loader tunables.

Submitted by: Marko Zec <zec@tel.fer.hr>
  (with some munging and dynamic sysctl support by me)

Also extend the workaround for Dynamic Standby mode to later '559 chips,
not just the ICH2 variants.