]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoUnbreak - remove leftover reference to pcb_rflags.
peter [Wed, 28 Sep 2005 07:40:27 +0000 (07:40 +0000)]
Unbreak - remove leftover reference to pcb_rflags.

18 years agoSort LOCALES.
ru [Wed, 28 Sep 2005 07:40:03 +0000 (07:40 +0000)]
Sort LOCALES.

18 years agoSort MLINKS.
ru [Wed, 28 Sep 2005 07:32:43 +0000 (07:32 +0000)]
Sort MLINKS.

18 years agoSort MAN.
ru [Wed, 28 Sep 2005 07:31:18 +0000 (07:31 +0000)]
Sort MAN.

18 years agoSort SUBDIR.
ru [Wed, 28 Sep 2005 07:20:46 +0000 (07:20 +0000)]
Sort SUBDIR.

18 years agoBack out alpha/alpha/trap.c:1.124, osf1_ioctl.c:1.14, osf1_misc.c:1.57,
rwatson [Wed, 28 Sep 2005 07:03:03 +0000 (07:03 +0000)]
Back out alpha/alpha/trap.c:1.124, osf1_ioctl.c:1.14, osf1_misc.c:1.57,
osf1_signal.c:1.41, amd64/amd64/trap.c:1.291, linux_socket.c:1.60,
svr4_fcntl.c:1.36, svr4_ioctl.c:1.23, svr4_ipc.c:1.18, svr4_misc.c:1.81,
svr4_signal.c:1.34, svr4_stat.c:1.21, svr4_stream.c:1.55,
svr4_termios.c:1.13, svr4_ttold.c:1.15, svr4_util.h:1.10,
ext2_alloc.c:1.43, i386/i386/trap.c:1.279, vm86.c:1.58,
unaligned.c:1.12, imgact_elf.c:1.164, ffs_alloc.c:1.133:

Now that Giant is acquired in uprintf() and tprintf(), the caller no
longer leads to acquire Giant unless it also holds another mutex that
would generate a lock order reversal when calling into these functions.
Specifically not backed out is the acquisition of Giant in nfs_socket.c
and rpcclnt.c, where local mutexes are held and would otherwise violate
the lock order with Giant.

This aligns this code more with the eventual locking of ttys.

Suggested by: bde

18 years agoSimplified markup.
ru [Wed, 28 Sep 2005 06:57:56 +0000 (06:57 +0000)]
Simplified markup.

18 years agoComment out WARNS, the OpenSSL headers don't compile cleanly on some platforms.
des [Wed, 28 Sep 2005 06:23:47 +0000 (06:23 +0000)]
Comment out WARNS, the OpenSSL headers don't compile cleanly on some platforms.

18 years agoRemove more OLDCARD references.
imp [Wed, 28 Sep 2005 06:05:45 +0000 (06:05 +0000)]
Remove more OLDCARD references.

18 years agoCorrect a typo.
jkoshy [Wed, 28 Sep 2005 03:02:16 +0000 (03:02 +0000)]
Correct a typo.

MFC after: 3 days

18 years agoPush Giant down in jails. Pass the MPSAFE flag to NDINIT, and keep track
csjp [Wed, 28 Sep 2005 00:30:56 +0000 (00:30 +0000)]
Push Giant down in jails. Pass the MPSAFE flag to NDINIT, and keep track
of whether or not Giant was picked up by the filesystem. Add VFS_LOCK_GIANT
macros around vrele as it's possible that this can call in the VOP_INACTIVE
filesystem specific code. Also while we are here, remove the Giant assertion.
from the sysctl handler,  we do not actually require Giant here so we
shouldn't assert it. Doing so will just complicate things when Giant is removed
from the sysctl framework.

18 years agoIf KDB_STOP_NMI is compiled into the kernel, default
rwatson [Tue, 27 Sep 2005 21:12:05 +0000 (21:12 +0000)]
If KDB_STOP_NMI is compiled into the kernel, default
debug.kdb.stop_cpus_with_nmi to 1 rather than 0.

MFC after: 3 days

18 years agoI believe the stack underflows during early development that caused me to
peter [Tue, 27 Sep 2005 21:11:35 +0000 (21:11 +0000)]
I believe the stack underflows during early development that caused me to
add spare padding at the beginning of the pcb are long gone.  Remove the
padding fields.

18 years agoKill pcb_rflags. It served no purpose.
peter [Tue, 27 Sep 2005 21:10:10 +0000 (21:10 +0000)]
Kill pcb_rflags.  It served no purpose.

Reported by:  bde

18 years agoIn lockstatus(), don't lock and unlock the interlock when testing the
rwatson [Tue, 27 Sep 2005 21:02:59 +0000 (21:02 +0000)]
In lockstatus(), don't lock and unlock the interlock when testing the
sleep lock status while kdb_active, or we risk contending with the
mutex on another CPU, resulting in a panic when using "show
lockedvnods" while in DDB.

MFC after: 3 days
Reviewed by: jhb
Reported by: kris

18 years ago- Add a work-around for nForce3-250. Aperture base address encoded in misc.
jkim [Tue, 27 Sep 2005 20:57:50 +0000 (20:57 +0000)]
- Add a work-around for nForce3-250.  Aperture base address encoded in misc.
control register and AGP bridge seems to be inconsistent with some BIOS.
Instead of relying on BIOS settings, we just take the initial aperture size
and encode them for both miscellaneous control register and AGP bridge.
Some idea was borrowed from agp_nvidia.c.

- Add preliminary ULi M1689 chipset support.  The idea was taken from Linux
because hardware and documentation are unavailable.  Not tested.

- Add more VIA chipset PCI IDs taken from Linux driver.

Approved by: anholt (mentor)
Tested by: Adam Gregoire <ebola at psychoholics dot org>
Ganael Laplanche <ganael.laplanche at martymac dot com>
K Wieland <kwieland at wustl dot edu>

18 years agoNo longer maintain mbstat statistics for the mbuf allocator, UMA
rwatson [Tue, 27 Sep 2005 20:28:43 +0000 (20:28 +0000)]
No longer maintain mbstat statistics for the mbuf allocator, UMA
statistics and libmemstat(3) are now used to track mbuf statistics.

MFC after: 1 month

18 years agos/routnes/routines/ in help message.
brooks [Tue, 27 Sep 2005 18:52:17 +0000 (18:52 +0000)]
s/routnes/routines/ in help message.

This file is already off the vendor branch and there hasn't been a bc
release in more than 4 years so I can't see any harm in fixing this.

Submitted by: Arne Woerner <arne_woerner at yahoo dot com>
PR: gnu/86627

18 years agoFix a minor nit that has been bugging me for a while. Fix the obvious
peter [Tue, 27 Sep 2005 18:32:46 +0000 (18:32 +0000)]
Fix a minor nit that has been bugging me for a while.  Fix the obvious
cases of using a 64 bit operation to zero a register.  32 bit opcodes are
smaller and supposedly faster, and clear the upper 32 bits for free.

18 years agoAdd a bare minimum (but wrong) R_X86_64_JMP_SLOT relocation type for
peter [Tue, 27 Sep 2005 18:18:23 +0000 (18:18 +0000)]
Add a bare minimum (but wrong) R_X86_64_JMP_SLOT relocation type for
kernel modules.  We actually need to include any addends and the symbol
offset value, but for gcc/binutils didn't set it anywhere I've found on
'cc -fpic -shared' kernel modules.

18 years agoDon't report Maxmem as 'real memory'. It is really the highest address
peter [Tue, 27 Sep 2005 18:15:57 +0000 (18:15 +0000)]
Don't report Maxmem as 'real memory'.  It is really the highest address
available and can give the wrong impression when there are memory holes.
Report the total amount of usable memory that we detected instead of the
highest address.

18 years agoMFi386: If we take a trap with interrupts disabled while in a critical
peter [Tue, 27 Sep 2005 18:13:07 +0000 (18:13 +0000)]
MFi386:  If we take a trap with interrupts disabled while in a critical
section, don't enable them if we're servicing an NMI.

18 years agoRemove bridge(4) from the tree. if_bridge(4) is a full functional
mlaier [Tue, 27 Sep 2005 18:10:43 +0000 (18:10 +0000)]
Remove bridge(4) from the tree.  if_bridge(4) is a full functional
replacement and has additional features which make it superior.

Discussed on: -arch
Reviewed by: thompsa
X-MFC-after: never (RELENG_6 as transition period)

18 years agoDon't let the upper bits of %dr6/%dr7 get set.
peter [Tue, 27 Sep 2005 18:10:26 +0000 (18:10 +0000)]
Don't let the upper bits of %dr6/%dr7 get set.

Submitted by:  Nate Eldredge <neldredge@math.ucsd.edu>

18 years agoUse the refcount API to manage the reference count for user credentials
jhb [Tue, 27 Sep 2005 18:09:42 +0000 (18:09 +0000)]
Use the refcount API to manage the reference count for user credentials
rather than using pool mutexes.

Tested on: i386, alpha, sparc64

18 years agoUse the reference count API to manage the reference counts for process
jhb [Tue, 27 Sep 2005 18:07:05 +0000 (18:07 +0000)]
Use the reference count API to manage the reference counts for process
limit structures rather than using pool mutexes to protect the reference
counts.

Tested on: i386, alpha, sparc64

18 years agoRegenerate
peter [Tue, 27 Sep 2005 18:04:52 +0000 (18:04 +0000)]
Regenerate

18 years agoImplement 32 bit getcontext/setcontext/swapcontext on amd64. I've added
peter [Tue, 27 Sep 2005 18:04:20 +0000 (18:04 +0000)]
Implement 32 bit getcontext/setcontext/swapcontext on amd64.  I've added
stubs for ia64 to keep it compiling.  These are used by 32 bit apps such
as gdb.

18 years agoUse the refcount API to implement reference counts on process argument
jhb [Tue, 27 Sep 2005 18:03:15 +0000 (18:03 +0000)]
Use the refcount API to implement reference counts on process argument
structures rather than using a global mutex to protect the reference
counts.

Tested on: i386, alpha, sparc64

18 years agoAdd a simple reference count API that is simply a thin wrapper API around
jhb [Tue, 27 Sep 2005 18:01:33 +0000 (18:01 +0000)]
Add a simple reference count API that is simply a thin wrapper API around
atomic operations on ints.

Reviewed by: arch@
MFC after: 1 week

18 years ago- Document atomic_fetchadd(9) and add a MLINK.
jhb [Tue, 27 Sep 2005 17:59:29 +0000 (17:59 +0000)]
- Document atomic_fetchadd(9) and add a MLINK.
- Add arm and ppc to the list of archs not supporting operations on 64-bit
  integers.
- Update the sample code for acquiring a mutex to be more recent and to
  take into account the recent atomic_foo_ptr() changes.

MFC after: 1 week

18 years agoAdd a new atomic_fetchadd() primitive that atomically adds a value to a
jhb [Tue, 27 Sep 2005 17:39:11 +0000 (17:39 +0000)]
Add a new atomic_fetchadd() primitive that atomically adds a value to a
variable and returns the previous value of the variable.

Tested on: i386, alpha, sparc64, arm (cognet)
Reviewed by: arch@
Submitted by: cognet (arm)
MFC after: 1 week

18 years agoRestore if_cp.c 1.27
rik [Tue, 27 Sep 2005 16:57:44 +0000 (16:57 +0000)]
Restore if_cp.c 1.27
----------------------------
revision 1.27
date: 2005/09/19 03:10:16;  author: imp;  state: Exp;  lines: +3 -2
Make sure that we call if_free(ifp) after bus_teardown_intr.  Since we
could get an interrupt after we free the ifp, and the interrupt
handler depended on the ifp being still alive, this could, in theory,
cause a crash.  Eliminate this possibility by moving the if_free to
after the bus_teardown_intr() call.

In fact, this change do nothing for this driver. It is protected from
this by cp_destroy variable. This variable also protects driver from initiation
of any activity from network stack with disabled intr handler with this change
applied.

18 years agoBack out fifo_vnops.c:1.127, which introduced an sx lock around I/O on
rwatson [Tue, 27 Sep 2005 16:45:22 +0000 (16:45 +0000)]
Back out fifo_vnops.c:1.127, which introduced an sx lock around I/O on
a fifo.  While this did indeed close the race, confirming suspicions
about the nature of the problem, it causes difficulties with blocking
I/O on fifos.

Discussed with: ups
Also spotted by: Peter Holm <peter at holm dot cc>

18 years agoBackout if_cp 1.26, if_ct 1.27, if_cx 1.47 by obrien:
rik [Tue, 27 Sep 2005 16:12:49 +0000 (16:12 +0000)]
Backout if_cp 1.26, if_ct 1.27, if_cx 1.47 by obrien:
----------------------------
revision 1.26
date: 2005/09/07 09:53:35;  author: obrien;  state: Exp;  lines: +1452 -1453
Reorder code to not depend on an ISO-C illegal forward extern declaration.
----------------------------

Reason: do not move large functions location without serious reason. The same
could be done by forward function declaration. Please do not enlarge diff
without a reason any more.

Backout if_cp 1.27
----------------------------
revision 1.27
date: 2005/09/19 03:10:16;  author: imp;  state: Exp;  lines: +3 -2
Make sure that we call if_free(ifp) after bus_teardown_intr.  Since we
could get an interrupt after we free the ifp, and the interrupt
handler depended on the ifp being still alive, this could, in theory,
cause a crash.  Eliminate this possibility by moving the if_free to
after the bus_teardown_intr() call.

Reason: bad previous commit. Would be restored by next commit.

18 years agoUpdate the "created from" section to reflect the most recent version of
csjp [Tue, 27 Sep 2005 14:36:59 +0000 (14:36 +0000)]
Update the "created from" section to reflect the most recent version of
syscalls.master

Requested by: jhb

18 years agoMark the extended attribute syscalls as being MP safe.
csjp [Tue, 27 Sep 2005 14:32:04 +0000 (14:32 +0000)]
Mark the extended attribute syscalls as being MP safe.

Requested by: jhb

18 years agoCalling rman_get_start() after bus_release_resource() is evil.
ru [Tue, 27 Sep 2005 13:33:46 +0000 (13:33 +0000)]
Calling rman_get_start() after bus_release_resource() is evil.
It became fatal after a recent "struct resource" split change.

18 years agoSwitch from OLDCARD to NEWCARD on pc98.
nyan [Tue, 27 Sep 2005 13:10:24 +0000 (13:10 +0000)]
Switch from OLDCARD to NEWCARD on pc98.

18 years ago- Print space character in show_stat(). Remove a lot of priuntf(" ").
glebius [Tue, 27 Sep 2005 10:42:02 +0000 (10:42 +0000)]
- Print space character in show_stat(). Remove a lot of priuntf(" ").
- Utilize show_stat() in sidewaysintpr() loop. This makes periodic
  statistics to honor -h flag.

18 years agoFix build.
glebius [Tue, 27 Sep 2005 09:11:44 +0000 (09:11 +0000)]
Fix build.

18 years agoConvert fxp(4) to use the new bus_alloc_resources() API, it simplifies
mux [Tue, 27 Sep 2005 09:01:11 +0000 (09:01 +0000)]
Convert fxp(4) to use the new bus_alloc_resources() API, it simplifies
the resource allocation code significantly.

18 years agoRemove redundant `\&' escapes.
ru [Tue, 27 Sep 2005 08:06:21 +0000 (08:06 +0000)]
Remove redundant `\&' escapes.

18 years agoFixup previous commit.
ru [Tue, 27 Sep 2005 08:02:03 +0000 (08:02 +0000)]
Fixup previous commit.

18 years agoDon't print anything if we can't do any localpkg shutdown (start already
brooks [Tue, 27 Sep 2005 02:05:55 +0000 (02:05 +0000)]
Don't print anything if we can't do any localpkg shutdown (start already
does this).

Submitted by: Andre Albsmeier <Andre dot Albsmeier at siemens dot com>
PR: conf/86606

18 years agoReport status in hex, not decimal.
scottl [Tue, 27 Sep 2005 01:59:32 +0000 (01:59 +0000)]
Report status in hex, not decimal.

18 years agoPlease ship the pointy hat to its home position.
phk [Mon, 26 Sep 2005 22:07:59 +0000 (22:07 +0000)]
Please ship the pointy hat to its home position.

18 years agoDocument the IP_DONTFRAG IP socket option.
andre [Mon, 26 Sep 2005 20:58:49 +0000 (20:58 +0000)]
Document the IP_DONTFRAG IP socket option.

Sponsored by:   TCP/IP Optimization Fundraise 2005

18 years agoReplace custom mbuf writeability test with generic M_WRITABLE() test
andre [Mon, 26 Sep 2005 20:35:45 +0000 (20:35 +0000)]
Replace custom mbuf writeability test with generic M_WRITABLE() test
covering all edge cases too.

Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoUpdate coordinates for "mph" hash generator now that it lives in ports.
phk [Mon, 26 Sep 2005 20:34:21 +0000 (20:34 +0000)]
Update coordinates for "mph" hash generator now that it lives in ports.

18 years agoIncrease WARNS.
des [Mon, 26 Sep 2005 20:34:09 +0000 (20:34 +0000)]
Increase WARNS.

18 years agoCorrect the logic for determining whether the user has already entered
des [Mon, 26 Sep 2005 20:33:53 +0000 (20:33 +0000)]
Correct the logic for determining whether the user has already entered
a password.  Also, work around some harmless type pun warnings.

MFC after: 3 days

18 years agoAdd a .sinclude directive which does the exact same as .include, except
phk [Mon, 26 Sep 2005 20:31:00 +0000 (20:31 +0000)]
Add a .sinclude directive which does the exact same as .include, except
whine when the file cannot be found and opened.

18 years agoImplement IP_DONTFRAG IP socket option enabling the Don't Fragment
andre [Mon, 26 Sep 2005 20:25:16 +0000 (20:25 +0000)]
Implement IP_DONTFRAG IP socket option enabling the Don't Fragment
flag on IP packets.  Currently this option is only repected on udp
and raw ip sockets.  On tcp sockets the DF flag is controlled by the
path MTU discovery option.

Sending a packet larger than the MTU size of the egress interface
returns an EMSGSIZE error.

Discussed with: rwatson
Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoSmall fixes to sis(4):
jhb [Mon, 26 Sep 2005 18:42:27 +0000 (18:42 +0000)]
Small fixes to sis(4):
- Remove sis_unit and use device_printf() and if_printf() instead.
- Use callout_init_mtx() for the callout.
- Remove spls.
- Fix locking for ifmedia to happen in the ifmedia handlers rather than in
  sis_ioctl().
- Log an error message if we fail to allocate any resources.  Perform
  cleanup if we fail to allocate any resources so that we don't leave
  a mutex hanging around.

Tested by: Jason Tsai jason dot tsai at newcyberian dot com (1-4)
MFC after: 3 days

18 years agoAdd the spin lock used by the binary nvidia driver to the static lock
jhb [Mon, 26 Sep 2005 18:30:12 +0000 (18:30 +0000)]
Add the spin lock used by the binary nvidia driver to the static lock
order list so that WITNESS and the driver play together nicely.

Tested by: Harald Schmalzbauer
MFC after: 3 days

18 years agoEmit a warning when a card matches multiple entries in our table. A
imp [Mon, 26 Sep 2005 18:27:13 +0000 (18:27 +0000)]
Emit a warning when a card matches multiple entries in our table.  A
number of cards have been discovered to be matching on the strings of
the cis rather than manufacturer/product id for cards we already had a
prod id for.  This is a result of getting the list from the NetBSD
driver which also includes the OID for the cards where such a
distinction mattered (since it was tested against the MAC address we
got from the card).  Since we do not try to match OIDs, we do not need
the extra entries and they just waste space.

I'm guessing that some of the dlink entires (DE-660, DE-660+) and many
of the corega cards may fall into this boat and can safely be removed.

18 years agoGo ahead and detach our children in our detach routine. I'm undecided
imp [Mon, 26 Sep 2005 18:22:24 +0000 (18:22 +0000)]
Go ahead and detach our children in our detach routine.  I'm undecided
if we should delete them also or not, but have decided not to do so
for the moment.

18 years agoAdd "show allpcpu" to DDB, which prints the current CPU id followed by
rwatson [Mon, 26 Sep 2005 16:55:11 +0000 (16:55 +0000)]
Add "show allpcpu" to DDB, which prints the current CPU id followed by
the per-cpu data for all CPUs.  This is easier to ask users to do than
"figure out how many CPUs you have, now run show pcpu, then run it
once for each CPU you have".

MFC after: 3 days

18 years agoThis one goes as well.
phk [Mon, 26 Sep 2005 14:58:58 +0000 (14:58 +0000)]
This one goes as well.

18 years agoRemove the old Makefile based nanobsd build method, the new shell script
phk [Mon, 26 Sep 2005 14:57:27 +0000 (14:57 +0000)]
Remove the old Makefile based nanobsd build method, the new shell script
based is far better and the only one supported from now on.

18 years agoReorder statements to avoid accessing unknown memory.
davidxu [Mon, 26 Sep 2005 14:14:55 +0000 (14:14 +0000)]
Reorder statements to avoid accessing unknown memory.
In theory, invoking kenv with very long string can panic
kernel.

18 years agoAccept "maximum" and "minimum" modes as well as their abbreviations.
des [Mon, 26 Sep 2005 12:16:27 +0000 (12:16 +0000)]
Accept "maximum" and "minimum" modes as well as their abbreviations.

MFC after: 2 weeks

18 years agoAssert v_fifoinfo is non-NULL in fifo_close() in order to catch
rwatson [Mon, 26 Sep 2005 08:17:03 +0000 (08:17 +0000)]
Assert v_fifoinfo is non-NULL in fifo_close() in order to catch
non-conforming cases sooner.

MFC after: 3 days
Reported by: Peter Holm <peter at holm dot cc>

18 years agoAcquire Giant in uprintf() and tprintf() rather than asserting it. In
rwatson [Mon, 26 Sep 2005 08:02:24 +0000 (08:02 +0000)]
Acquire Giant in uprintf() and tprintf() rather than asserting it.  In
the vast majority of cases, these functions are called without mutexes
held, meaning that in all but two cases, there will be no ordering
issues with doing this, and it will eliminate the need for changes in
the caller.  In two cases, mutexes are held, so Giant must be acquired
before those mutexes such that uprintf() and tprintf() recurse Giant
rather than generating a lock order reversal.

Suggested by: bde

18 years agoFix order and style(9) to match surrounding defs.
njl [Mon, 26 Sep 2005 07:45:35 +0000 (07:45 +0000)]
Fix order and style(9) to match surrounding defs.

18 years agominor style.Makefile(5) fixes:
keramida [Mon, 26 Sep 2005 06:23:43 +0000 (06:23 +0000)]
minor style.Makefile(5) fixes:
- WARNS before CFLAGS
- CFLAGS -DXXX before -IXXX

Approved by: ru

18 years agoAdd dummy support for ifmedia subsystem. This allows devd to see cdce as an
sobomax [Mon, 26 Sep 2005 05:29:46 +0000 (05:29 +0000)]
Add dummy support for ifmedia subsystem. This allows devd to see cdce as an
ethernet device and configure IP etc.

Submitted by: Craig Boston <craig@tobuj.gank.org>

18 years agoRemove the kernel portion of OLDCARD. I'm working on a replacement
imp [Sun, 25 Sep 2005 21:29:32 +0000 (21:29 +0000)]
Remove the kernel portion of OLDCARD.  I'm working on a replacement
for pccardc dumpcis, but until I'm done with that, I'm leaving pccardc
in place.  As such, I'm leaving the .h files in place for the moment.

18 years agoRemove references to OLDCARD.
imp [Sun, 25 Sep 2005 21:26:09 +0000 (21:26 +0000)]
Remove references to OLDCARD.

18 years agoOLDCARD is being removed from the tree, so remove it from here.
imp [Sun, 25 Sep 2005 21:24:06 +0000 (21:24 +0000)]
OLDCARD is being removed from the tree, so remove it from here.

# the snc pccard entry might be able to be moved to files

18 years agoCorrect filesystem mountpoint
phk [Sun, 25 Sep 2005 21:23:19 +0000 (21:23 +0000)]
Correct filesystem mountpoint

18 years agoFix multiple abuses of __RMAN_RESOURCE_VISIBLE in the arm code.
cognet [Sun, 25 Sep 2005 21:06:50 +0000 (21:06 +0000)]
Fix multiple abuses of __RMAN_RESOURCE_VISIBLE in the arm code.

Spotted out by: phk

18 years ago__RMAN_RESOURCE_VISIBLE not necessary.
phk [Sun, 25 Sep 2005 20:21:48 +0000 (20:21 +0000)]
__RMAN_RESOURCE_VISIBLE not necessary.

18 years ago__RMAN_RESOURCE_VISIBLE not needed.
phk [Sun, 25 Sep 2005 20:21:14 +0000 (20:21 +0000)]
__RMAN_RESOURCE_VISIBLE not needed.

18 years agoReplace __RMAN_RESOURCE_VISIBLE with calls to public entry points
phk [Sun, 25 Sep 2005 20:12:30 +0000 (20:12 +0000)]
Replace __RMAN_RESOURCE_VISIBLE with calls to public entry points
in rman module.

18 years agoAdd rman_is_region_manager() for the benefit of an alpha hack.
phk [Sun, 25 Sep 2005 20:10:10 +0000 (20:10 +0000)]
Add rman_is_region_manager() for the benefit of an alpha hack.

18 years ago__RMAN_RESOURCE_VISIBLE is not actually needed.
phk [Sun, 25 Sep 2005 20:03:41 +0000 (20:03 +0000)]
__RMAN_RESOURCE_VISIBLE is not actually needed.

18 years agoLock the read socket receive buffer when frobbing the sb_state flag on
rwatson [Sun, 25 Sep 2005 19:52:09 +0000 (19:52 +0000)]
Lock the read socket receive buffer when frobbing the sb_state flag on
that socket during open, not the write socket receive buffer.  This
might explain clearing of the sb_state SB_LOCK flag seen occasionally
in soreceive() on fifos.

MFC after: 3 days
Spotted by: ups

18 years agoSubstitute rman_get_start() for __RMAN_RESOURCE_VISIBLE
phk [Sun, 25 Sep 2005 19:48:51 +0000 (19:48 +0000)]
Substitute rman_get_start() for __RMAN_RESOURCE_VISIBLE

18 years agoThis file never needed to see what is in the internal struct resource,
phk [Sun, 25 Sep 2005 19:34:54 +0000 (19:34 +0000)]
This file never needed to see what is in the internal struct resource,
all it needed was a call to rman_get_start().

18 years agoOverhaul error handling in the IPS driver. Don't use a magic value for
scottl [Sun, 25 Sep 2005 17:12:41 +0000 (17:12 +0000)]
Overhaul error handling in the IPS driver.  Don't use a magic value for
driver-induced errors, instead be better about propagating error status
upwards.  Add more error definitions, courtesy of the linux driver.  Fix
a command leak in the ioctl handler.  Re-arrange some of the command handlers
to localize error handling.

MFC After: 3 days

18 years agoRemove OLDCARD vestiges from here
imp [Sun, 25 Sep 2005 01:39:04 +0000 (01:39 +0000)]
Remove OLDCARD vestiges from here

18 years agoFix comment
imp [Sun, 25 Sep 2005 01:38:02 +0000 (01:38 +0000)]
Fix comment

18 years agoImplement new world order in VFS locking for extended attributes. This will
csjp [Sat, 24 Sep 2005 23:47:04 +0000 (23:47 +0000)]
Implement new world order in VFS locking for extended attributes. This will
remove the unconditional acquisition of Giant for extended attribute related
operations. If the file system is set as being MP safe and debug.mpsafevfs is
1, do not pickup Giant.

Mark the following system calls as being MP safe so we no longer pickup Giant
in the system call handler:

o extattrctl
o extattr_set_file
o extattr_get_file
o extattr_delete_file
o extattr_set_fd
o extattr_get_fd
o extattr_delete_fd
o extattr_set_link
o extattr_get_link
o extattr_delete_link
o extattr_list_file
o extattr_list_link
o extattr_list_fd

-Pass MPSAFE flags to namei(9) lookup and introduce vfslocked variable which
 will keep track of any Giant acquisitions.
-Wrap any fd operations which manipulate vnodes in VFS_{UN}LOCK_GIANT
-Drop VFS_ASSERT_GIANT into function which operate on vnodes to ensure that
 we are sufficiently protected.

I've tested these changes with various TrustedBSD MAC policies which use
extended attribute a lot on SMP and UP systems (thanks to Scott Long for
making some SMP hardware available to me for testing).

Discussed with: jeff
Requested by: jhb, rwatson

18 years agoDo not bitch about bsdpan modules not having origin.
krion [Sat, 24 Sep 2005 21:41:47 +0000 (21:41 +0000)]
Do not bitch about bsdpan modules not having origin.

Based on PR: bin/82269
Submitted by: Steven Hartland <killing at multiplay dot co dot uk>
MFC after: 3 days

18 years agoFix -u with absolute paths (e.g., "tar -uf foo.tar /bar") by handling
kientzle [Sat, 24 Sep 2005 21:19:57 +0000 (21:19 +0000)]
Fix -u with absolute paths (e.g., "tar -uf foo.tar /bar") by handling
pathname edits before comparing pathnames on disk to those in the archive.

Thanks to: Gareth Bailey, Lowell Gilbert

18 years agoDetect Mac OS X's broken ACL library.
kientzle [Sat, 24 Sep 2005 21:17:47 +0000 (21:17 +0000)]
Detect Mac OS X's broken ACL library.

Thanks to: Diego "Flameeyes" Petten?

18 years agosigned/unsigned fixes (thanks to GCC4) and a few related minor style corrections.
kientzle [Sat, 24 Sep 2005 21:15:00 +0000 (21:15 +0000)]
signed/unsigned fixes (thanks to GCC4) and a few related minor style corrections.

18 years agoUse the new bus_space/resource convenience functions.
phk [Sat, 24 Sep 2005 20:46:02 +0000 (20:46 +0000)]
Use the new bus_space/resource convenience functions.

18 years agoUse new bus_space/resource convenience functions.
phk [Sat, 24 Sep 2005 20:44:55 +0000 (20:44 +0000)]
Use new bus_space/resource convenience functions.

Pretend the 10-bit I/O ISA addressing is not our problem.

18 years agoAdd convenience macros for bus_space usage that doesn't require specification
phk [Sat, 24 Sep 2005 20:11:07 +0000 (20:11 +0000)]
Add convenience macros for bus_space usage that doesn't require specification
of bus tag+handle.

Instead of
bus_space_write_1(sc->tag, sc->handle, ...)
this macros offer
bus_write_1(sc->resource, ...)

The name+argument transformation is constant and the the macros are
generated (by hand) by the script in tools/bus_macro.sh.

18 years agoSplit struct resource in an external and internal part.
phk [Sat, 24 Sep 2005 20:07:03 +0000 (20:07 +0000)]
Split struct resource in an external and internal part.

The external part is still called 'struct resource' but the contents
is now visible to drivers etc.  This makes it part of the device
driver ABI so it not be changed lightly.  A comment to this effect
is in place.

The internal part is called 'struct resource_i' and contain its external
counterpart as one field.

Move the bus_space tag+handle into the external struct resource, this
removes the need for device drivers to even know about these fields
in order to use bus_space to access hardware. (More in following commit).

18 years agoRemove '\n' since it's redundant in case if file doesn't exist while
krion [Sat, 24 Sep 2005 19:41:56 +0000 (19:41 +0000)]
Remove '\n' since it's redundant in case if file doesn't exist while
running 'pkg_info -g'

Based on PR: bin/42609
Submitted by: Jeff King <peff-freebsd at peff dot net>
MFC after: 3 days

18 years agoAdd two convenience functions for device drivers: bus_alloc_resources()
phk [Sat, 24 Sep 2005 19:31:10 +0000 (19:31 +0000)]
Add two convenience functions for device drivers:  bus_alloc_resources()
and bus_free_resources().  These functions take a list of resources
and handle them all in one go.  A flag makes it possible to mark
a resource as optional.

A typical device driver can save 10-30 lines of code by using these.

Usage examples will follow RSN.

MFC: A good idea, eventually.

18 years agoI have confirmed with my Epson EEN10B that it needs to look at the
imp [Sat, 24 Sep 2005 17:36:43 +0000 (17:36 +0000)]
I have confirmed with my Epson EEN10B that it needs to look at the
attribute memory at 0xff0 to find its MAC address.  This is another
instance of the IBM ethercard II from all apperances (short of popping
the lid).  Update the entry to document which cards we support
actually need this functionality.

18 years agoRemove unnecessary Dlink de650 entry
imp [Sat, 24 Sep 2005 17:32:57 +0000 (17:32 +0000)]
Remove unnecessary Dlink de650 entry

18 years agoThe DLink DE650 has the same ID as Linksys EthernetCard, so we don't
imp [Sat, 24 Sep 2005 17:32:20 +0000 (17:32 +0000)]
The DLink DE650 has the same ID as Linksys EthernetCard, so we don't
need a sperate entry for it.

18 years agoTry to avoid crashes during kernel startup by limiting the # of EISA
wilko [Sat, 24 Sep 2005 16:47:34 +0000 (16:47 +0000)]
Try to avoid crashes during kernel startup by limiting the # of EISA
slots to probe.  Problems have been reported in this area, lets hope this
bandaid helps.

!! Owners of EISA-equipped Alpha machines are requested to at least
!! boot-test a 6-BETA build and report back to the Alpha list. Thanks!

Approved by: re (scottl)
Suggested by: ticso

18 years agoSimplify the code by making use of 'kldstat -q -m <mod>'.
pjd [Sat, 24 Sep 2005 15:57:17 +0000 (15:57 +0000)]
Simplify the code by making use of 'kldstat -q -m <mod>'.

No objections from: mlaier