]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoAdd the following functions/macros to support byte order conversions and
Thomas Moestl [Wed, 27 Feb 2002 17:16:18 +0000 (17:16 +0000)]
Add the following functions/macros to support byte order conversions and
device drivers for bus system with other endinesses than the CPU (using
interfaces compatible to NetBSD):

- bwap16() and bswap32(). These have optimized implementations on some
  architectures; for those that don't, there exist generic implementations.
- macros to convert from a certain byte order to host byte order and vice
  versa, using a naming scheme like le16toh(), htole16().
  These are implemented using the bswap functions.
- stream bus space access functions, which do not perform a byte order
  conversion (while the normal access functions would if the bus endianess
  differs from the CPU endianess).

htons(), htonl(), ntohs() and ntohl() are implemented using the new
functions above for kernel usage. None of the above interfaces is currently
exported to user land.

Make use of the new functions in a few places where local implementations
of the same functionality existed.

Reviewed by: mike, bde
Tested on alpha by: mike

22 years agoUse the updated getcredhostname() function.
Robert Drehmel [Wed, 27 Feb 2002 16:55:30 +0000 (16:55 +0000)]
Use the updated getcredhostname() function.

22 years agoUse the updated getcredhostname() function.
Robert Drehmel [Wed, 27 Feb 2002 16:47:27 +0000 (16:47 +0000)]
Use the updated getcredhostname() function.

22 years agoMake getcredhostname() take a buffer and the buffer's size
Robert Drehmel [Wed, 27 Feb 2002 16:43:20 +0000 (16:43 +0000)]
Make getcredhostname() take a buffer and the buffer's size
as arguments.  The correct hostname is copied into the buffer
while having the prison's lock acquired in a jailed process'
case.

Reviewed by: jhb, rwatson

22 years ago1) Don't use -Wall in Makefile.
David Malone [Wed, 27 Feb 2002 15:49:07 +0000 (15:49 +0000)]
1) Don't use -Wall in Makefile.
2) Don't compile vendor ID.
3) WARNS=4 fixes (constness, make a global local to avoid shadowing, unused
   parameters, rename local to avoid shadowing, remove junk after #endif)
4) remove some "register"s.

22 years ago - Use the new getcredhostname function in xenix_utsname(),
Robert Drehmel [Wed, 27 Feb 2002 15:23:01 +0000 (15:23 +0000)]
 - Use the new getcredhostname function in xenix_utsname(),
   ibcs2_getipdomainname(), and ibcs2_utssys().

Reviewed by: phk

22 years ago1) Move FreeBSD ID below vendor ID and don't compile vendor ID.
David Malone [Wed, 27 Feb 2002 15:22:12 +0000 (15:22 +0000)]
1) Move FreeBSD ID below vendor ID and don't compile vendor ID.
2) Cast some numbers we know to be positive to size_t before we MIN them
   with the result of a sizeof.
3) Compare result of inet_addr to INADDR_NONE, not -1.

22 years ago - Use the new getcredhostname function in the SVR4 uname system call.
Robert Drehmel [Wed, 27 Feb 2002 15:12:56 +0000 (15:12 +0000)]
 - Use the new getcredhostname function in the SVR4 uname system call.
 - Remove spurious empty line.

Reviewed by: phk

22 years agoUse the getcredhostname function to fill the hostname into
Robert Drehmel [Wed, 27 Feb 2002 15:06:33 +0000 (15:06 +0000)]
Use the getcredhostname function to fill the hostname into
the linux_newuname_args structure.  This should fix the case
of jailed linux processes not using the jail's hostname.

PR: 35336
Reviewed by: phk

22 years agoAdd a function which returns the correct hostname for a given
Robert Drehmel [Wed, 27 Feb 2002 14:58:32 +0000 (14:58 +0000)]
Add a function which returns the correct hostname for a given
credential.

Reviewed by: phk

22 years agoPreprocess with pic(1).
Ruslan Ermilov [Wed, 27 Feb 2002 14:57:54 +0000 (14:57 +0000)]
Preprocess with pic(1).

22 years agoAdd missing "#include <string.h>" for memcmp, noticed by gcc3.
David Malone [Wed, 27 Feb 2002 14:56:58 +0000 (14:56 +0000)]
Add missing "#include <string.h>" for memcmp, noticed by gcc3.

22 years agoBuild fix.
Sebastien Gioria [Wed, 27 Feb 2002 14:48:18 +0000 (14:48 +0000)]
Build fix.
Remember to hit me 42000 times with a stick and to repeat "I sould not commit before a zero warning build"

22 years agoMFen + Typos Fix
Sebastien Gioria [Wed, 27 Feb 2002 14:44:35 +0000 (14:44 +0000)]
MFen + Typos Fix

22 years agoFixed a few typos.
Ruslan Ermilov [Wed, 27 Feb 2002 14:43:55 +0000 (14:43 +0000)]
Fixed a few typos.

22 years ago1) Move FreeBSD tag to after vendor ID, #if 0 vendor ID.
David Malone [Wed, 27 Feb 2002 14:40:09 +0000 (14:40 +0000)]
1) Move FreeBSD tag to after vendor ID, #if 0 vendor ID.
2) Add missing include of stdlib.h for exit(), spotted by gcc3.

22 years ago1) Remove blank line between include of sys/cdefs.h and __FBSDID
David Malone [Wed, 27 Feb 2002 14:32:43 +0000 (14:32 +0000)]
1) Remove blank line between include of sys/cdefs.h and __FBSDID
2) compare return value of inet_addr to INADDR_NONE rather than -1.

22 years agoInitial effort for the translation of the -CURRENT relnotes. Actually
Sebastien Gioria [Wed, 27 Feb 2002 14:26:07 +0000 (14:26 +0000)]
Initial effort for the translation of the -CURRENT relnotes. Actually
just the kernel section is translated, a lot of features are added in
5.0.

So help is appreciate :-)

22 years agoChange the wording of the inline comments from the previous commit.
Crist J. Clark [Wed, 27 Feb 2002 13:52:06 +0000 (13:52 +0000)]
Change the wording of the inline comments from the previous commit.

Objection from: ru

22 years agoMPsafe fixes:
Alfred Perlstein [Wed, 27 Feb 2002 11:27:48 +0000 (11:27 +0000)]
MPsafe fixes:

use SYSINIT to initialize pipe_zone.
use PIPE_LOCK to protect kevent ops.

22 years agoReturn ESRCH if the target process is not inferior to the curproc.
Seigo Tanimura [Wed, 27 Feb 2002 10:38:14 +0000 (10:38 +0000)]
Return ESRCH if the target process is not inferior to the curproc.

Spotted by: HIROSHI OOTA <oota@LSi.nec.co.jp>

22 years agoDon't hardcode /sys when making tags, instead use ${.CURDIR}/.. this
Alfred Perlstein [Wed, 27 Feb 2002 10:07:15 +0000 (10:07 +0000)]
Don't hardcode /sys when making tags, instead use ${.CURDIR}/.. this
fixes a problem where one tries to make tags when the source isn't in
/sys.

Submitted by: Jihui Yang <yangjihui@yahoo.com>

22 years agoRe-fix a pointer/integer warning.
Peter Wemm [Wed, 27 Feb 2002 09:58:06 +0000 (09:58 +0000)]
Re-fix a pointer/integer warning.

22 years agoBack out all the pmap related stuff I've touched over the last few days.
Peter Wemm [Wed, 27 Feb 2002 09:51:33 +0000 (09:51 +0000)]
Back out all the pmap related stuff I've touched over the last few days.
There is some unresolved badness that has been eluding me, particularly
affecting uniprocessor kernels.  Turning off PG_G helped (which is a bad
sign) but didn't solve it entirely.  Userland programs still crashed.

22 years agoFix warnings that have become fatal
Julian Elischer [Wed, 27 Feb 2002 09:16:00 +0000 (09:16 +0000)]
Fix warnings that have become fatal
1/ conditionalise (#if 0) function that is not used.
 Unused code left in place for netBSD compatibility.
2/ Recode loop to convince gcc that it does initialise a variable
 (use do-while instead of for() so gcc knows that we always go through
 at least once.  Feel free to check my logic.

22 years agoturn on the ethertype filter module
Julian Elischer [Wed, 27 Feb 2002 08:54:13 +0000 (08:54 +0000)]
turn on the ethertype filter module

22 years agoRemove a redundant decalaration of call_desc[] since it's now a
Gary Jennejohn [Wed, 27 Feb 2002 08:33:08 +0000 (08:33 +0000)]
Remove a redundant decalaration of call_desc[] since it's now a
fatal error.

22 years agoFirst rev at making pipe(2) pipe's MPsafe.
Alfred Perlstein [Wed, 27 Feb 2002 07:35:59 +0000 (07:35 +0000)]
First rev at making pipe(2) pipe's MPsafe.

Both ends of the pipe share a pool_mutex, this makes allocation
and deadlock avoidance easy.

Remove some un-needed FILE_LOCK ops while I'm here.

There are some issues wrt to select and the f{s,g}etown code that
we'll have to deal with, I think we may also need to move the calls
to vfs_timestamp outside of the sections covered by PIPE_LOCK.

22 years agoMinimal testing has shown that a 4 page tsb is a nice sweet spot for current
Jake Burkholder [Wed, 27 Feb 2002 06:18:02 +0000 (06:18 +0000)]
Minimal testing has shown that a 4 page tsb is a nice sweet spot for current
work loads.  It tapers off after that as gcc's working set generally just fits.

compiling bin/csh:

TSB_PAGES = 2
213.33 real        77.59 user       110.01 sys
TSB_PAGES = 4
116.43 real        75.78 user        19.16 sys
TSB_PAGES = 8
119.27 real        76.38 user        18.12 sys

Testing by: tmm

22 years agoParameterize the number of pages to allocate for the per-cpu area on
Jake Burkholder [Wed, 27 Feb 2002 06:08:13 +0000 (06:08 +0000)]
Parameterize the number of pages to allocate for the per-cpu area on
PCPU_PAGES.

22 years agoMake cpu_identify take the value of the ver register and cpuid as arguments
Jake Burkholder [Wed, 27 Feb 2002 06:05:50 +0000 (06:05 +0000)]
Make cpu_identify take the value of the ver register and cpuid as arguments
so we can print nice things about non-current cpus.

22 years agoBandaid for the Uniprocessor kernel exploding. This makes a UP kernel
Peter Wemm [Wed, 27 Feb 2002 06:05:24 +0000 (06:05 +0000)]
Bandaid for the Uniprocessor kernel exploding.  This makes a UP kernel
boot and run (and indeed I am committing from it) instead of exploding
during the int 0x15 call from inside the atkbd driver to get the keyboard
repeat rates.

22 years agoMore IPV6 const fixes.
Alfred Perlstein [Wed, 27 Feb 2002 05:11:50 +0000 (05:11 +0000)]
More IPV6 const fixes.

22 years ago<port>fish</port> -> <filename role="package">fish</filename>
Dima Dorfman [Wed, 27 Feb 2002 05:11:11 +0000 (05:11 +0000)]
<port>fish</port> -> <filename role="package">fish</filename>

Generated with: s:<port>(.*?)</port>:<filename role="package">\1</filename>:g

22 years agoUse the pci.c code wherever possible, rather than copying all the pci
Warner Losh [Wed, 27 Feb 2002 05:09:14 +0000 (05:09 +0000)]
Use the pci.c code wherever possible, rather than copying all the pci
code into cardbus and s/pci/cardbus.  This exposes a few pci_*
functions that are now static.

This work is similar to work Justin posted to the mobile list about a
year or two ago, which I have neglected since then.

This is a subset of his current work with the multiple inheritance
newbus architecutre.  When completed, that will eliminate the need for
pci/pci_private.h.

Similar work is needed for the cardbus_cis and pccard_cis code as well.

22 years agoIntroduce a version field to `struct xucred' in place of one of the
Dima Dorfman [Wed, 27 Feb 2002 04:45:37 +0000 (04:45 +0000)]
Introduce a version field to `struct xucred' in place of one of the
spares (the size of the field was changed from u_short to u_int to
reflect what it really ends up being).  Accordingly, change users of
xucred to set and check this field as appropriate.  In the kernel,
this is being done inside the new cru2x() routine which takes a
`struct ucred' and fills out a `struct xucred' according to the
former.  This also has the pleasant sideaffect of removing some
duplicate code.

Reviewed by: rwatson

22 years agoclarify panic message
Alfred Perlstein [Wed, 27 Feb 2002 04:27:36 +0000 (04:27 +0000)]
clarify panic message

22 years agoFix warnings caused by discarding const.
Alfred Perlstein [Wed, 27 Feb 2002 02:44:45 +0000 (02:44 +0000)]
Fix warnings caused by discarding const.

Hairy Eyeball At: peter

22 years agoRemove errors in LINT (now that they are fatal)
Julian Elischer [Wed, 27 Feb 2002 02:21:43 +0000 (02:21 +0000)]
Remove errors in LINT (now that they are fatal)

22 years agoJake further reduced IPI shootdowns on sparc64 in loops by using ranged
Peter Wemm [Wed, 27 Feb 2002 02:14:58 +0000 (02:14 +0000)]
Jake further reduced IPI shootdowns on sparc64 in loops by using ranged
shootdowns in a couple of key places.  Do the same for i386.  This also
hides some physical addresses from higher levels and has it use the
generic vm_page_t's instead.  This will help for PAE down the road.

Obtained from: jake (MI code, suggestions for MD part)

22 years agoRemove problematic PHY_WRITE so that autoneg to 10 Mbps
Daniel O'Callaghan [Wed, 27 Feb 2002 02:11:34 +0000 (02:11 +0000)]
Remove problematic PHY_WRITE so that autoneg to 10 Mbps
actually works.

Submitted by: Dennis <TD790@aol.com>
Reviewed by: Bill Paul <wpaul@freebsd.org>
MFC after: 7 days

22 years agoremove trailing semi-colons from macro definitions.
Alfred Perlstein [Wed, 27 Feb 2002 02:02:13 +0000 (02:02 +0000)]
remove trailing semi-colons from macro definitions.

22 years agodidn't quite undo the last reversion. This gets it.
Matthew Dillon [Wed, 27 Feb 2002 01:48:17 +0000 (01:48 +0000)]
didn't quite undo the last reversion.  This gets it.

22 years agoMinor cleanup.
Jake Burkholder [Wed, 27 Feb 2002 00:31:31 +0000 (00:31 +0000)]
Minor cleanup.

22 years agoWrap long lines.
Jake Burkholder [Wed, 27 Feb 2002 00:28:35 +0000 (00:28 +0000)]
Wrap long lines.

22 years agoUse pcpu.pc_cpumask instead of computing 1 << cpuid.
Jake Burkholder [Wed, 27 Feb 2002 00:27:05 +0000 (00:27 +0000)]
Use pcpu.pc_cpumask instead of computing 1 << cpuid.

22 years agoAdd a macro for shift of an integer (1 << shift == sizeof). Move the pointer
Jake Burkholder [Wed, 27 Feb 2002 00:21:04 +0000 (00:21 +0000)]
Add a macro for shift of an integer (1 << shift == sizeof).  Move the pointer
define to live alongside it.  For kicks assert at compile time that they are
correct.  Use these instead of magic numbers.

22 years agoWrap long lines.
Jake Burkholder [Wed, 27 Feb 2002 00:03:01 +0000 (00:03 +0000)]
Wrap long lines.

22 years agoremove "discards qualifier" erro by not potentially writing to
Julian Elischer [Tue, 26 Feb 2002 23:38:34 +0000 (23:38 +0000)]
remove "discards qualifier" erro by not potentially writing to
a const *.

22 years agoDefine basic macros required by GDB.
David E. O'Brien [Tue, 26 Feb 2002 21:49:46 +0000 (21:49 +0000)]
Define basic macros required by GDB.

22 years agouse _GENERIC_DIRSIZ(dp) to avoid copying too much of the dirent over
Alfred Perlstein [Tue, 26 Feb 2002 21:39:32 +0000 (21:39 +0000)]
use _GENERIC_DIRSIZ(dp) to avoid copying too much of the dirent over
the user supplied buffer.  this can be a problem when the user doesn't
supply a full dirent and we corrupt their memory.

22 years agorevert compatibility fix temporarily (thought it would not break anything
Matthew Dillon [Tue, 26 Feb 2002 20:34:52 +0000 (20:34 +0000)]
revert compatibility fix temporarily (thought it would not break anything
leaving it in).

22 years agorevert last commit temporarily due to whining on the lists.
Matthew Dillon [Tue, 26 Feb 2002 20:33:41 +0000 (20:33 +0000)]
revert last commit temporarily due to whining on the lists.

22 years agoFix warnings in the gif(4) driver so it compiles with -Werror.
Brooks Davis [Tue, 26 Feb 2002 20:11:33 +0000 (20:11 +0000)]
Fix warnings in the gif(4) driver so it compiles with -Werror.

22 years agoSet ifp->if_name to "awi" instead of device_get_name(dev) to avoid
Brooks Davis [Tue, 26 Feb 2002 20:09:19 +0000 (20:09 +0000)]
Set ifp->if_name to "awi" instead of device_get_name(dev) to avoid
casting away a const qualifier so the awi driver compiles.

22 years agoRather than include namespace pollution in <grp.h> in order to declare
Mike Barcroft [Tue, 26 Feb 2002 19:43:03 +0000 (19:43 +0000)]
Rather than include namespace pollution in <grp.h> in order to declare
`gid_t', use the canonical protection scheme to define a type in two or
more headers.  This brings <grp.h> closer to POSIX.1-2001 conformance.

22 years agoStaticize an extern that no one else used.
Brooks Davis [Tue, 26 Feb 2002 18:24:00 +0000 (18:24 +0000)]
Staticize an extern that no one else used.

22 years agoMake peter's commit compatible with interrupt-enabled critical_enter()
Matthew Dillon [Tue, 26 Feb 2002 18:08:54 +0000 (18:08 +0000)]
Make peter's commit compatible with interrupt-enabled critical_enter()
and exit(), which has already solved the problem in regards to deadlocked
IPI's.

22 years agoAdd a missing field to the end of array marker in the pci_ids array.
Brooks Davis [Tue, 26 Feb 2002 17:35:21 +0000 (17:35 +0000)]
Add a missing field to the end of array marker in the pci_ids array.

Submitted by: sumikawa

22 years agoDid someone turn on -Werror or something?
Matthew Dillon [Tue, 26 Feb 2002 17:11:37 +0000 (17:11 +0000)]
Did someone turn on -Werror or something?

Fix kernel breakage.

22 years agoApparently gcc3.1 is now using deprcated v8 instructions in v9 code
Jake Burkholder [Tue, 26 Feb 2002 17:09:24 +0000 (17:09 +0000)]
Apparently gcc3.1 is now using deprcated v8 instructions in v9 code
due to them being faster in certain cases.  Therefore we need to save
and restore the v8 %y register around traps in kernel mode as well as
traps in usermode.

Tested by: obrien, tmm

22 years agoSTAGE-1 of 3 commit - allow (but do not require) interrupts to remain
Matthew Dillon [Tue, 26 Feb 2002 17:06:21 +0000 (17:06 +0000)]
STAGE-1 of 3 commit - allow (but do not require) interrupts to remain
enabled in critical sections and streamline critical_enter() and
critical_exit().

This commit allows an architecture to leave interrupts enabled inside
critical sections if it so wishes.  Architectures that do not wish to do
this are not effected by this change.

This commit implements the feature for the I386 architecture and provides
a sysctl, debug.critical_mode, which defaults to 1 (use the feature).  For
now you can turn the sysctl on and off at any time in order to test the
architectural changes or track down bugs.

This commit is just the first stage.  Some areas of the code, specifically
the MACHINE_CRITICAL_ENTER #ifdef'd code, is strictly temporary and will
be cleaned up in the STAGE-2 commit when the critical_*() functions are
moved entirely into MD files.

The following changes have been made:

* critical_enter() and critical_exit() for I386 now simply increment
  and decrement curthread->td_critnest.  They no longer disable
  hard interrupts.  When critical_exit() decrements the counter to
  0 it effectively calls a routine to deal with whatever interrupts
  were deferred during the time the code was operating in a critical
  section.

  Other architectures are unaffected.

* fork_exit() has been conditionalized to remove MD assumptions for
  the new code.  Old code will still use the old MD assumptions
  in regards to hard interrupt disablement.  In STAGE-2 this will
  be turned into a subroutine call into MD code rather then hardcoded
  in MI code.

  The new code places the burden of entering the critical section
  in the trampoline code where it belongs.

* I386: interrupts are now enabled while we are in a critical section.
  The interrupt vector code has been adjusted to deal with the fact.
  If it detects that we are in a critical section it currently defers
  the interrupt by adding the appropriate bit to an interrupt mask.

* In order to accomplish the deferral, icu_lock is required.  This
  is i386-specific.  Thus icu_lock can only be obtained by mainline
  i386 code while interrupts are hard disabled.  This change has been
  made.

* Because interrupts may or may not be hard disabled during a
  context switch, cpu_switch() can no longer simply assume that
  PSL_I will be in a consistent state.  Therefore, it now saves and
  restores eflags.

* FAST INTERRUPT PROVISION.  Fast interrupts are currently deferred.
  The intention is to eventually allow them to operate either while
  we are in a critical section or, if we are able to restrict the
  use of sched_lock, while we are not holding the sched_lock.

* ICU and APIC vector assembly for I386 cleaned up.  The ICU code
  has been cleaned up to match the APIC code in regards to format
  and macro availability.  Additionally, the code has been adjusted
  to deal with deferred interrupts.

* Deferred interrupts use a per-cpu boolean int_pending, and
  masks ipending, spending, and fpending.  Being per-cpu variables
  it is not currently necessary to lock; bus cycles modifying them.

  Note that the same mechanism will enable preemption to be
  incorporated as a true software interrupt without having to
  further hack up the critical nesting code.

* Note: the old critical_enter() code in kern/kern_switch.c is
  currently #ifdef to be compatible with both the old and new
  methodology.  In STAGE-2 it will be moved entirely to MD code.

Performance issues:

One of the purposes of this commit is to enhance critical section
performance, specifically to greatly reduce bus overhead to allow
the critical section code to be used to protect per-cpu caches.
These caches, such as Jeff's slab allocator work, can potentially
operate very quickly making the effective savings of the new
critical section code's performance very significant.

The second purpose of this commit is to allow architectures to
enable certain interrupts while in a critical section.  Specifically,
the intention is to eventually allow certain FAST interrupts to
operate rather then defer.

The third purpose of this commit is to begin to clean up the
critical_enter()/critical_exit()/cpu_critical_enter()/
cpu_critical_exit() API which currently has serious cross pollution
in MI code (in fork_exit() and ast() for example).

The fourth purpose of this commit is to provide a framework that
allows kernel-preempting software interrupts to be implemented
cleanly.  This is currently used for two forward interrupts in I386.
Other architectures will have the choice of using this infrastructure
or building the functionality directly into critical_enter()/
critical_exit().

Finally, this commit is designed to greatly improve the flexibility
of various architectures to manage critical section handling,
software interrupts, preemption, and other highly integrated
architecture-specific details.

22 years agoInitialize a variable bogusly to avoid a gcc bug that causes a spurious
Bruce Evans [Tue, 26 Feb 2002 17:04:29 +0000 (17:04 +0000)]
Initialize a variable bogusly to avoid a gcc bug that causes a spurious
warning.

22 years agooff by one error in Aaron Gifford's code. KAME PR 393.
Hajimu UMEMOTO [Tue, 26 Feb 2002 16:58:58 +0000 (16:58 +0000)]
off by one error in Aaron Gifford's code.  KAME PR 393.

PR: kern/34242
Submitted by: Aaron D. Gifford <agifford@infowest.com>
MFC after: 1 week

22 years agoFixed 3 regressions in rev.1.99 (clobbering of the English fix in rev.1.98,
Bruce Evans [Tue, 26 Feb 2002 16:17:45 +0000 (16:17 +0000)]
Fixed 3 regressions in rev.1.99 (clobbering of the English fix in rev.1.98,
and 2 unformattings).

22 years agoAdd some ifdef(RELEASE_CRUNCH) goo to explicitly list the requisite
Murray Stokely [Tue, 26 Feb 2002 15:12:54 +0000 (15:12 +0000)]
Add some ifdef(RELEASE_CRUNCH) goo to explicitly list the requisite
object files for crunchgen.  Without this patch, release.4 will fail
to build the crunched binaries for the release floppies.

22 years agoMFen
Sebastien Gioria [Tue, 26 Feb 2002 14:23:44 +0000 (14:23 +0000)]
MFen

22 years agoWhen asked to print bytes (-b option) do that and put 16 on a line.
Søren Schmidt [Tue, 26 Feb 2002 10:40:42 +0000 (10:40 +0000)]
When asked to print bytes (-b option) do that and put 16 on a line.

22 years agoHide "bla bla exists, skipping it" behind bootverbose.
Søren Schmidt [Tue, 26 Feb 2002 10:38:33 +0000 (10:38 +0000)]
Hide "bla bla exists, skipping it" behind bootverbose.

22 years agoAvoid a null-pointer dereference which occurred when emulating DOS
Robert Drehmel [Tue, 26 Feb 2002 10:22:25 +0000 (10:22 +0000)]
Avoid a null-pointer dereference which occurred when emulating DOS
interrupt 0x10 function 0x00 without dpy int tty.c being set.

PR: 35147
Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>

22 years ago - Emulate instructions prefixed with 'rep' correctly: set the CX
Robert Drehmel [Tue, 26 Feb 2002 10:13:35 +0000 (10:13 +0000)]
 - Emulate instructions prefixed with 'rep' correctly: set the CX
   register to zero.

Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
PR: 35147

22 years ago - Fix indentation and return statements to conform to style(9).
Robert Drehmel [Tue, 26 Feb 2002 10:05:20 +0000 (10:05 +0000)]
 - Fix indentation and return statements to conform to style(9).
 - Use the __FBSDID macro.
 - Fix some warnings.

Submitted by: obrien (partly)

22 years agoRevert part of the last commit. A couple of defines were removed
Josef Karthauser [Tue, 26 Feb 2002 10:00:32 +0000 (10:00 +0000)]
Revert part of the last commit.  A couple of defines were removed
by NetBSD because they don't use them (they've no usbd), but we do.

22 years agoAdd makeoptions NO_WERROR=true so that we can build. =)
Benno Rice [Tue, 26 Feb 2002 09:55:17 +0000 (09:55 +0000)]
Add makeoptions NO_WERROR=true so that we can build. =)

22 years agoCast the variable, not the constant to 64 bits.
Poul-Henning Kamp [Tue, 26 Feb 2002 09:27:39 +0000 (09:27 +0000)]
Cast the variable, not the constant to 64 bits.

22 years agoFix warning in !SMP case.
Poul-Henning Kamp [Tue, 26 Feb 2002 09:21:52 +0000 (09:21 +0000)]
Fix warning in !SMP case.

Submitted by:  Maxime Henrion <mux@mu.org>

22 years agoRemove unused variable.
Poul-Henning Kamp [Tue, 26 Feb 2002 09:16:27 +0000 (09:16 +0000)]
Remove unused variable.

22 years agoHide GCCisms in the non-GCC case.
Mike Barcroft [Tue, 26 Feb 2002 07:44:03 +0000 (07:44 +0000)]
Hide GCCisms in the non-GCC case.

22 years agoConvert pmap.pm_context to an array of contexts indexed by cpuid. This
Jake Burkholder [Tue, 26 Feb 2002 06:57:30 +0000 (06:57 +0000)]
Convert pmap.pm_context to an array of contexts indexed by cpuid.  This
doesn't make sense for SMP right now, but it is a means to an end.

22 years agoSync with sparc64 devices in dev-sparc64.sgml rev. 1.1.
Bruce A. Mah [Tue, 26 Feb 2002 06:43:59 +0000 (06:43 +0000)]
Sync with sparc64 devices in dev-sparc64.sgml rev. 1.1.

22 years agoPu back a call to pmap_context_destroy which was accidentily removed
Jake Burkholder [Tue, 26 Feb 2002 06:39:38 +0000 (06:39 +0000)]
Pu back a call to pmap_context_destroy which was accidentily removed
in the previous commit.

Spotted by: tmm

22 years agoFix some minor spelling and grammatical problems, make one markup fix.
Bruce A. Mah [Tue, 26 Feb 2002 06:29:08 +0000 (06:29 +0000)]
Fix some minor spelling and grammatical problems, make one markup fix.

22 years agoIn ad-hoc mode, the "associate" bit is valid to check to see if it is
Doug Ambrisko [Tue, 26 Feb 2002 05:43:05 +0000 (05:43 +0000)]
In ad-hoc mode, the "associate" bit is valid to check to see if it is
part of an ad-hoc network.  This means another station needs to be
around so they can both associate.

MFC after: 1 week

22 years agoUntil I can figure out how to live without the volatile qualifier on
Warner Losh [Tue, 26 Feb 2002 03:46:14 +0000 (03:46 +0000)]
Until I can figure out how to live without the volatile qualifier on
comdefaultrate, comment out the support for machdep.conspeed for now.

22 years agoRemove an unused variable.
Warner Losh [Tue, 26 Feb 2002 03:37:35 +0000 (03:37 +0000)]
Remove an unused variable.

22 years agoFix warnings introduced in the PCI_ALLOW_UNSUPPORTED_IO_RANGE case.
Warner Losh [Tue, 26 Feb 2002 03:31:35 +0000 (03:31 +0000)]
Fix warnings introduced in the PCI_ALLOW_UNSUPPORTED_IO_RANGE case.

22 years agoIf we're going to ifdef out the only reference to asr_drvinit, then
Warner Losh [Tue, 26 Feb 2002 03:22:44 +0000 (03:22 +0000)]
If we're going to ifdef out the only reference to asr_drvinit, then
go ahead and ifdef out the function too.

22 years agoAdd an experimental tunable: machdep.conspeed.
Warner Losh [Tue, 26 Feb 2002 03:13:30 +0000 (03:13 +0000)]
Add an experimental tunable: machdep.conspeed.

# I'm not sure where to document this.

22 years agominor style(9) fix: return (foo); The file was mostly style(9) before.
Warner Losh [Tue, 26 Feb 2002 03:00:19 +0000 (03:00 +0000)]
minor style(9) fix: return (foo);  The file was mostly style(9) before.

22 years agoAllow the user tsb to span multiple pages. Make the default 2 pages for now
Jake Burkholder [Tue, 26 Feb 2002 02:37:43 +0000 (02:37 +0000)]
Allow the user tsb to span multiple pages.  Make the default 2 pages for now
until we do some testing to see what's best.  This gives a massive reduction
in system time for processes with a relatively large working set.  The size
of the tsb directly affects the rss size that a user process can keep mapped.
When it starts to get full replacements occur and the process takes a lot of
soft vm faults.  Increasing the default from 1 page to 2 gives the following
before and after numbers for compiling vfs_bio.c:

before:
       14.27 real         6.56 user         5.69 sys
after:
        8.57 real         6.11 user         1.62 sys

This should make self hosted builds more tolerable.

22 years agoAfter getting IANA to fix a typo in their port assignments, add
Crist J. Clark [Tue, 26 Feb 2002 02:36:49 +0000 (02:36 +0000)]
After getting IANA to fix a typo in their port assignments, add
some new IANA-blessed services and close some PRs. Ports for
Jabber and PostgreSQL.

PR: conf/35219, conf/35220
Submitted by: Sean Chittenden <sean@chittenden.org>
MFC after: 1 day

22 years agoWhen using hardware decoding, reconstruct the wire form of the ethernet
Brooks Davis [Tue, 26 Feb 2002 02:19:33 +0000 (02:19 +0000)]
When using hardware decoding, reconstruct the wire form of the ethernet
header and push it up any attached bpf devices on the parent interface.
This makes hardware vlan decoding more like the normal software path.

Tested by: cjtt@employees.org
MFC after: 2 weeks

22 years agoEnforce inbound IPsec SPD
Chris D. Faulhaber [Tue, 26 Feb 2002 02:11:13 +0000 (02:11 +0000)]
Enforce inbound IPsec SPD

Reviewed by: fenner

22 years agoMake gif(4) nesting level and parallel tunnel support tunable at runtime
Brooks Davis [Tue, 26 Feb 2002 01:56:56 +0000 (01:56 +0000)]
Make gif(4) nesting level and parallel tunnel support tunable at runtime
via sysctl's.  The old #defines, MAX_GIF_NEST and XBONEHACK are
currently supported for backwards compatability, but will probably be
removed at some point in the future.

22 years agoin ulpt_reset() req.bmRequestType was unitialized, fix it.
Alfred Perlstein [Tue, 26 Feb 2002 01:19:56 +0000 (01:19 +0000)]
in ulpt_reset() req.bmRequestType was unitialized, fix it.

22 years agoMerge from NetBSD:
Josef Karthauser [Tue, 26 Feb 2002 01:15:08 +0000 (01:15 +0000)]
Merge from NetBSD:

usb.h (rev 1.61):

    date: 2002/01/01 14:23:37;  author: augustss;
    Add a missing subclass definition.

usb.h (rev 1.63) and usb_port.h (rev 1.52):

    date: 2002/02/25 00:46:37;  author: augustss;
    Some portability improvement.
    Add define for usb.h version.

22 years agoFix a warning by pulling prototype for arp_ifinit() into scope.
Peter Wemm [Tue, 26 Feb 2002 01:11:08 +0000 (01:11 +0000)]
Fix a warning by pulling prototype for arp_ifinit() into scope.
Then fix cast the correct value into an incorrect value, which was not
detected due to the missing prototype (but was harmless anyway).

22 years agoFix warning; amdsmb_abort() is not used.
Peter Wemm [Tue, 26 Feb 2002 01:04:58 +0000 (01:04 +0000)]
Fix warning; amdsmb_abort() is not used.

22 years agoFix warning. s/microuptime()/binuptime()/ for switchtime initial value.
Peter Wemm [Tue, 26 Feb 2002 01:03:39 +0000 (01:03 +0000)]
Fix warning. s/microuptime()/binuptime()/ for switchtime initial value.

22 years agoRemove unused variable (td)
Peter Wemm [Tue, 26 Feb 2002 01:01:37 +0000 (01:01 +0000)]
Remove unused variable (td)