]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoDo not attempt to reque a thread on a mutex queue. It may be that
mtm [Tue, 1 Jul 2003 15:52:09 +0000 (15:52 +0000)]
Do not attempt to reque a thread on a mutex queue. It may be that
a thread receives a spurious wakeup from sigtimedwait(), so make sure
that the call to the queueing code is called only once before entering
the loop (not in the loop). This should fix some fatal errors people
are seeing with messages stating the thread is already on the mutex queue.
These errors may still be triggered from signal handlers; however, since
that part of the code is not locked down yet.

21 years agoMega busdma API commit.
scottl [Tue, 1 Jul 2003 15:52:06 +0000 (15:52 +0000)]
Mega busdma API commit.

Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg.
Lockfunc allows a driver to provide a function for managing its locking
semantics while using busdma.  At the moment, this is used for the
asynchronous busdma_swi and callback mechanism.  Two lockfunc implementations
are provided: busdma_lock_mutex() performs standard mutex operations on the
mutex that is specified from lockfuncarg.  dftl_lock() is a panic
implementation and is defaulted to when NULL, NULL are passed to
bus_dma_tag_create().  The only time that NULL, NULL should ever be used is
when the driver ensures that bus_dmamap_load() will not be deferred.
Drivers that do not provide their own locking can pass
busdma_lock_mutex,&Giant args in order to preserve the former behaviour.

sparc64 and powerpc do not provide real busdma_swi functions, so this is
largely a noop on those platforms.  The busdma_swi on is64 is not properly
locked yet, so warnings will be emitted on this platform when busdma
callback deferrals happen.

If anyone gets panics or warnings from dflt_lock() being called, please
let me know right away.

Reviewed by: tmm, gibbs

21 years agoUnbreak "make checkdpadd".
ru [Tue, 1 Jul 2003 15:37:35 +0000 (15:37 +0000)]
Unbreak "make checkdpadd".

21 years agoImprove expression evaluation debugging output, tidy up the handling of
fanf [Tue, 1 Jul 2003 15:30:43 +0000 (15:30 +0000)]
Improve expression evaluation debugging output, tidy up the handling of
EOF, and improve the commentary about backslash-newline handling.

21 years agoo strmode(3) returns void not 0.
maxim [Tue, 1 Jul 2003 15:28:05 +0000 (15:28 +0000)]
o strmode(3) returns void not 0.

PR: docs/53488
Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
MFC after: 1 week

21 years agoThere's no reason to keep separate AINC knob anymore.
ru [Tue, 1 Jul 2003 15:15:45 +0000 (15:15 +0000)]
There's no reason to keep separate AINC knob anymore.
The only real use of it (lib/libc/Makefile) has been
fixed, and if necessary, the contents of AINC should
be added to CFLAGS.

Explained by: bde

21 years agoAdd a commented-out entry for OFW_NEWPCI to GENERIC and NOTES, along
tmm [Tue, 1 Jul 2003 15:13:07 +0000 (15:13 +0000)]
Add a commented-out entry for OFW_NEWPCI to GENERIC and NOTES, along
with a comment describing it's advantages and the implication of
changing it. While being there, fix a typo in NOTES.

The option is not enabled in NOTES for now since large portions of code
are conditional on it being disabled, too.

21 years agoAxe AINC.
ru [Tue, 1 Jul 2003 15:07:01 +0000 (15:07 +0000)]
Axe AINC.

Submitted by: bde

21 years agoAdd the new sparc64 OFW PCI framework, conditional on options OFW_NEWPCI
tmm [Tue, 1 Jul 2003 14:52:47 +0000 (14:52 +0000)]
Add the new sparc64 OFW PCI framework, conditional on options OFW_NEWPCI
for now. It introduces a OFW PCI bus driver and a generic OFW PCI-PCI
bridge driver. By utilizing these, the PCI handling is much more elegant
now.

The advantages of the new approach are:
- Device enumeration should hopefully be more like on Solaris now,
  so unit numbers should match what's printed on the box more
  closely.
- Real interrupt routing is implemented now, so cardbus bridges
  etc. have at least a chance to work.
- The quirk tables are gone and have been replaced by (hopefully
  sufficient) heuristics.
- Much cleaner code.

There was also a report that previously bogus interrupt assignments
are fixed now, which can be attributed to the new heuristics.

A pitfall, and the reason why this is not the default yet, is that
it changes device enumeration, as mentioned above, which can make
it necessary to change the system configuration if more than one
unit of a device type is present (on a system with two hme cars,
for example, it is possible that hme0 becomes hme1 and vice versa
after enabling the option). Systems with multiple disk controllers
may need to be booted into single user (and require manual specification
of the root file system on boot) to adjust the fstab.
Nevertheless, I would like to encourage users to use this option,
so that it can be made the default soon.

In detail, the changes are:
- Introduce an OFW PCI bus driver; it inherits most methods from the
  generic PCI bus driver, but uses the firmware for enumeration,
  performs additional initialization for devices and firmware-specific
  interrupt routing. It also implements an OFW-specific method to allow
  child devices to get their firmware nodes.
- Introduce an OFW PCI-PCI bridge driver; again, it inherits most
  of the generic PCI-PCI bridge driver; it has it's own method for
  interrupt routing, as well as some sparc64-specific methods (one to
  get the node again, and one to adjust the bridge bus range, since
  we need to reenumerate all PCI buses).
- Convert the apb driver to the new way of handling things.
- Provide a common framework for OFW bridge drivers, used be the two
  drivers above.
- Provide a small common framework for interrupt routing (for all
  bridge types).
- Convert the psycho driver to the new framework; this gets rid of a
  bunch of old kludges in pci_read_config(), and the whole
  preinitialization  (ofw_pci_init()).
- Convert the ISA MD part and the EBus driver to the new way
  interrupts and nodes are handled.
- Introduce types for firmware interrupt properties.
- Rename the old sparcbus_if to ofw_pci_if by repo copy (it is only
  required for PCI), and move it to a more correct location (new
  support methodsx were also added, and an old one was deprecated).
- Fix a bunch of minor bugs, perform some cleanups.

In some cases, I introduced some minor code duplication to keep the
new code clean, in hopes that the old code will be unifdef'ed soon.

Reviewed in part by: imp
Tested by: jake, Marius Strobl <marius@alchemy.franken.de>,
Sergey Mokryshev <mokr@mokr.net>,
Chris Jackman <cjackNOSPAM@klatsch.org>
Info on u30 firmware provided by: kris

21 years agoFixed build.
ru [Tue, 1 Jul 2003 14:46:26 +0000 (14:46 +0000)]
Fixed build.

Noticed by: bde

21 years agoAdd PnP PS/2 id for Dell Latitude X200.
mikeh [Tue, 1 Jul 2003 14:41:16 +0000 (14:41 +0000)]
Add PnP PS/2 id for Dell Latitude X200.

PR: 48516
MFC after: 2 weeks

21 years agoSome gem and hme hardware bogusly has the intpin register hardwired to
tmm [Tue, 1 Jul 2003 14:11:04 +0000 (14:11 +0000)]
Some gem and hme hardware bogusly has the intpin register hardwired to
0; detect this case and correct it. While being there, clean up nearby
comments.

21 years agoAdd a new PCI interface method, assign_interrupt, to determine the
tmm [Tue, 1 Jul 2003 14:08:33 +0000 (14:08 +0000)]
Add a new PCI interface method, assign_interrupt, to determine the
interrupt to be used for a device. This is intended solely for internal
use of PCI bus implementations, and exists so that PCI bus drivers
implementing special interrupt assignment methods which require
additional work at the bus level to work right can be easily derived
from the generic driver (or any other one) without resorting to hacks.

It will be used in the sparc64 ofw_pcibus driver, which will be
committed shortly.

Make use of this method in the generic implementation, and add it to
the method table of bus drivers derived from the PCI one.

Reviewed by: imp, -hackers

21 years agoDon't build separate annotate.info, it's already part of gdb.info.
ru [Tue, 1 Jul 2003 14:04:08 +0000 (14:04 +0000)]
Don't build separate annotate.info, it's already part of gdb.info.

21 years agoAllow to write the intpin ivar using the pci_set_intpin() accessor. There
tmm [Tue, 1 Jul 2003 13:54:10 +0000 (13:54 +0000)]
Allow to write the intpin ivar using the pci_set_intpin() accessor. There
are some Sun PCI devices around which bogusly set intpin to 0, although
they use the intline mechanism; this allows the device driver to correct
that.

Reviewed by: imp

21 years agoPut rescue/ into a correct slot in the SUBDIR list. Sort bootstrap-,
ru [Tue, 1 Jul 2003 12:57:53 +0000 (12:57 +0000)]
Put rescue/ into a correct slot in the SUBDIR list.  Sort bootstrap-,
build-, and cross-tools lists, reformat lists for easier maintenance.

Submitted by: bde, ru

21 years agoFixed some style bugs.
bde [Tue, 1 Jul 2003 12:30:03 +0000 (12:30 +0000)]
Fixed some style bugs.

21 years agoOnly bootstrap crunchide(1) and build crunchgen(1) when necessary.
ru [Tue, 1 Jul 2003 12:25:11 +0000 (12:25 +0000)]
Only bootstrap crunchide(1) and build crunchgen(1) when necessary.
The latter needs to be built either if it's used as a cross-tool
(${TARGET_ARCH} != ${MACHINE_ARCH}) or if it has backward compat
issues, like e.g. lack of the AMD64 support.

21 years agoRegen.
joe [Tue, 1 Jul 2003 12:17:18 +0000 (12:17 +0000)]
Regen.

21 years agoUSB scanner support for Mustek BearPaw scanner.
joe [Tue, 1 Jul 2003 12:16:46 +0000 (12:16 +0000)]
USB scanner support for Mustek BearPaw scanner.

Submitted by: netchild

21 years agoFixed namespace pollution and unsorting of the 1003.1-1990 list in
bde [Tue, 1 Jul 2003 12:09:06 +0000 (12:09 +0000)]
Fixed namespace pollution and unsorting of the 1003.1-1990 list in
previous commit.

21 years agoFix tsleep/wakup race on FreeBSD-4.
simokawa [Tue, 1 Jul 2003 12:03:54 +0000 (12:03 +0000)]
Fix tsleep/wakup race on FreeBSD-4.

21 years agoAdd the British hundredweight (brhundredweight). For discussion, see:
tom [Tue, 1 Jul 2003 10:33:27 +0000 (10:33 +0000)]
Add the British hundredweight (brhundredweight).  For discussion, see:
http://london.pm.org/pipermail/london.pm/Week-of-Mon-20030630/019926.html
For a definition, see:
http://www.bartleby.com/61/55/H0325500.html

Also add some more computing terms described at:
http://www.wikipedia.org/wiki/Integral_data_type

Reviewed by: dwmalone
MFC after: 2 weeks

21 years agoDon't segfault if setproctitle(3) is called with NULL initially.
alfred [Tue, 1 Jul 2003 09:45:35 +0000 (09:45 +0000)]
Don't segfault if setproctitle(3) is called with NULL initially.
The old buffer was not being initialized and a later str*() op on
it would cause a crash if it wasn't initialized by a previous
call to setproctitle(3) with an actual string.

Noticed by: Ashley Penney <ashp@unloved.org>

21 years agoRegen.
joe [Tue, 1 Jul 2003 08:46:55 +0000 (08:46 +0000)]
Regen.

21 years agoSupport the Epson GT-9300UF usb scanner.
joe [Tue, 1 Jul 2003 08:46:01 +0000 (08:46 +0000)]
Support the Epson GT-9300UF usb scanner.

PR: kern/53929

21 years agofree_drive: Free the drive even if it's referenced. I don't know what
grog [Tue, 1 Jul 2003 07:53:54 +0000 (07:53 +0000)]
free_drive: Free the drive even if it's referenced.  I don't know what
I was smoking when I wrote this stuff, but another fix resulted in
every partition in the system being entered as a "referenced" drive.

21 years agoModify vm_page_alloc() and vm_page_select_cache() to allow the page that
alc [Tue, 1 Jul 2003 07:33:41 +0000 (07:33 +0000)]
Modify vm_page_alloc() and vm_page_select_cache() to allow the page that
is returned by vm_page_select_cache() to belong to the object that is
already locked by the caller to vm_page_alloc().

21 years agoCheck the address provided to vm_map_stack() against the vm map's maximum,
alc [Tue, 1 Jul 2003 03:57:25 +0000 (03:57 +0000)]
Check the address provided to vm_map_stack() against the vm map's maximum,
returning an error if the address is too high.

21 years agoAdd the beastie_disable variable which allows to turn the beastie
brueffer [Tue, 1 Jul 2003 01:03:32 +0000 (01:03 +0000)]
Add the beastie_disable variable which allows to turn the beastie
boot menu on and off.

Reviewed by: scottl

21 years agoSeparate the description of the flags for mount(2) and unmount(2)
iedowse [Mon, 30 Jun 2003 22:22:12 +0000 (22:22 +0000)]
Separate the description of the flags for mount(2) and unmount(2)
to clarify which system call accepts which arguments. Previously
the manual page gave the impression that calling unmount() with
flags of (MNT_FORCE | MNT_UPDATE | MNT_RDONLY) would downgrade a
read-write mount to read-only, which is clearly untrue; to do that,
these flags should be passed to mount() instead.

21 years agoHave mktemp(1) construct the temporary file name for us instead
mtm [Mon, 30 Jun 2003 22:06:26 +0000 (22:06 +0000)]
Have mktemp(1) construct the temporary file name for us instead
of providing a template manually.

Submitted by: Lars Eggert <larse@isi.edu>

21 years agoAllow diskless_remount files to contain path beginning with / which will
brooks [Mon, 30 Jun 2003 21:47:06 +0000 (21:47 +0000)]
Allow diskless_remount files to contain path beginning with / which will
be mounted relative to the NFS root mountpoint.

Reviewed by: dillon at backplane.com
MFC After: 3 days

21 years agoRemove mount_portalfs, it's just wrong in this context.
gordon [Mon, 30 Jun 2003 21:13:56 +0000 (21:13 +0000)]
Remove mount_portalfs, it's just wrong in this context.

21 years agomove maxsegsz down a bit so that the arg definition order matches the
jmg [Mon, 30 Jun 2003 20:20:51 +0000 (20:20 +0000)]
move maxsegsz down a bit so that the arg definition order matches the
calling order.

21 years agoPropagate the ${AINC} knob (assembler include) to sys.mk,
ru [Mon, 30 Jun 2003 20:02:46 +0000 (20:02 +0000)]
Propagate the ${AINC} knob (assembler include) to sys.mk,
and remove the .S.o transformation rule from bsd.lib.mk.

21 years agoRemoved suffix-transformation rules that are duplicates
ru [Mon, 30 Jun 2003 19:48:14 +0000 (19:48 +0000)]
Removed suffix-transformation rules that are duplicates
(or are subsets) of the corresponding rules in sys.mk.

21 years agoCatch up with bsd.lib.mk,v 1.143.
ru [Mon, 30 Jun 2003 19:11:20 +0000 (19:11 +0000)]
Catch up with bsd.lib.mk,v 1.143.

21 years agobsd.lib.mk,v 1.143 no longer uses ld(1) directly to strip
ru [Mon, 30 Jun 2003 19:08:49 +0000 (19:08 +0000)]
bsd.lib.mk,v 1.143 no longer uses ld(1) directly to strip
symbols from intermediate object files, so these hacks to
get AMD64 compile are no longer needed.

Tested on: sledge.FreeBSD.org

21 years agoThe use of ld(1) to strip compiler local and non-global
ru [Mon, 30 Jun 2003 19:03:56 +0000 (19:03 +0000)]
The use of ld(1) to strip compiler local and non-global
symbols from object files has bitrotted over the last
thirteen years, and it now does more harm than good.

An attempt to work around the problems caused by using
ld(1) for stripping was to pass LDFLAGS to the ld(1)
command, but this was not right either as ${LDFLAGS}
should, by design, be used with cc(1) and not ld(1).

One of the proposed solutions was to use the objcopy(1)
utility to do the strip work, and the other would be to
use strip(1), but Bruce Evans suggested not stripping
any symbols at all.  This works by leaving the grunt
work to the final strip(1) command (when installing the
binary).

Submitted by: bde

21 years agoDon't build mount_nwfs or mount_smbfs in rescue.
gordon [Mon, 30 Jun 2003 18:18:05 +0000 (18:18 +0000)]
Don't build mount_nwfs or mount_smbfs in rescue.
Build fdisk_pc98 on pc98 arch, not fdisk.
Don't alias disklabel on pc98, ia64.
Don't build fdisk on sparc64, alpha.

Pointed out by: tmm@
Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoRename a local variable in order to avoid collision with standard 'log'
kan [Mon, 30 Jun 2003 17:05:40 +0000 (17:05 +0000)]
Rename a local variable in order to avoid collision with standard 'log'
function.

21 years agoProperly use ld.so.conf and ld-elf.so.conf as discussed in the manual page.
trhodes [Mon, 30 Jun 2003 15:02:05 +0000 (15:02 +0000)]
Properly use ld.so.conf and ld-elf.so.conf as discussed in the manual page.

PR: 25527
Submitted by: Alexey Neyman <alex.neyman@auriga.ru>
Reviewed by: jdp

21 years agoVarious fixes from upstream, including a bug...
fanf [Mon, 30 Jun 2003 14:46:25 +0000 (14:46 +0000)]
Various fixes from upstream, including a bug...

Fix the usage synopsis.

Amend the copyright notice to reflect the fact that there's no Berkeley
code left.

Fix a typo in a comment, improve the descriptions of the way we use
some global variables (relevant to the bug below), and note that
division-by-zero has side effects so the current expression evaluator
can't be trivially extended to arithmetic in its current design.

Avoid hitting an abort(); /* bug */ when in "text mode" (i.e.
ignoring comment state) by updating the line parser state properly.

PR: 53907

21 years agoSwitch to using bsd.prog.mk; this gives us back the standard
ru [Mon, 30 Jun 2003 14:10:58 +0000 (14:10 +0000)]
Switch to using bsd.prog.mk; this gives us back the standard
.s.o transformation rule.

21 years agoMFi386: revision 1.19.
ru [Mon, 30 Jun 2003 12:53:39 +0000 (12:53 +0000)]
MFi386: revision 1.19.

21 years agoCatchup with _thread_suspend() changes.
mtm [Mon, 30 Jun 2003 12:35:31 +0000 (12:35 +0000)]
Catchup with _thread_suspend() changes.

21 years agoo Fix identation.
maxim [Mon, 30 Jun 2003 11:51:21 +0000 (11:51 +0000)]
o Fix identation.

21 years agoo Support for '--' to cancel options list processing.
maxim [Mon, 30 Jun 2003 11:49:00 +0000 (11:49 +0000)]
o Support for '--' to cancel options list processing.

PR: bin/32433
Prodded by: Zak Johnson <zakj-freebsd-hackers@nox.cx>
Obtained from: easyedit-1.4.6
MFC after: 2 weeks

21 years agoFix typo.
davidxu [Mon, 30 Jun 2003 10:04:04 +0000 (10:04 +0000)]
Fix typo.

21 years agoInclude file clean up.
simokawa [Mon, 30 Jun 2003 06:33:18 +0000 (06:33 +0000)]
Include file clean up.

21 years agoBecause there are only _SIG_MAXSIG elements in thread siginfo array,
davidxu [Mon, 30 Jun 2003 06:16:50 +0000 (06:16 +0000)]
Because there are only _SIG_MAXSIG elements in thread siginfo array,
use [signal number - 1] as subscript to access the array.

21 years agopass -1 to setfile in cp.c
jmg [Mon, 30 Jun 2003 06:16:06 +0000 (06:16 +0000)]
pass -1 to setfile in cp.c

Submitted by: Jun Kuriyama

21 years agoDo the deed and hookup /rescue to the build. As a result, always build
gordon [Mon, 30 Jun 2003 05:59:35 +0000 (05:59 +0000)]
Do the deed and hookup /rescue to the build. As a result, always build
crunchgen and crunchide as cross-tools.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoRemove surplus unlocking code I accidentally checked in. This won't be
davidxu [Mon, 30 Jun 2003 05:49:06 +0000 (05:49 +0000)]
Remove surplus unlocking code I accidentally checked in. This won't be
triggered until LDT entry is exhausted.

21 years agonitpicking
sam [Mon, 30 Jun 2003 05:25:36 +0000 (05:25 +0000)]
nitpicking

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

21 years agoThis commit was generated by cvs2svn to compensate for changes in r117059,
mikeh [Mon, 30 Jun 2003 05:24:21 +0000 (05:24 +0000)]
This commit was generated by cvs2svn to compensate for changes in r117059,
which included commits to RCS files with non-trunk default branches.

21 years agoImport latest cvs version with the correct patchset (fixes ETA bug).
mikeh [Mon, 30 Jun 2003 05:24:21 +0000 (05:24 +0000)]
Import latest cvs version with the correct patchset (fixes ETA bug).

21 years agoconsolidate callback optimization check in one location by adding a flag
sam [Mon, 30 Jun 2003 05:09:32 +0000 (05:09 +0000)]
consolidate callback optimization check in one location by adding a flag
for crypto operations that indicates the crypto code should do the check
in crypto_done

MFC after: 1 day

21 years agoFix fdisk naming issues on pc98 and other platforms.
gordon [Mon, 30 Jun 2003 05:06:43 +0000 (05:06 +0000)]
Fix fdisk naming issues on pc98 and other platforms.
Fix disklabel, bsdlabel, and sunlabel on various platforms.

Noticed by: tmm@
Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agocorrect transfer statistics
sam [Mon, 30 Jun 2003 05:05:19 +0000 (05:05 +0000)]
correct transfer statistics

Submitted by: Larry Baird <lab@gta.com>
MFC after: 1 day

21 years agoacknowledge the contribution of Atsushi Onoe
sam [Mon, 30 Jun 2003 04:51:11 +0000 (04:51 +0000)]
acknowledge the contribution of Atsushi Onoe

21 years agoCorrect spelling of "TracyChapman".
mph [Mon, 30 Jun 2003 03:16:41 +0000 (03:16 +0000)]
Correct spelling of "TracyChapman".

21 years agoMFi386: revision 1.16.
ru [Mon, 30 Jun 2003 00:20:28 +0000 (00:20 +0000)]
MFi386: revision 1.16.

21 years agoRevision 1.13, besides its useful part, replaced bsd.prog.mk by
ru [Mon, 30 Jun 2003 00:15:38 +0000 (00:15 +0000)]
Revision 1.13, besides its useful part, replaced bsd.prog.mk by
bsd.lib.mk and thus broke the build since AFLAGS were not taken
into considered anymore, as bsd.lib.mk currently has wrong .s.o
rule that uses cc(1) instead of as(1).

Revision 1.14 reverted to using as(1), and revision 1.15 brought
AFLAGS back to the business, but revision 1.14 also broke "make
clean".

To fix this, but not break anything that was fixed in revisions
1.13-1.15, we revert mostly to revision 1.13 except for switching
back to using bsd.prog.mk.  This gives us back the default .s.o
rule from sys.mk that uses as(1), and fixes "make clean" by
restoring the full contents of OBJS.

Also fixed LDFLAGS.

21 years agoplug xform memory leaks:
sam [Sun, 29 Jun 2003 23:58:38 +0000 (23:58 +0000)]
plug xform memory leaks:

o add missing zeroize op when deleting an SA
o don't re-initialize an xform for an SA that already has one

Submitted by: Doug Ambrisko <ambrisko@verniernetworks.com>
MFC after: 1 day

21 years agoBack out .SU workaround - people at whois-servers.net set up
ache [Sun, 29 Jun 2003 23:56:31 +0000 (23:56 +0000)]
Back out .SU workaround - people at whois-servers.net set up
su.whois-servers.net

21 years agoSweep through pthread locking and use the new locking primitives for
mtm [Sun, 29 Jun 2003 23:51:04 +0000 (23:51 +0000)]
Sweep through pthread locking and use the new locking primitives for
libthr.

21 years agoLocking primitives and operations in libthr should use struct umtx,
mtm [Sun, 29 Jun 2003 23:49:41 +0000 (23:49 +0000)]
Locking primitives and operations in libthr should use struct umtx,
not spinlock_t. Spinlock_t and the associated functions and macros may
require blocking signals in order for async-safe libc functions to behave
appropriately in libthr. This is undesriable for libthr internal locking.
So, this is the first step in completely separating libthr from libc's
locking primitives.

Three new macros should be used for internal libthr locking from now on:
THR_LOCK, THR_TRYLOCK, THR_UNLOCK.

21 years agoIntroduce vm_map_pmap_enter(). Presently, this is a stub calling the MD
alc [Sun, 29 Jun 2003 23:32:55 +0000 (23:32 +0000)]
Introduce vm_map_pmap_enter().  Presently, this is a stub calling the MD
pmap_object_init_pt().

21 years agoIn a critical section, separate the aquisition of the thread lock
mtm [Sun, 29 Jun 2003 21:21:52 +0000 (21:21 +0000)]
In a critical section, separate the aquisition of the thread lock
and the disabling of signals. What we are really interested in is
keeping track of recursive disabling of signals. We should not
be recursively acquiring thread locks. Any such situations should
be reorganized to not require a recursive lock.

Separating the two out also allows us to block signals independent of
acquiring thread locks. This will be needed in libthr in the near future when
we put the pieces together to protect libc functions that use pthread mutexes
and low level locks.

21 years ago - Export pmap_enter_quick() to the MI VM. This will permit the
alc [Sun, 29 Jun 2003 21:20:04 +0000 (21:20 +0000)]
 - Export pmap_enter_quick() to the MI VM.  This will permit the
   implementation of a largely MI pmap_object_init_pt() for vnode-backed
   objects.  pmap_enter_quick() is implemented via pmap_enter() on sparc64
   and powerpc.
 - Correct a mismatch between pmap_object_init_pt()'s prototype and its
   various implementations.  (I plan to keep pmap_object_init_pt() as
   the MD hook for device-backed objects on i386 and amd64.)
 - Correct an error in ia64's pmap_enter_quick() and adjust its interface
   to match the other versions.  Discussed with: marcel

21 years agoCapitalize an occurrence of 'ficl' for consistency.
brueffer [Sun, 29 Jun 2003 20:57:55 +0000 (20:57 +0000)]
Capitalize an occurrence of 'ficl' for consistency.

Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com>
MFC after: 3 days

21 years agoFix typo sparc -> sparc64
gordon [Sun, 29 Jun 2003 20:44:12 +0000 (20:44 +0000)]
Fix typo sparc -> sparc64

Submitted by: tmm@

21 years agocatch failure to fetch the card's "own channel"; this should not happen
sam [Sun, 29 Jun 2003 20:14:35 +0000 (20:14 +0000)]
catch failure to fetch the card's "own channel"; this should not happen

21 years agoinsure ic_bss always has a "valid" channel; avoids problems where users could
sam [Sun, 29 Jun 2003 20:13:38 +0000 (20:13 +0000)]
insure ic_bss always has a "valid" channel; avoids problems where users could
query the state of a card and find a null channel since allocating the node
left ni_chan zero

21 years agouse proper length to copy data for WI_RID_DESIRED_SSID (was smashing
sam [Sun, 29 Jun 2003 20:12:17 +0000 (20:12 +0000)]
use proper length to copy data for WI_RID_DESIRED_SSID (was smashing
ic_des_chan that immediately follows)

21 years agoadd safeguard against (bogus) null channel parameter
sam [Sun, 29 Jun 2003 20:10:54 +0000 (20:10 +0000)]
add safeguard against (bogus) null channel parameter

21 years agoAdd vm object locking to vm_pageout_map_deactivate_pages().
alc [Sun, 29 Jun 2003 19:51:24 +0000 (19:51 +0000)]
Add vm object locking to vm_pageout_map_deactivate_pages().

21 years agoRemove pathnames.h.
gordon [Sun, 29 Jun 2003 19:03:52 +0000 (19:03 +0000)]
Remove pathnames.h.

Pointed out by: Mathieu Arnold <mat@mat.cc>

21 years agoTweak a couple of utilities so they compile cleanly for /rescue. Mostly
gordon [Sun, 29 Jun 2003 18:46:18 +0000 (18:46 +0000)]
Tweak a couple of utilities so they compile cleanly for /rescue. Mostly
path fixes.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoAdd /rescue bits. This basically encompasses all of bin and sbin along
gordon [Sun, 29 Jun 2003 18:35:37 +0000 (18:35 +0000)]
Add /rescue bits. This basically encompasses all of bin and sbin along
with a couple of bits from usr.bin in a crunchgen'd binary.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoAdd ${CRUNCH_CFLAGS} support for adding compile options to crunch
gordon [Sun, 29 Jun 2003 18:16:26 +0000 (18:16 +0000)]
Add ${CRUNCH_CFLAGS} support for adding compile options to crunch
components. This is generally considered a non-optimal solution but
it gets the job done for the /rescue case.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoMove path definitions to include/paths.h. This makes it easier to override
gordon [Sun, 29 Jun 2003 18:06:05 +0000 (18:06 +0000)]
Move path definitions to include/paths.h. This makes it easier to override
these definitions in the /rescue case.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoUgh. Remove debugging echo.
mtm [Sun, 29 Jun 2003 17:59:09 +0000 (17:59 +0000)]
Ugh. Remove debugging echo.

21 years agoConvert fsck and mount to using execvP to find fsck_foo and mount_foo.
gordon [Sun, 29 Jun 2003 17:53:48 +0000 (17:53 +0000)]
Convert fsck and mount to using execvP to find fsck_foo and mount_foo.
This simplifies the code path and makes the default path easy to override
in the /rescue case.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoAdd a libc function execvP that takes the search path as an arguement.
gordon [Sun, 29 Jun 2003 17:33:34 +0000 (17:33 +0000)]
Add a libc function execvP that takes the search path as an arguement.
Change execvp to be a wrapper around execvP. This is necessary for some
of the /rescue pieces. It may also be more generally applicable as well.

Submitted by: Tim Kientzle <kientzle@acm.org>
Approved by: Silence on arch@

21 years agoIn order to set the MAC address on RealTek NICs, you must flip WRITECFG
wpaul [Sun, 29 Jun 2003 17:33:33 +0000 (17:33 +0000)]
In order to set the MAC address on RealTek NICs, you must flip WRITECFG
bit in the EEPROM mode register on. Also, the address must be written
in two 32-bit register accesses instead of 6 8-bit accesses.

Tested with my 8139B cardbus NIC.

PR: kern/35900
Submitted by: Mark Kettenis <kettenis@chello.nl>

21 years agoImplement fuword32() and suword32(). These functions are used in
marcel [Sun, 29 Jun 2003 17:14:42 +0000 (17:14 +0000)]
Implement fuword32() and suword32(). These functions are used in
kern_thread.c. This is a best effort implementation.

21 years agoMake _thread_suspend work with both the old broken sigtimedwait
jdp [Sun, 29 Jun 2003 15:55:44 +0000 (15:55 +0000)]
Make _thread_suspend work with both the old broken sigtimedwait
implementation and the new improved one.  We now precompute the
signal set passed to sigtimedwait, using an inverted set when
necessary for compatibility with older kernels.

21 years agoBump __FreeBSD_version because the semantics of sigtimedwait and
jdp [Sun, 29 Jun 2003 15:51:38 +0000 (15:51 +0000)]
Bump __FreeBSD_version because the semantics of sigtimedwait and
sigwaitinfo have been corrected.  Some existing code relied on the
original broken semantics.

21 years agoUnbreak NOCRYPT buildworld.
ru [Sun, 29 Jun 2003 10:03:35 +0000 (10:03 +0000)]
Unbreak NOCRYPT buildworld.

Reviewed by: markm

21 years ago - Remove the calls to pmap_install() from pmap_object_init_pt(); they are
alc [Sun, 29 Jun 2003 06:10:32 +0000 (06:10 +0000)]
 - Remove the calls to pmap_install() from pmap_object_init_pt(); they are
   redundant.  Discussed with: marcel
 - MFi386: Add vm object locking to pmap_object_init_pt().

21 years agoImplement individual operations on static and dhcp interfaces. Previously
mtm [Sun, 29 Jun 2003 05:34:41 +0000 (05:34 +0000)]
Implement individual operations on static and dhcp interfaces. Previously
network interfaces could only be turned on and off as a group (all
static interfaces or all dhcp interfaces).

When used to start the interface a 'long form' ifconfig output is
used to show the status of the interface, but when stopping an interface
the script will simply output the name of the interface. This is simply my
personal preference. Hopefully as this functionality matures we can
stabilize on a prefered form of output for these scripts.

A stop command to the dhclient script now explicitly releases the dhcp lease.
Behaviour at system shutdown; however, is unchanged since dhclient is not,
by default, run at that time. The client will not release its lease
at shutdown.

21 years agoo Hookup rc.d/routing and rc.d/netoptions
mtm [Sun, 29 Jun 2003 05:15:57 +0000 (05:15 +0000)]
o Hookup rc.d/routing and rc.d/netoptions
o Ensure rc.d/network2 and rc.d/network3 are not automatically run
  during boot
o Modify script headers so rcorder(8) can put the two scripts in the
  correct sequence.

21 years agoo Repocopied routing and netoptions from network2 and network3, respectively.
mtm [Sun, 29 Jun 2003 05:09:48 +0000 (05:09 +0000)]
o Repocopied routing and netoptions from network2 and network3, respectively.
o Change the provider names.
o Separate routing into two parts: static routing and routing options. The
  start command will run both parts, but they can be run separately using
  the static and options command, respectively:
  (/etc/rc.d/routing static; /etc/rc.d/routing options)

21 years agoXXX Copy workaround from UFS: open device for write access even if
tjr [Sun, 29 Jun 2003 03:05:59 +0000 (03:05 +0000)]
XXX Copy workaround from UFS: open device for write access even if
the user requests a read-only mount. This is necessary because we
don't do the VOP_OPEN again if they upgrade a read-only mount to
read-write.

Fixes lockup when creating files on msdosfs mounts that have been
mounted read-only then upgraded to read-write. The exact cause of
the lockup is not known, but it is likely to be the kernel getting
stuck in an infinite loop trying to write dirty buffers to a device
without write permission.

Reported/tested by andreas, discussed with phk.

21 years agoAllow the interrupt controller to be probed - this picks up the
grehan [Sun, 29 Jun 2003 02:05:19 +0000 (02:05 +0000)]
Allow the interrupt controller to be probed - this picks up the
Heathrow PIC, while not affecting the OpenPIC.

21 years agoModify the xl_reset() routine slightly so that, if we're using memory
wpaul [Sun, 29 Jun 2003 01:38:57 +0000 (01:38 +0000)]
Modify the xl_reset() routine slightly so that, if we're using memory
mapped I/O mode, we pause for .1 seconds after issuing the reset command
before trying to poll the 'command busy' bit in the status register.
With my 3c575C cardbus NIC, my Sony Picturebook locks up when it tries
to read the status register immediately after the reset. This appears
to be a problem only with certain NICs on certain hardware, but the
added delay should not hurt cards that already work.

This bug seems to have been brought to light by the fact that the xl
driver now defaults to memory mapped I/O mode instead of programmed
I/O mode like it used to. With PIO mode, the delay isn't needed and
everything works (which is why this NIC worked with 5.0-RELEASE but
not 5.1). I suspect that what's happening is that when the chip is
reset, it takes a little while for the memory-mapped decoding logic
to recover. Trying to access the chip's registers during this period
causes an error condition of some kind that wedges the system.

21 years agoAdd ath(4) devices. Also try to be more specific with respect to
bmah [Sun, 29 Jun 2003 01:12:57 +0000 (01:12 +0000)]
Add ath(4) devices.  Also try to be more specific with respect to
what variant of 802.11 is supported by some other devices.