]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoRun "make obj" before "make build-tools" in the directories used for
cperciva [Fri, 18 Mar 2005 12:55:07 +0000 (12:55 +0000)]
Run "make obj" before "make build-tools" in the directories used for
building the rescue binary.  This fixes a problem with NO_TCSH, where
the "make obj" stage of buildworld doesn't recurse into bin/csh,
resulting in csh build-tools being put into /usr/src/bin/csh.

Pointed out by: dougb (on hackers@)

19 years agoUse subr_unit to allocate thread ID's with.
phk [Fri, 18 Mar 2005 12:34:14 +0000 (12:34 +0000)]
Use subr_unit to allocate thread ID's with.

Tested by: davidxu

19 years agos/SLIST/STAILQ/
phk [Fri, 18 Mar 2005 11:57:44 +0000 (11:57 +0000)]
s/SLIST/STAILQ/
/imp/a\
pointy hat
.

19 years agoLinuxthreads uses not only signal 32 but several signals >= 32.
sobomax [Fri, 18 Mar 2005 11:08:55 +0000 (11:08 +0000)]
Linuxthreads uses not only signal 32 but several signals >= 32.

PR: kern/72922
Submitted by: Andriy Gapon <avg@icyb.net.ua>

19 years agomakebdev() is long gone.
phk [Fri, 18 Mar 2005 10:57:11 +0000 (10:57 +0000)]
makebdev() is long gone.

19 years ago- autofs was removed some time ago and libautofs is not hooked up to
brueffer [Fri, 18 Mar 2005 10:21:35 +0000 (10:21 +0000)]
- autofs was removed some time ago and libautofs is not hooked up to
  the build.  Remove both from here.
- acpi_snc was renamed to acpi_sony some time ago.

19 years agoNew release notes:
hrs [Fri, 18 Mar 2005 09:47:50 +0000 (09:47 +0000)]
New release notes:
acpi_fujitsu driver added.

19 years agoSplit configure() into 3 separate steps like we do on other
iedowse [Fri, 18 Mar 2005 09:45:43 +0000 (09:45 +0000)]
Split configure() into 3 separate steps like we do on other
architectures. This makes it possible to insert hooks before and
after the device attachment step.

Tested thanks to: marcel

19 years agoHook acpi_fujitsu up to the build.
philip [Fri, 18 Mar 2005 09:34:52 +0000 (09:34 +0000)]
Hook acpi_fujitsu up to the build.

Forgotten by: philip

19 years agoAdd acpi_fujitsu for handling acpi-controlled buttons on Fujitsu laptops.
philip [Fri, 18 Mar 2005 08:48:10 +0000 (08:48 +0000)]
Add acpi_fujitsu for handling acpi-controlled buttons on Fujitsu laptops.

Submitted by: Anish Mistry <mistry.7 -at- osu.edu>
Reviewed by: njl
X-MFC after: 5.4-RELEASE

19 years agoFix off-by-one (too little!) array size problem.
phk [Fri, 18 Mar 2005 07:13:35 +0000 (07:13 +0000)]
Fix off-by-one (too little!) array size problem.

Detected by: Coverity (ID#661)

19 years agog_read_data() can return NULL, check for it.
phk [Fri, 18 Mar 2005 07:03:56 +0000 (07:03 +0000)]
g_read_data() can return NULL, check for it.

Found by: Coverity (ID#258)

19 years agoAfter rejecting the bio request early, return instead of panicing.
phk [Fri, 18 Mar 2005 07:01:31 +0000 (07:01 +0000)]
After rejecting the bio request early, return instead of panicing.

Found by: Coverity (ID#450)

19 years agoAvoid null pointer dereference.
phk [Fri, 18 Mar 2005 06:57:58 +0000 (06:57 +0000)]
Avoid null pointer dereference.

19 years agoFix a bad copy&paste mistake I made.
phk [Fri, 18 Mar 2005 06:01:21 +0000 (06:01 +0000)]
Fix a bad copy&paste mistake I made.

Spotted by: truckman

19 years agoIf mlx_attach() returns an error, don't free sc again.
das [Fri, 18 Mar 2005 05:43:37 +0000 (05:43 +0000)]
If mlx_attach() returns an error, don't free sc again.

Spotted by: Ted Unangst using the Coverity Prevent static analysis tool
Reviewed by: scottl

19 years agoDon't read past the end of pVDevice[]. (Previously, we would iterate
das [Fri, 18 Mar 2005 05:43:34 +0000 (05:43 +0000)]
Don't read past the end of pVDevice[].  (Previously, we would iterate
twice as many times as there were entries in the array.)

Spotted by: Ted Unangst using the Coverity Prevent static analysis tool
Reviewed by: scottl

19 years agoDon't write past the end of the VendorId field (and into the ProductId
das [Fri, 18 Mar 2005 05:43:31 +0000 (05:43 +0000)]
Don't write past the end of the VendorId field (and into the ProductId
field).

Spotted by: Ted Unangst using the Coverity Prevent static analysis tool
Reviewed by: scottl

19 years agoUse STAILQ in preference to SLIST for the resources. Insert new resources
imp [Fri, 18 Mar 2005 05:19:50 +0000 (05:19 +0000)]
Use STAILQ in preference to SLIST for the resources.  Insert new resources
last in the list rather than first.

This makes the resouces print in the 4.x order rather than the 5.x order
(eg fdc0 at 0x3f0-0x3f5,0x3f7 is 4.x, but 0x3f7,0x3f0-0x3f5 is 5.x).  This
also means that the pci code will once again print the resources in BAR
ascending order.

19 years agoSplit configure into 3 steps ala sparc64
grehan [Fri, 18 Mar 2005 03:29:39 +0000 (03:29 +0000)]
Split configure into 3 steps ala sparc64

Obtained from:  iedowse, sparc64

19 years agoAutogenerate device listings for sr(4) and rc(4).
brueffer [Fri, 18 Mar 2005 03:12:47 +0000 (03:12 +0000)]
Autogenerate device listings for sr(4) and rc(4).

MFC after: 3 days

19 years agoFurther refine information about supported hardware (from the hardware notes).
brueffer [Fri, 18 Mar 2005 02:49:43 +0000 (02:49 +0000)]
Further refine information about supported hardware (from the hardware notes).

19 years ago- move supported hardware information into a HARDWARE section
brueffer [Fri, 18 Mar 2005 02:38:03 +0000 (02:38 +0000)]
- move supported hardware information into a HARDWARE section
- consistently capitalize RISCom
- fix typo
- bump .Dd

MFC after: 3 days

19 years agoFix the double rounding problem with subnormals, and
das [Fri, 18 Mar 2005 02:27:59 +0000 (02:27 +0000)]
Fix the double rounding problem with subnormals, and
remove the XXX comments, which no longer apply.

19 years ago- add a HARDWARE section
brueffer [Fri, 18 Mar 2005 02:26:05 +0000 (02:26 +0000)]
- add a HARDWARE section
- correct a language nit
- remove outdated FILES section
- bump .Dd

MFC after: 3 days

19 years agoReflect devnode naming change from /dev/ubser?.? to /dev/ttyy??
ticso [Fri, 18 Mar 2005 02:25:45 +0000 (02:25 +0000)]
Reflect devnode naming change from /dev/ubser?.? to /dev/ttyy??

19 years agoAdd missing prototypes for fma() and fmaf(), and remove an inaccurate
das [Fri, 18 Mar 2005 01:47:42 +0000 (01:47 +0000)]
Add missing prototypes for fma() and fmaf(), and remove an inaccurate
comment.

19 years agofix aio+kq... I've been running ambrisko's test program for much longer
jmg [Fri, 18 Mar 2005 01:11:39 +0000 (01:11 +0000)]
fix aio+kq... I've been running ambrisko's test program for much longer
w/o problems than I was before...  This simply brings back the knote_delete
as knlist_delete which will also drop the knote's, instead of just clearing
the list and seeing _ONESHOT...

Fix a race where if a note was _INFLUX and _DETACHED, it could end up being
modified... whoopse..

MFC after: 1 week
Prodded by: ambrisko and dwhite

19 years agoUse the correct variable name for the description of multi-volume
murray [Fri, 18 Mar 2005 01:05:46 +0000 (01:05 +0000)]
Use the correct variable name for the description of multi-volume
support in cdrom.inf.  Should be CD_VOLUME.

19 years agoRecover gracefully if the user puts in the wrong CD volume after being
murray [Fri, 18 Mar 2005 00:55:12 +0000 (00:55 +0000)]
Recover gracefully if the user puts in the wrong CD volume after being
prompted to insert another CD for a package.

MFC After: 3 days

19 years agoBring back some of the cleanups and fixes jmg did in the TS7200 port.
cognet [Thu, 17 Mar 2005 23:01:15 +0000 (23:01 +0000)]
Bring back some of the cleanups and fixes jmg did in the TS7200 port.

19 years agoinitialize pp->p_sc so it can be referenced later.
ticso [Thu, 17 Mar 2005 22:47:18 +0000 (22:47 +0000)]
initialize pp->p_sc so it can be referenced later.
dynamicaly allocate the per port array.
allow up to 32 serials per USB device.
ask the device for correct pipe sizes.

19 years agoIntroduce a general name for the previously cmbat-only ioctls. It has the
njl [Thu, 17 Mar 2005 22:42:49 +0000 (22:42 +0000)]
Introduce a general name for the previously cmbat-only ioctls.  It has the
same value as the previous ioctls so no binary change.  Also, make a few
style changes to reduce diffs to my tree.

Loosely based on code from: Hans Petter Selasky

19 years agoRemove the 'usbd' keyword (it isn't necessary for mixer). Also, use
njl [Thu, 17 Mar 2005 22:36:16 +0000 (22:36 +0000)]
Remove the 'usbd' keyword (it isn't necessary for mixer).  Also, use
BEFORE instead of REQUIRE.

Probably ok by: jhb
MFC after: 3 days

19 years agoMake the fenv.h routines work for programs that use SSE for
das [Thu, 17 Mar 2005 22:21:46 +0000 (22:21 +0000)]
Make the fenv.h routines work for programs that use SSE for
floating-point arithmetic on i386.  Now I'm going to make excuses
for why this code is kinda scary:

- To avoid breaking the ABI with 5.3-RELEASE, we can't change
  sizeof(fenv_t).  I stuck the saved mxcsr in some discontiguous
  reserved bits in the existing structure.

- Attempting to access the mxcsr on older processors results
  in an illegal instruction exception, so support for SSE must
  be detected at runtime.  (The extra baggage is optimized away
  if either the application or libm is compiled with -msse{,2}.)

I didn't run tests to ensure that this doesn't SIGILL on older 486's
lacking the cpuid instruction or on other processors lacking SSE.
Results from running the fenv regression test on these processors
would be appreciated.  (You'll need to compile the test with
-DNO_STRICT_DFL_ENV.)  If you have an 80386, or if your processor
supports SSE but the kernel didn't enable it, then you're probably out
of luck.

Also, I un-inlined some of the functions that grew larger as a result
of this change, moving them from fenv.h to fenv.c.

19 years agoInitialize the mxcsr properly, so the initial value in a process isn't
das [Thu, 17 Mar 2005 22:21:36 +0000 (22:21 +0000)]
Initialize the mxcsr properly, so the initial value in a process isn't
just the value that was left over from some other application.

19 years agoFix typo in comments (spell Linux correctly)
emax [Thu, 17 Mar 2005 21:39:44 +0000 (21:39 +0000)]
Fix typo in comments (spell Linux correctly)

Submitted by: Markus Brueffer < markus at brueffer dot de >
MFC after: 3 days

19 years agoWhen locking a MTX_SPIN, one needs to use mtx_lock_spin.
imp [Thu, 17 Mar 2005 20:45:24 +0000 (20:45 +0000)]
When locking a MTX_SPIN, one needs to use mtx_lock_spin.
Lock the timeout routine as well.

Submitted by: bde

19 years agoSplit configure() into 3 separate steps like we do on other
iedowse [Thu, 17 Mar 2005 20:31:36 +0000 (20:31 +0000)]
Split configure() into 3 separate steps like we do on other
architectures. This makes it possible to insert hooks before and
after the device attachment step.

19 years agoNew release notes: BIND 9.3.1.
hrs [Thu, 17 Mar 2005 19:55:07 +0000 (19:55 +0000)]
New release notes: BIND 9.3.1.

19 years agoI keep forgetting that I wanted the customize logs collected too.
phk [Thu, 17 Mar 2005 19:45:05 +0000 (19:45 +0000)]
I keep forgetting that I wanted the customize logs collected too.

Reminded by: Lennart Sorth, Andrea Campi and others.

19 years agoDefer boot-time exploration of USB busses until all devices in the
iedowse [Thu, 17 Mar 2005 19:41:19 +0000 (19:41 +0000)]
Defer boot-time exploration of USB busses until all devices in the
system have been attached, but no later. This ensures that we do
not explore ohci or uhci busses before the companion echi controller
has been initialised, so it should fix the problem of multi-speed
USB devices getting attached as USB 1 devices first and then
re-attached as USB 2.

Some further changes are needed on architectures that do not currently
allow hooks to be inserted before configure_final() - alpha, ia64,
powerpc and sparc64. On these architectures the exploration will
now be delayed until the usb kthread runs.

19 years agoadd m_copyup function.. This can be used to help make our ip stack less
jmg [Thu, 17 Mar 2005 19:34:57 +0000 (19:34 +0000)]
add m_copyup function..  This can be used to help make our ip stack less
alignment restrictive, and help performance on some ethernet cards which
currently copy the entire packet a couple bytes to get the packet aligned
properly...

Wordsmithing by: dwhite
Obtained from: NetBSD (code only)
I'll clean it up later: rwatson

19 years agoeisa attachment is safe to be in this module, both on eisa and
imp [Thu, 17 Mar 2005 18:40:37 +0000 (18:40 +0000)]
eisa attachment is safe to be in this module, both on eisa and
non-eisa configured kernels.

19 years agoNow that the Adaptec 2842 has its own probe routine, no need to have
imp [Thu, 17 Mar 2005 17:36:07 +0000 (17:36 +0000)]
Now that the Adaptec 2842 has its own probe routine, no need to have
a comment saying its probe routine needs to be fixed.

19 years agoStyle(9) pass before some planned larger changes.
imp [Thu, 17 Mar 2005 17:33:52 +0000 (17:33 +0000)]
Style(9) pass before some planned larger changes.
o return (foo);
o if (a == NULL) in preference to if (!a)
o () and {} reduction
o minor indentation fixes

19 years agoA further step on the journey of meaking panics and debugging more reliable:
rwatson [Thu, 17 Mar 2005 15:18:01 +0000 (15:18 +0000)]
A further step on the journey of meaking panics and debugging more reliable:
in the window between the beginning of panic() and entering the debugger,
it's possible to receive interrupts.  If we receive an interrupt, don't
preempt if panicstr != NULL, as the system is in the process of failing, and
the preempting thread is likely to stumble over the failure.  The typical
scenario is during the printf() in panic() prior to entering the debugger,
but when running with a slower console type such as serial console.

It could be that the panic string should be passed to the debugger to print,
so that it can run from the debugger's environment rather than a regular
kernel printf.

Glanced at by: jhb

19 years agoAlso remember to set the fsid here.
phk [Thu, 17 Mar 2005 15:15:29 +0000 (15:15 +0000)]
Also remember to set the fsid here.

19 years agoForgot to replace code to set fsid in vop_getattr.
phk [Thu, 17 Mar 2005 14:43:40 +0000 (14:43 +0000)]
Forgot to replace code to set fsid in vop_getattr.

19 years agoDo not try to free non allocated memory in error case.
bz [Thu, 17 Mar 2005 14:27:22 +0000 (14:27 +0000)]
Do not try to free non allocated memory in error case.
Do our best to plug some memory leaks (VPD data, jumbo memory buffer,...).
Log if we cannot free because memory still in use[1].
Change locking to avoid ''acquiring duplicate lock of same
  type: "network driver"'' and potential deadlock. Also seems to fix LOR #063.

[1] This change does not solve problems if buffers are still in use when
    unloading if_sk.ko. There is ongoing work which will address jumbogram
    allocations in a more general way.

PR: kern/75677 (with changes, no mii fixes in here)
Tested by: net, Antoine Brodin (slightly different version)
Approved by: rwatson (mentor)
MFC after: 5 days

19 years ago* Lower interrupt moderation timer 200->100.
bz [Thu, 17 Mar 2005 14:23:13 +0000 (14:23 +0000)]
* Lower interrupt moderation timer 200->100.
Obtained from: NetBSD if_sk.c rev. 1.11

* Make interrupt moderation configurable via sysctl/tuneable.
PR: kern/41220
Approved by: rwatson (mentor)

19 years ago* Improve chip identification.
bz [Thu, 17 Mar 2005 14:21:51 +0000 (14:21 +0000)]
* Improve chip identification.
Obtained from: NetBSD if_sk.c rev. 1.11

* Take PHY out of reset for Yukon Lite Rev. A3.
Submitted by: postings on net@ in thread "skc0: no PHY found", 2005-02-22

Tested by: net
Approved by: rwatson (mentor)
MFC after: 5 days

19 years ago* When adding/deleting multicast addresses, only whack the address filter
bz [Thu, 17 Mar 2005 14:18:58 +0000 (14:18 +0000)]
* When adding/deleting multicast addresses, only whack the address filter
  if the interface is marked RUNNING.
Obtained from: NetBSD if_sk.c rev. 1.12

* Don't initialize the card (and start an autonegotiation) every time the IP
  address changes. Makes 'dhclient sk0' invocations way faster and more
  consistant. i.e. one DHCPREQUEST elicits the DHCPACK.
Obtained from: OpenBSD if_sk.c rev. 1.56

* Additional locking changes in sk_ioctl.

PR: kern/61296 should see improvements by the last two.
Approved by: rwatson (mentor)
MFC after: 5 days

19 years agoReleasing TX/RX descriptor dmamaps during device detachment instead of
avatar [Thu, 17 Mar 2005 13:59:30 +0000 (13:59 +0000)]
Releasing TX/RX descriptor dmamaps during device detachment instead of
doing that in bfe_stop().

This should fix a panic recently reported on -current occuring when taking
device down then up.  In the original implementation, an "ifconfig bfe0 down"
triggers bfe_stop(), which also destroys all TX/RX descriptor dmamaps. Hence
the subsequent "ifconfig bfe0 up" would force the device to use those
already-released dmamap and thus panic the kernel.

PR: kern/77804
Submitted by: Frank Mayhar <frank at exit dot com>
Reviewed by: dmlb, sam (mentor)
Tested by: Phil <pcasidy at casidy dot com>, myself
MFC after: 1 week

19 years agoKill MAJOR_AUTO
phk [Thu, 17 Mar 2005 13:37:28 +0000 (13:37 +0000)]
Kill MAJOR_AUTO

19 years agoPrepare for the final onslaught on devices:
phk [Thu, 17 Mar 2005 12:07:00 +0000 (12:07 +0000)]
Prepare for the final onslaught on devices:

Move uid/gid/mode from cdev to cdevsw.

Add kind field to use for devd(8) later.

Bump both D_VERSION and __FreeBSD_version

19 years ago - Don't lock the vnode interlock in vm_object_set_writeable_dirty() if
jeff [Thu, 17 Mar 2005 12:03:42 +0000 (12:03 +0000)]
 - Don't lock the vnode interlock in vm_object_set_writeable_dirty() if
   we've already set the object flags.

Reviewed by: alc

19 years ago - Lock the clearing of v_data so it is safe to inspect it with the
jeff [Thu, 17 Mar 2005 12:00:05 +0000 (12:00 +0000)]
 - Lock the clearing of v_data so it is safe to inspect it with the
   interlock.

Sponsored by: Isilon Systems, Inc.

19 years ago - Lock the clearing of v_data in ufs_reclaim() to prevent a pagefault
jeff [Thu, 17 Mar 2005 11:58:43 +0000 (11:58 +0000)]
 - Lock the clearing of v_data in ufs_reclaim() to prevent a pagefault
   in ffs_lock() when it acesses v_data without the vnlock.

Sponsored by: Isilon Systems, Inc.

19 years agoThere is no longer a KNOWN_DEFECTS file, so don't try to install it.
dougb [Thu, 17 Mar 2005 10:15:29 +0000 (10:15 +0000)]
There is no longer a KNOWN_DEFECTS file, so don't try to install it.

19 years agoRemove unused variable.
phk [Thu, 17 Mar 2005 09:32:37 +0000 (09:32 +0000)]
Remove unused variable.

Detected by: Coverity (ID#704)

19 years agoIn stange circumstances we may end up being the last reference to a
phk [Thu, 17 Mar 2005 08:44:41 +0000 (08:44 +0000)]
In stange circumstances we may end up being the last reference to a
session in tprintf().   SESSRELE() needs to properly dispose of the
sessions mutex.

Add sessrele() which does the proper cleanup and have SESSRELE() call it.

Use SESSRELE also in pgdelete().

Found by: Coverity (ID:526)

19 years agoExpand and refine a few sections for future reference
dougb [Thu, 17 Mar 2005 08:40:41 +0000 (08:40 +0000)]
Expand and refine a few sections for future reference

19 years agoDelete all aix ports
dougb [Thu, 17 Mar 2005 08:40:11 +0000 (08:40 +0000)]
Delete all aix ports

19 years agoRegenerate for 9.3.1
dougb [Thu, 17 Mar 2005 08:39:12 +0000 (08:39 +0000)]
Regenerate for 9.3.1

19 years agobmake changes to handle the move of dns/sec and related files
dougb [Thu, 17 Mar 2005 08:35:21 +0000 (08:35 +0000)]
bmake changes to handle the move of dns/sec and related files

19 years agoThis commit was generated by cvs2svn to compensate for changes in r143734,
dougb [Thu, 17 Mar 2005 08:10:34 +0000 (08:10 +0000)]
This commit was generated by cvs2svn to compensate for changes in r143734,
which included commits to RCS files with non-trunk default branches.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r143731,
dougb [Thu, 17 Mar 2005 08:04:02 +0000 (08:04 +0000)]
This commit was generated by cvs2svn to compensate for changes in r143731,
which included commits to RCS files with non-trunk default branches.

19 years agoVendor import of BIND 9.3.1
dougb [Thu, 17 Mar 2005 08:04:02 +0000 (08:04 +0000)]
Vendor import of BIND 9.3.1

19 years agoBring back some of the ioctl junk that was removed in rev 1.59 as a
cognet [Thu, 17 Mar 2005 01:20:49 +0000 (01:20 +0000)]
Bring back some of the ioctl junk that was removed in rev 1.59 as a
i386-only kernel option, ASR_COMPAT, and under BURN_BRIDGES.
It is really ugly, but raidutils depends on it.

Discussed with: scottl

19 years agoUse PCIR_BARS instead of PCIR_MAPS.
cognet [Thu, 17 Mar 2005 00:43:57 +0000 (00:43 +0000)]
Use PCIR_BARS instead of PCIR_MAPS.

19 years agoIntroduce a new function, pmap_wb_page(), which check all userland mappings for
cognet [Wed, 16 Mar 2005 23:56:29 +0000 (23:56 +0000)]
Introduce a new function, pmap_wb_page(), which check all userland mappings for
a given page and, if the pmap is the current pmap, write back the associated
cache line.
Use pmap_wb_page in pmap_qenter() instead of inconditionally
write back/invalidating the data cache.

19 years agoConsumers of nfslockdans() seems to think it should return 0 on success, so
cognet [Wed, 16 Mar 2005 23:55:48 +0000 (23:55 +0000)]
Consumers of nfslockdans() seems to think it should return 0 on success, so
make it so.

19 years agoSpell 'fedisableexcept' correctly.
das [Wed, 16 Mar 2005 22:34:14 +0000 (22:34 +0000)]
Spell 'fedisableexcept' correctly.

19 years agoRemove comments relevant only to pc98 as there are no amd64 pc98 machines.
imp [Wed, 16 Mar 2005 20:55:15 +0000 (20:55 +0000)]
Remove comments relevant only to pc98 as there are no amd64 pc98 machines.

19 years agoCustomize this for the alpha by removing pc98 defines (unused on alpha)
imp [Wed, 16 Mar 2005 20:54:48 +0000 (20:54 +0000)]
Customize this for the alpha by removing pc98 defines (unused on alpha)
as well as saying that the alpha is wired up in a certain way.

19 years agoPlug memory leak.
pjd [Wed, 16 Mar 2005 20:48:13 +0000 (20:48 +0000)]
Plug memory leak.

Submitted by: Ted Unangst
Found by: Coverity Prevent analysis tool
Approved by: phk
MFC after: 3 days

19 years agoEleminate 3 PC98 ifdefs:
imp [Wed, 16 Mar 2005 20:46:16 +0000 (20:46 +0000)]
Eleminate 3 PC98 ifdefs:
o Use IP_NPX in preference to hard coded value to write 0 to clear busy#
o Use md macro for a full reset of the npx
o Use IRQ_NPX in preference to hard coded value for each platform.

# The other two ifdefs in this file are hard to remove

19 years agoDefine IRQ_NPX for the irq used for the npx. Define macro for a full
imp [Wed, 16 Mar 2005 20:44:19 +0000 (20:44 +0000)]
Define IRQ_NPX for the irq used for the npx.  Define macro for a full
reset of of npx, as appropriate for the platform.

19 years agocorrect comparison for null ptr
sam [Wed, 16 Mar 2005 20:42:00 +0000 (20:42 +0000)]
correct comparison for null ptr

Noticed by: Coverity Prevent analysis tool

19 years agoavoid potential array index by -1
sam [Wed, 16 Mar 2005 20:40:48 +0000 (20:40 +0000)]
avoid potential array index by -1

Noticed by: Coverity Prevent analysis tool

19 years agoeliminate use after free in debug code
sam [Wed, 16 Mar 2005 20:39:05 +0000 (20:39 +0000)]
eliminate use after free in debug code

Noticed by: Coverity Prevent analysis tool

19 years agokill dead code
sam [Wed, 16 Mar 2005 20:35:23 +0000 (20:35 +0000)]
kill dead code

Noticed by: Coverity Prevent analysis tool

19 years agobus_alloc_resource must obey the same rules as
imp [Wed, 16 Mar 2005 20:31:46 +0000 (20:31 +0000)]
bus_alloc_resource must obey the same rules as
rman_resource_resournce_bound wrt end parameter.  The end parameter
here was the same as the start.  However, it should be start + count -
1, so make it that instead.

19 years agoMake it clear nve needs mii, and shorten long comment line.
obrien [Wed, 16 Mar 2005 20:23:31 +0000 (20:23 +0000)]
Make it clear nve needs mii, and shorten long comment line.

19 years ago- Replace fe[gs]etmask() with feenableexcept(), fedisableexcept(), and
das [Wed, 16 Mar 2005 19:04:45 +0000 (19:04 +0000)]
- Replace fe[gs]etmask() with feenableexcept(), fedisableexcept(), and
  fegetexcept().
- Add additional tests for the above.
- Output a separate success message for each of the 8 components of
  this set of tests.

19 years agoDocument feenableexcept(), fedisableexcept(), and fegetexcept().
das [Wed, 16 Mar 2005 19:04:28 +0000 (19:04 +0000)]
Document feenableexcept(), fedisableexcept(), and fegetexcept().

19 years agoReplace fegetmask() and fesetmask() with feenableexcept(),
das [Wed, 16 Mar 2005 19:03:46 +0000 (19:03 +0000)]
Replace fegetmask() and fesetmask() with feenableexcept(),
fedisableexcept(), and fegetexcept().  These two sets of routines
provide the same functionality.  I implemented the former as an
undocumented internal interface to make the regression test easier to
write.  However, fe(enable|disable|get)except() is already part of
glibc, and I would like to avoid gratuitous differences.  The only
major flaw in the glibc API is that there's no good way to report
errors on processors that don't support all the unmasked exceptions.

19 years agoUnload and destroy the TX DMA maps before destroying the DMA tag
mux [Wed, 16 Mar 2005 16:39:04 +0000 (16:39 +0000)]
Unload and destroy the TX DMA maps before destroying the DMA tag
they're attached to, not after.

Spotted by: Coverity via sam

19 years agoNow that there are no users of Lst_ForEach and Lst_ForEachFrom are left
harti [Wed, 16 Mar 2005 16:11:11 +0000 (16:11 +0000)]
Now that there are no users of Lst_ForEach and Lst_ForEachFrom are left
delete these two macros and all the associated stuff.

19 years agoReplace Lst_ForEach by LST_FOREACH.
harti [Wed, 16 Mar 2005 16:02:09 +0000 (16:02 +0000)]
Replace Lst_ForEach by LST_FOREACH.

19 years agoReplace another bunch of Lst_ForEachs by LST_FOREACHs and simplify code.
harti [Wed, 16 Mar 2005 12:22:15 +0000 (12:22 +0000)]
Replace another bunch of Lst_ForEachs by LST_FOREACHs and simplify code.

19 years agoUse vfs_hash.
phk [Wed, 16 Mar 2005 11:28:19 +0000 (11:28 +0000)]
Use vfs_hash.

19 years agoAdd two arguments to the vfs_hash() KPI so that filesystems which do
phk [Wed, 16 Mar 2005 11:20:51 +0000 (11:20 +0000)]
Add two arguments to the vfs_hash() KPI so that filesystems which do
not have unique hashes (NFS) can also use it.

19 years agoRemove unused file
phk [Wed, 16 Mar 2005 11:10:38 +0000 (11:10 +0000)]
Remove unused file

19 years agoFix a memoryleak in case of failed root filesystem mount.
phk [Wed, 16 Mar 2005 11:06:49 +0000 (11:06 +0000)]
Fix a memoryleak in case of failed root filesystem mount.

Spotted by:     Coverity via sam

19 years agoDike out another kvm indiscretion.
phk [Wed, 16 Mar 2005 10:24:16 +0000 (10:24 +0000)]
Dike out another kvm indiscretion.

19 years agoStart natd(8) before loading firewall rules, to give the
ru [Wed, 16 Mar 2005 08:47:48 +0000 (08:47 +0000)]
Start natd(8) before loading firewall rules, to give the
ipdivert.ko module a chance to load.

19 years agoMFp4: use the function to fix the packet header length instead of rolling
jmg [Wed, 16 Mar 2005 08:13:08 +0000 (08:13 +0000)]
MFp4: use the function to fix the packet header length instead of rolling
our own...

19 years agoRemove inode fields previously used for private inode hash tables.
phk [Wed, 16 Mar 2005 08:09:52 +0000 (08:09 +0000)]
Remove inode fields previously used for private inode hash tables.