]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoThe name of small boot floppy should be boot-small.flp to avoid conflicting
Yoshihiro Takahashi [Thu, 29 Jan 2004 15:14:59 +0000 (15:14 +0000)]
The name of small boot floppy should be boot-small.flp to avoid conflicting
normal size floppy.

Reviewed by: jhb

20 years agoStyle(9) option sorting
Guido van Rooij [Thu, 29 Jan 2004 15:14:03 +0000 (15:14 +0000)]
Style(9) option sorting

Submitted by: Ruslan Ermilov <ru@FreeBSD.org>

20 years agoCleanups/cosmetics.
Søren Schmidt [Thu, 29 Jan 2004 15:03:01 +0000 (15:03 +0000)]
Cleanups/cosmetics.

20 years agoFix pathname so 'make tags' in a kernel build directory looks in
Ken Smith [Thu, 29 Jan 2004 14:58:22 +0000 (14:58 +0000)]
Fix pathname so 'make tags' in a kernel build directory looks in
the right place for the $MACHINE/include directory.

Approved by: rwatson (mentor)

20 years agoFix manpage and usage() to reflect that -a can be used in combination
Guido van Rooij [Thu, 29 Jan 2004 14:42:26 +0000 (14:42 +0000)]
Fix manpage and usage() to reflect that -a can be used in combination
with -o

Submitted by: Ruslan Ermilov <ru@FreeBSD.org>
Pointed out by: Ceri Davies <ceri@submonkey.net

20 years agoRemoved duplicate $FreeBSD$ tag.
Ruslan Ermilov [Thu, 29 Jan 2004 14:36:16 +0000 (14:36 +0000)]
Removed duplicate $FreeBSD$ tag.

20 years agoAdd dependency to snd_via8233
Michael Reifenberger [Thu, 29 Jan 2004 14:11:03 +0000 (14:11 +0000)]
Add dependency to snd_via8233

20 years agoUnbreak -o fstab and -o current in combination with -a
Guido van Rooij [Thu, 29 Jan 2004 13:16:51 +0000 (13:16 +0000)]
Unbreak -o fstab and -o current in combination with -a

MFC after: 2 weeks

20 years agoFixed breakage of scheduling in rev.1.29 of subr_4bsd.c. The
Bruce Evans [Thu, 29 Jan 2004 12:35:11 +0000 (12:35 +0000)]
Fixed breakage of scheduling in rev.1.29 of subr_4bsd.c.  The
"scheduler" here has very little to do with scheduling.  It is actually
the swapper, and it really must be the last SYSINIT'ed item like its
comment says, since proc0 metamorphoses into swapper by calling
scheduler() last in mi_start(), and scheduler() never returns..  Rev.1.29
of subr_4bsd.c broke this by adding another SI_ORDER_FIRST item
(kproc_start() for schedcpu_thread() onto the SI_SUB_RUN_SCHEDULER_LIST.
The sorting of SYSINITs with identical orders (at all levels) is
apparently nondeterministic, so this resulted in schedule() sometimes
being called second last and schedcpu_thread() not being called at all.

This quick fix just changes the code to almost match the comment
(SI_ORDER_FIRST -> SI_ORDER_ANY).  "LAST" is misspelled "ANY", and
there is no way to ensure that there is only 1 very lst SYSINIT.
A more complete fix would remove the SYSINIT obfuscation.

20 years agoI update the rwlock code in libthr to be more standards compliant and
Mike Makonnen [Thu, 29 Jan 2004 12:03:17 +0000 (12:03 +0000)]
I update the rwlock code in libthr to be more standards compliant and
what do I get for my troubles? libc breaks offcourse!

Reimplement a hack (in libthr) that allows libc to use
rwlocks without initializing them first. The hack was reimplemented
so that only a private libc version of the rwlock locking functions
initializes an uninitialized rwlock. The application version will
correctly fail.

20 years agoWhen suspending a thread if the timeout was very short or
Mike Makonnen [Thu, 29 Jan 2004 09:44:36 +0000 (09:44 +0000)]
When suspending a thread if the timeout was very short or
the system call got interrupted and the absolute timeout is
converted to a relative timeout, it may happen that we get a
negative number. In such a case, simply set the timeout to
zero so that if the event that the thread wants to wait for has
happened it can still return successfully, but if it hasn't
happened then the thread doesn't suspend indefinitely. This should
fix certain applications (including mozilla) that seem to hang
indefinitely sometimes.

Noticed and debugged by: Morten Johansen <root@morten-johansen.net>

20 years agoAdd reference to environ(7)
Andrey A. Chernov [Thu, 29 Jan 2004 09:27:24 +0000 (09:27 +0000)]
Add reference to environ(7)

20 years agoFix a bug where we never managed to include the sense data we wanted to send.
Matt Jacob [Thu, 29 Jan 2004 06:36:30 +0000 (06:36 +0000)]
Fix a bug where we never managed to include the sense data we wanted to send.

20 years agoGo back to using AUTHMODE_AUTO if WEP is on. In some cases, the Centrino
Bill Paul [Thu, 29 Jan 2004 03:16:58 +0000 (03:16 +0000)]
Go back to using AUTHMODE_AUTO if WEP is on. In some cases, the Centrino
won't associate in BSS mode if you use AUTHMODE_SHARED. I probably don't
understand enough to know when SHARED should be used vs. OPEN or WPA.
For now, go back to what works.

20 years agoFix longstanding buglet- for centrally handled CTIO2s we were checking the wrong
Matt Jacob [Thu, 29 Jan 2004 02:40:43 +0000 (02:40 +0000)]
Fix longstanding buglet- for centrally handled CTIO2s we were checking the wrong
bit for this being the  last CTIO2.  It didn't matter since it really was the
last CTIO2 and the resources recycled, but still....

Add in CTIO3 define for future DAC work.

20 years agoAssert process lock in ptracestop(), since we're going to rely
Robert Watson [Thu, 29 Jan 2004 00:58:21 +0000 (00:58 +0000)]
Assert process lock in ptracestop(), since we're going to rely
on it, and later unlock it.

20 years agoWhen UMA_MD_SMALL_ALLOC is defined, pmap_kextract will be called
Peter Grehan [Thu, 29 Jan 2004 00:45:41 +0000 (00:45 +0000)]
When UMA_MD_SMALL_ALLOC is defined, pmap_kextract will be called
for direct-mapped addresses. Assume that any address less than KVA
is one of these and return it. Also assert that an address is KVA
does have a valid mapping - callers of pmap_kextract don't check
the return value, since they assume that they have a valid virtual
address.

20 years agoImplement UMA_MD_SMALL_ALLOC, since the BAT registers allow direct
Peter Grehan [Thu, 29 Jan 2004 00:32:22 +0000 (00:32 +0000)]
Implement UMA_MD_SMALL_ALLOC, since the BAT registers allow direct
addressing of memory. Makes a substantial improvement for apps that
stress the limited amount of KVM on PPC (e.g. untarring the ports tree).

uma_machdep.c stolen from amd64/ia64.

20 years agoRe-add debug register support.
Peter Wemm [Thu, 29 Jan 2004 00:07:29 +0000 (00:07 +0000)]
Re-add debug register support.
Some other minor tweaks snuck in here, including supporting more
discontiguous memory segments and some cosmetic tweaks.

20 years agoRe-add user_dbreg_trap() for debug register support
Peter Wemm [Thu, 29 Jan 2004 00:05:03 +0000 (00:05 +0000)]
Re-add user_dbreg_trap() for debug register support

20 years agoTake another shot at the invariants calls to __panic. They hadn't been
Peter Wemm [Thu, 29 Jan 2004 00:02:54 +0000 (00:02 +0000)]
Take another shot at the invariants calls to __panic.  They hadn't been
updated for the regparm ABI on amd64.
Context switch debug regs.
Update for fpu simplification
Don't needlessly reload %cr3, in case the cpu has the tlb flush filter
turned off.  Re-add LAZY_SWITCH stubs.

20 years agodeal with dbregs for fork etc
Peter Wemm [Wed, 28 Jan 2004 23:58:55 +0000 (23:58 +0000)]
deal with dbregs for fork etc
update for fpu.c simplification
Merge #include sort from i386

20 years agoUn-stub the hardware debug register stuff.
Peter Wemm [Wed, 28 Jan 2004 23:57:40 +0000 (23:57 +0000)]
Un-stub the hardware debug register stuff.

20 years agoExport PCB_DR* symbols
Peter Wemm [Wed, 28 Jan 2004 23:57:02 +0000 (23:57 +0000)]
Export PCB_DR* symbols

20 years agoWe can simplify a lot of things now that we don't have to worry about
Peter Wemm [Wed, 28 Jan 2004 23:55:58 +0000 (23:55 +0000)]
We can simplify a lot of things now that we don't have to worry about
hardware bugs on external 386 cpus and now that we can depend on SSE.

20 years agoAdd dbreg struct definitions for /proc/*/dbregs and a place to store the
Peter Wemm [Wed, 28 Jan 2004 23:54:31 +0000 (23:54 +0000)]
Add dbreg struct definitions for /proc/*/dbregs and a place to store the
registers in the pcb

20 years agoRe-add debug register functions
Peter Wemm [Wed, 28 Jan 2004 23:53:04 +0000 (23:53 +0000)]
Re-add debug register functions

20 years agoMFi386: mp_topology().
Peter Wemm [Wed, 28 Jan 2004 23:51:16 +0000 (23:51 +0000)]
MFi386: mp_topology().

20 years agoMFi386: add THERMTRIP msr values
Peter Wemm [Wed, 28 Jan 2004 23:47:22 +0000 (23:47 +0000)]
MFi386: add THERMTRIP msr values

20 years agoDiff reduction with i386
Peter Wemm [Wed, 28 Jan 2004 23:46:48 +0000 (23:46 +0000)]
Diff reduction with i386

20 years agoRegen
Peter Wemm [Wed, 28 Jan 2004 23:45:48 +0000 (23:45 +0000)]
Regen

20 years agoAdd getitimer swab stub
Peter Wemm [Wed, 28 Jan 2004 23:45:37 +0000 (23:45 +0000)]
Add getitimer swab stub

20 years agoDocument NO_BLUETOOTH knob
Maksim Yevmenkin [Wed, 28 Jan 2004 22:46:39 +0000 (22:46 +0000)]
Document NO_BLUETOOTH knob

Reviewed by: imp (mentor), ru

20 years ago- Removed more bitrot (the "while" loops).
Ruslan Ermilov [Wed, 28 Jan 2004 22:44:17 +0000 (22:44 +0000)]
- Removed more bitrot (the "while" loops).
- Factored out common parts of dofs_vn() and dofs_md().

20 years agoAdd debug.mutex.prof.reset.
Robert Watson [Wed, 28 Jan 2004 22:21:04 +0000 (22:21 +0000)]
Add debug.mutex.prof.reset.

20 years agoAdd a reset sysctl for mutex profiling: zeros all of the mutex
Robert Watson [Wed, 28 Jan 2004 22:11:53 +0000 (22:11 +0000)]
Add a reset sysctl for mutex profiling: zeros all of the mutex
profiling buffers and hash table.  This makes it a lot easier to
do multiple profiling runs without rebooting or performing
gratuitous arithmetic.  Sysctl is named debug.mutex.prof.reset.

Reviewed by: jake

20 years agoFix for those lost interrupts on probe on lots of controller types.
Søren Schmidt [Wed, 28 Jan 2004 21:54:40 +0000 (21:54 +0000)]
Fix for those lost interrupts on probe on lots of controller types.

Note to self, just because an idea is good, it doesn't apply everywhere.

20 years ago- Catch up to new boot floppies targets.
John Baldwin [Wed, 28 Jan 2004 21:07:36 +0000 (21:07 +0000)]
- Catch up to new boot floppies targets.
- Update description of release.4 to mention KERNELS variable.
- Update field width for make release targets.

20 years agoMFi386: change an outb to a DELAY()
Peter Wemm [Wed, 28 Jan 2004 20:46:31 +0000 (20:46 +0000)]
MFi386: change an outb to a DELAY()

20 years agoMove the loadav() callout into its own kthread since it uses allproc_lock
John Baldwin [Wed, 28 Jan 2004 20:44:41 +0000 (20:44 +0000)]
Move the loadav() callout into its own kthread since it uses allproc_lock
which is a sleepable lock and thus is not safe to acquire from a callout
routine.

20 years agoOptimize the i386 interrupt entry code to not reload the segment registers
John Baldwin [Wed, 28 Jan 2004 20:44:08 +0000 (20:44 +0000)]
Optimize the i386 interrupt entry code to not reload the segment registers
if they already contain the correct kernel selectors.

Reviewed by: peter
Suggested by: peter

20 years agoRework witness_lock() to make it slightly more useful and flexible.
John Baldwin [Wed, 28 Jan 2004 20:39:57 +0000 (20:39 +0000)]
Rework witness_lock() to make it slightly more useful and flexible.
- witness_lock() is split into two pieces: witness_checkorder() and
  witness_lock().  Witness_checkorder() determines if acquiring a specified
  lock at the time it is called would result in a lock order.  It
  optionally adds a new lock order relationship as well.  witness_lock()
  updates witness's data structures to assume that a lock has been acquired
  by stick a new lock instance in the appropriate lock instance list.
- The mutex and sx lock functions now call checkorder() prior to trying to
  acquire a lock and continue to call witness_lock() after the acquire is
  completed.  This will let witness catch a deadlock before it happens
  rather than trying to do so after the threads have deadlocked (i.e. never
  actually report it).
- A new function witness_defineorder() has been added that adds a lock
  order between two locks at runtime without having to acquire the locks.
  If the lock order cannot be added it will return an error.  This function
  is available to programmers via the WITNESS_DEFINEORDER() macro which
  accepts either two mutexes or two sx locks as its arguments.
- A few simple wrapper macros were added to allow developers to call
  witness_checkorder() anywhere as a way of enforcing locking assertions
  in code that might acquire a certain lock in some situations.  The
  macros are: witness_check_{mutex,shared_sx,exclusive_sx} and take an
  appropriate lock as the sole argument.
- The code to remove a lock instance from a lock list in witness_unlock()
  was unnested by using a goto to vastly improve the readability of this
  function.

20 years agoUse the biotask functionality in GEOM to put finished requests on
Søren Schmidt [Wed, 28 Jan 2004 20:38:51 +0000 (20:38 +0000)]
Use the biotask functionality in GEOM to put finished requests on
instead of taskqueue_swi. This shaves from 1 to 10% of the overhead.

Overhaul the locking once more, there was a few possible races that
are now closed.

20 years agoUse mtx_assert() rather than using a home-rolled version.
John Baldwin [Wed, 28 Jan 2004 20:26:39 +0000 (20:26 +0000)]
Use mtx_assert() rather than using a home-rolled version.

20 years agoThis has been disconnected from the build since May 2003. GC it, as
David E. O'Brien [Wed, 28 Jan 2004 19:29:16 +0000 (19:29 +0000)]
This has been disconnected from the build since May 2003.  GC it, as
bsdlabel and sunlabel are what we use now.

20 years agoUse sys_nsig instead of the static NSIG. DragonflyBSD kill.c:1.3
Nate Lawson [Wed, 28 Jan 2004 19:04:14 +0000 (19:04 +0000)]
Use sys_nsig instead of the static NSIG.  DragonflyBSD kill.c:1.3

Obtained from: DragonflyBSD

20 years agoUse sys_nsig instead of NSIG for the length of the signal arrays. This
Nate Lawson [Wed, 28 Jan 2004 19:01:10 +0000 (19:01 +0000)]
Use sys_nsig instead of NSIG for the length of the signal arrays.  This
is important if we add new signals later.  From DragonflyBSD:
jobs.c:1.4, trap.c:1.3.

Obtained from: DragonflyBSD

20 years agoRemove the inadvertant HTML additions to this man page.
Wes Peters [Wed, 28 Jan 2004 18:51:24 +0000 (18:51 +0000)]
Remove the inadvertant HTML additions to this man page.
These appear to have been inserted in the PR text by gnatsweb.

Noticed by: des (maintainer)

20 years agoThe PR diff I committed recently had one bug noticed by
Martin Cracauer [Wed, 28 Jan 2004 18:22:19 +0000 (18:22 +0000)]
The PR diff I committed recently had one bug noticed by
Joe Marcus Clarke <marcus@FreeBSD.ORG>, subshells could lose a
non-zero exit status.

This commit is Joe's proposed patch.  Thanks!

I verified that the problem Joe found is fixed and I ran a full world
with this patch.

I don't plan to ever commit language patches to /bin/sh again.  It is
a minefield too big to navigate without a full-time committment, which
I am not willing to do on our /bin/sh.

Under normal circumstances I would recommend using NetBSD's sh which
has a lot of language fixes (like the ones what these patches were
about) but unfortunately they had implemented broken signal behaviour
for shellscript containing interactive programs.  Similar issues apply
to pdksh which is OpenBSD's sh.

From my perspective bash2 is the only really working bourne sh out
there and that one is GPLed.  Oh well.

20 years agoAlways build ext2fs module. There is no written policy preventing the
David E. O'Brien [Wed, 28 Jan 2004 17:20:08 +0000 (17:20 +0000)]
Always build ext2fs module.  There is no written policy preventing the
building of GPL'ed modules.

20 years agoAdd an exclusion list that lists all the files from the original
Hartmut Brandt [Wed, 28 Jan 2004 16:14:49 +0000 (16:14 +0000)]
Add an exclusion list that lists all the files from the original
distribution that we don't need.

20 years agoprotect access to ifnet structure with mutex.
Hajimu UMEMOTO [Wed, 28 Jan 2004 15:01:39 +0000 (15:01 +0000)]
protect access to ifnet structure with mutex.

20 years agoAdd gettext-old to the MINIMALDOCPORTS variable.
Yoshihiro Takahashi [Wed, 28 Jan 2004 14:51:38 +0000 (14:51 +0000)]
Add gettext-old to the MINIMALDOCPORTS variable.

20 years agoFix another typo.
Maxime Henrion [Wed, 28 Jan 2004 13:29:40 +0000 (13:29 +0000)]
Fix another typo.

20 years agoFix typo.
Maxime Henrion [Wed, 28 Jan 2004 13:28:45 +0000 (13:28 +0000)]
Fix typo.

20 years agoGC some old cruft.
Ruslan Ermilov [Wed, 28 Jan 2004 10:58:37 +0000 (10:58 +0000)]
GC some old cruft.

20 years agoPut slattach(8) onto the MFS root file system now that we always
Ruslan Ermilov [Wed, 28 Jan 2004 10:18:54 +0000 (10:18 +0000)]
Put slattach(8) onto the MFS root file system now that we always
use the GENERIC kernel for installs which has the sl(4) support.

20 years agoPut slattach(8), camcontrol(8), usbd(8), and usbdevs(8) onto the
Ruslan Ermilov [Wed, 28 Jan 2004 10:15:47 +0000 (10:15 +0000)]
Put slattach(8), camcontrol(8), usbd(8), and usbdevs(8) onto the
MFS root file system now that these architectures always use the
GENERIC kernel for installs.

20 years agoClean up after revision 1.55.
Ruslan Ermilov [Wed, 28 Jan 2004 09:38:40 +0000 (09:38 +0000)]
Clean up after revision 1.55.

20 years agoRevert revision 1.833 -- the reinstallkernel.debug target calls the
Ruslan Ermilov [Wed, 28 Jan 2004 09:19:16 +0000 (09:19 +0000)]
Revert revision 1.833 -- the reinstallkernel.debug target calls the
installkernel.debug target (in the kernel build directory) which is
only defined if the kernel was configured for debugging which it is
not the case for GENERIC kernels on release branches.

20 years agoOnly i386 and Alpha have the compat4x distribution.
Ruslan Ermilov [Wed, 28 Jan 2004 09:12:00 +0000 (09:12 +0000)]
Only i386 and Alpha have the compat4x distribution.

20 years agoBring back the geom_bioqueues, they _are_ a good idea.
Poul-Henning Kamp [Wed, 28 Jan 2004 08:39:18 +0000 (08:39 +0000)]
Bring back the geom_bioqueues, they _are_ a good idea.

ATA will uses these RSN.

20 years agoChange KASSERT() in feed_vchan16() into an explicit test and call to
Don Lewis [Wed, 28 Jan 2004 08:02:15 +0000 (08:02 +0000)]
Change KASSERT() in feed_vchan16() into an explicit test and call to
panic() so that the buffer overflow just beyond this point is always
caught, even when the code is not compiled with INVARIANTS.

Change chn_setblocksize() buffer reallocation code to attempt to avoid
the feed_vchan16() buffer overflow by attempting to always keep the
bufsoft buffer at least as large as the bufhard buffer.

Print a diagnositic message
Danger! %s bufsoft size increasing from %d to %d after CHANNEL_SETBLOCKSIZE()
if our best attempts fail.  If feed_vchan16() were to be called by
the interrupt handler while locks are dropped in chn_setblocksize()
to increase the size bufsoft to match the size of bufhard, the panic()
code in feed_vchan16() will be triggered.  If the diagnostic message
is printed, it is a warning that a panic is possible if the system
were to see events in an "unlucky" order.

Change the locking code to avoid the need for MTX_RECURSIVE mutexes.

Add the MTX_DUPOK option to the channel mutexes and change the locking
sequence to always lock the parent channel before its children to avoid
the possibility of deadlock.

Actually implement locking assertions for the channel mutexes and fix
the problems found by the resulting assertion violations.

Clean up the locking code in dsp_ioctl().

Allocate the channel buffers using the malloc() M_WAITOK option instead
of M_NOWAIT so that buffer allocation won't fail.  Drop locks across
the malloc() calls.

Add/modify KASSERTS() in attempt to detect problems early.

Abuse layering by adding a pointer to the snd_dbuf structure that points
back to the pcm_channel that owns it.  This allows sndbuf_resize() to do
proper locking without having to change the its API, which is used by
the hardware drivers.

Don't dereference a NULL pointer when setting hw.snd.maxautovchans
if a hardware driver is not loaded.  Noticed by Ryan Sommers
<ryans at gamersimpact.com>.

Tested by: Stefan Ehmann <shoesoft AT gmx.net>
Tested by: matk (Mathew Kanner)
Tested by: Gordon Bergling <gbergling AT 0xfce3.net>

20 years agoAdd an ACPI_FUNCTION_TRACE() to the newly-added acpi_Startup() routine
Peter Pentchev [Wed, 28 Jan 2004 07:48:03 +0000 (07:48 +0000)]
Add an ACPI_FUNCTION_TRACE() to the newly-added acpi_Startup() routine
to get the ACPI_DEBUG case (and LINT in particular) to build.

Reviewed by: jhb, njl
Approved by: jhb

20 years agoIf not in the debugger or if the user requests it with the
Nate Lawson [Wed, 28 Jan 2004 06:51:18 +0000 (06:51 +0000)]
If not in the debugger or if the user requests it with the
debug.ddb_use_printf sysctl, output kernel debugger data to both the
console and kernel message buffer via printf.  This fixes the case where
backtrace() went directly to the console and should help debugging greatly.
Thanks to Ian Dowse for the work, minor edits or any bugs are by myself.

Submitted by: iedowse

20 years agoRemove process lock XXX's, fixed in src/sys/sys/proc.h:1.366.
Robert Watson [Wed, 28 Jan 2004 06:48:31 +0000 (06:48 +0000)]
Remove process lock XXX's, fixed in src/sys/sys/proc.h:1.366.

20 years agoMove the part of the comment which applies to osigsuspend where
Alexander Kabaev [Wed, 28 Jan 2004 06:06:04 +0000 (06:06 +0000)]
Move the part of the comment which applies to osigsuspend where
it belongs. The current sigsuspend syscall does expect a pointer
to the mask as argument.

Submitted by: Igor Sysoev <is at rambler-co dot ru>

20 years agoMerge from NetBSD rev. 1.2 (drochner): Do the address calculations inside
Tim J. Robbins [Wed, 28 Jan 2004 05:55:13 +0000 (05:55 +0000)]
Merge from NetBSD rev. 1.2 (drochner): Do the address calculations inside
the data delivered by SIOCGIFCONF correctly (this isn't a plain array!),
and sort the checks a bit to avoid duplicates in the interface list.

20 years agoAlways build ext2fs module. There is no written policy preventing the
David E. O'Brien [Wed, 28 Jan 2004 04:16:13 +0000 (04:16 +0000)]
Always build ext2fs module.  There is no written policy preventing the
building of GPL'ed modules.

20 years agoMFi386: revision 1.33
Yoshihiro Takahashi [Wed, 28 Jan 2004 04:15:31 +0000 (04:15 +0000)]
MFi386: revision 1.33

PR: kern/62005

20 years agoEnable ndis for AMD64 (for the time that modules are supported)...
David E. O'Brien [Wed, 28 Jan 2004 04:15:10 +0000 (04:15 +0000)]
Enable ndis for AMD64 (for the time that modules are supported)...

20 years agoFix an uninitialized variable bug that caused write_pmbr() to bogusly
Marcel Moolenaar [Wed, 28 Jan 2004 03:38:25 +0000 (03:38 +0000)]
Fix an uninitialized variable bug that caused write_pmbr() to bogusly
return an error value that made Write_Disk() abort.  While on the
subject, improve the initialization of the error variable in read_gpt()
and update_gpt() even though nothing was broken there.

20 years agoAdd NO_BLUETOOTH knob to the build process
Maksim Yevmenkin [Wed, 28 Jan 2004 00:42:51 +0000 (00:42 +0000)]
Add NO_BLUETOOTH knob to the build process

Requested by: phk
Reviewed by: imp (mentor), ru

20 years agoIncrement WARNS.
Ruslan Ermilov [Wed, 28 Jan 2004 00:11:42 +0000 (00:11 +0000)]
Increment WARNS.

20 years agoThe report size is not a local item, so don't clear it when clearing local items.
Maksim Yevmenkin [Wed, 28 Jan 2004 00:05:22 +0000 (00:05 +0000)]
The report size is not a local item, so don't clear it when clearing local items.

PR: misc/58971
Reviewed by: imp (mentor), mdodd
Obtained from: NetBSD

20 years agoRemove trailing white space.
Greg Lehey [Wed, 28 Jan 2004 00:02:10 +0000 (00:02 +0000)]
Remove trailing white space.
Sort SEE ALSO by section number first, not alphabetically.
Remove period at end SEE ALSO to make it look less like a sentence.

Submitted by: ru

20 years agoFixed bogus ${FOO:Mbar} tests where the actual intent is to check
Ruslan Ermilov [Tue, 27 Jan 2004 23:22:15 +0000 (23:22 +0000)]
Fixed bogus ${FOO:Mbar} tests where the actual intent is to check
if the result set is empty.  While here, replaced non-bogus empty
string comparisons with equivalent empty() checks.

20 years agoCorrect the descriptions of the net.inet.{udp,raw}.recvspace sysctls.
Ruslan Ermilov [Tue, 27 Jan 2004 22:17:39 +0000 (22:17 +0000)]
Correct the descriptions of the net.inet.{udp,raw}.recvspace sysctls.

20 years agoSync with Oxford Dictionary. Style (add missing full stops) while I'm here.
Jens Schweikhardt [Tue, 27 Jan 2004 22:15:03 +0000 (22:15 +0000)]
Sync with Oxford Dictionary. Style (add missing full stops) while I'm here.

20 years agoCorrect the description of the net.graph.recvspace sysctl.
Ruslan Ermilov [Tue, 27 Jan 2004 22:02:01 +0000 (22:02 +0000)]
Correct the description of the net.graph.recvspace sysctl.

20 years agoGet rid of all (but one in write.c) static size buffers.
Ruslan Ermilov [Tue, 27 Jan 2004 21:52:52 +0000 (21:52 +0000)]
Get rid of all (but one in write.c) static size buffers.

20 years ago- Added three new interfaces, NgAllocRecvMsg(), NgAllocRecvAsciiMsg(),
Ruslan Ermilov [Tue, 27 Jan 2004 20:25:14 +0000 (20:25 +0000)]
- Added three new interfaces, NgAllocRecvMsg(), NgAllocRecvAsciiMsg(),
  and NgAllocRecvData(), that dynamically allocate buffer for a binary
  message, an ascii message, and a data packet, respectively.  The size
  of the allocated buffer is equal to the socket's receive buffer size
  to guarantee that a message or a data packet is not truncated.

- Get rid of the static size buffer in NgSendAsciiMsg().

OK'ed by: archie, julian

20 years agoSort PFIL_HOOKS.
Marcel Moolenaar [Tue, 27 Jan 2004 20:22:53 +0000 (20:22 +0000)]
Sort PFIL_HOOKS.

20 years agoAllow the use of a stale p_stops value in STOPEVENT(), grabbing
Robert Watson [Tue, 27 Jan 2004 20:21:07 +0000 (20:21 +0000)]
Allow the use of a stale p_stops value in STOPEVENT(), grabbing
the proc lock only if we actually need to perform a stop.  This
avoids two locks and unlocks of the process lock each system call,
and wins me about 20% on a simply system call test (getuid(),
which would otherwise require no locking).  This also has a net
improvement of about 10MB/s on some of the SMP bandwidth tests
I'm running.

Reviewed by: jhb

20 years agoforced commit; the issue that was fixed in the previous commit was
Dag-Erling Smørgrav [Tue, 27 Jan 2004 19:49:19 +0000 (19:49 +0000)]
forced commit; the issue that was fixed in the previous commit was

Pointed out by: Logan Gabriel <gersh@tabby.sonn.com>

20 years agoCleanup malloc() use in if_attach():
Brooks Davis [Tue, 27 Jan 2004 19:35:05 +0000 (19:35 +0000)]
Cleanup malloc() use in if_attach():
 - malloc() returns a void* and does not need a cast
 - when called with M_WAITOK, malloc() can not return NULL so don't
   check for that case.  The result of the check was bogus anyway since
   it would leave the interface broken.

20 years agoStyle nit in previous commit.
Dag-Erling Smørgrav [Tue, 27 Jan 2004 19:28:13 +0000 (19:28 +0000)]
Style nit in previous commit.

20 years agomdoc(7) cleanup.
Ruslan Ermilov [Tue, 27 Jan 2004 19:24:53 +0000 (19:24 +0000)]
mdoc(7) cleanup.

20 years agoFix a reentrancy issue in md5_calc().
Dag-Erling Smørgrav [Tue, 27 Jan 2004 18:57:21 +0000 (18:57 +0000)]
Fix a reentrancy issue in md5_calc().

20 years agoFixed memory leak in NgSendAsciiMsg().
Ruslan Ermilov [Tue, 27 Jan 2004 18:38:22 +0000 (18:38 +0000)]
Fixed memory leak in NgSendAsciiMsg().

20 years agoPreserve acls option on mounts when taking a snapshot.
Kirk McKusick [Tue, 27 Jan 2004 18:28:11 +0000 (18:28 +0000)]
Preserve acls option on mounts when taking a snapshot.

Submitted by: Wiktor Niesiobedzki <freebsd-lists@w.evip.pl>

20 years agoRemove only X[0-9]-lock.
Nate Lawson [Tue, 27 Jan 2004 18:19:32 +0000 (18:19 +0000)]
Remove only X[0-9]-lock.

20 years agoBack out part of 1.21, since it breaks `script interactive-program`. This
Colin Percival [Tue, 27 Jan 2004 17:50:47 +0000 (17:50 +0000)]
Back out part of 1.21, since it breaks `script interactive-program`.  This
re-breaks non-interactive portupgrade (or at least old versions of
portupgrade); I'll see if I can put together a solution which avoids
breaking anything later.

Approved by: rwatson (mentor)
Noticed by: Stefan Farfeleder, Joshua Goodall

20 years agoo add missing break
Sam Leffler [Tue, 27 Jan 2004 17:45:28 +0000 (17:45 +0000)]
o add missing break
o remove extraneous bzero
o add SYSINIT to properly initialize ip4_def_policy

Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>
Submitted by: gnn@neville-neil.com

20 years agochange SYSINIT starting point to be consistent with other modules
Sam Leffler [Tue, 27 Jan 2004 17:43:49 +0000 (17:43 +0000)]
change SYSINIT starting point to be consistent with other modules

20 years agoadd spdcachelookup and spdcachemiss to our version of struct ipsecstat so
Sam Leffler [Tue, 27 Jan 2004 17:42:57 +0000 (17:42 +0000)]
add spdcachelookup and spdcachemiss to our version of struct ipsecstat so
netstat works properly

Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>

20 years agoFix the example back the way it was. Fix the commentary to say it
Warner Losh [Tue, 27 Jan 2004 16:16:31 +0000 (16:16 +0000)]
Fix the example back the way it was.  Fix the commentary to say it
allocates a 32 byte range of ioports.

20 years agoRename the kern.vm.kmem.size tunable to the more logical vm.kmem_size. To
Dag-Erling Smørgrav [Tue, 27 Jan 2004 15:59:38 +0000 (15:59 +0000)]
Rename the kern.vm.kmem.size tunable to the more logical vm.kmem_size.  To
assure backward compatibility (conditional on !BURN_BRIDGES), look it up
by its old name first, and log a warning (but accept the setting) if it
was found.  If both the old and new name are defined, the new name takes
precedence.

Also export vm.kmem_size as a read-only sysctl variable; I find it hard to
tune a parameter when I don't know its default value, especially when that
default value is computed at boot time.

20 years agoWhile USB keyboards attach as ukbd[0-9]+, the device node created by
Dag-Erling Smørgrav [Tue, 27 Jan 2004 15:40:30 +0000 (15:40 +0000)]
While USB keyboards attach as ukbd[0-9]+, the device node created by
kbd_attach() is called kbd[0-9]+, with a different unit number.  This
makes it impossible to write a devd rule which will automatically
switch to a USB keyboard when one is attached, because there is no way
to guess the correct device node to pass to kbdcontrol.

Therefore, change kbd_attach() to create a device node using the
keyboard device's real name (atkbd0, ukbd0...), and create the
kbd[0-9]+ node as an alias for backward compatibility.

20 years agoThe ataraid device is not needed for pc98.
Yoshihiro Takahashi [Tue, 27 Jan 2004 15:39:32 +0000 (15:39 +0000)]
The ataraid device is not needed for pc98.