dragonfly.git
14 years agoRemove obsolete prototype and documentation of the suser_proc()
Sascha Wildner [Thu, 26 Oct 2006 12:58:30 +0000 (12:58 +0000)]
Remove obsolete prototype and documentation of the suser_proc()
function (which was never actually implemented).

OK'd-by:        dillon
Manpage-fix-by: Matthias Schmidt <schmidtm@mathematik.uni-marburg.de>
14 years agoFix a stack overflow due to recursion. When the namecache must invalidate
Matthew Dillon [Thu, 26 Oct 2006 02:27:19 +0000 (02:27 +0000)]
Fix a stack overflow due to recursion.  When the namecache must invalidate
an entire subtree the depth of the tree can cause the kernel stack to
overflow.  Implement a simple algorithm which limits the recursion depth.
When the recursion depth is reached the current namecache node is recorded
and further recursion does not occur.  The top level then recalls the
deletion at the recorded node, then restarts.

When removing a file or directory, invalidate all namecache records
associated with the vnode rather then just the one led to by the current
path.  Note that RENAME is not fixed and requires a more sophisticated
solution.  These fixes effect NULLFS.

14 years agoDo a major clean-up of the BUSDMA architecture. A large number of
Matthew Dillon [Wed, 25 Oct 2006 20:56:03 +0000 (20:56 +0000)]
Do a major clean-up of the BUSDMA architecture.  A large number of
essentially machine-independant drivers use the structures and definitions
in machine-dependant directories that are really machine-independant in
nature.

Split <machine/bus_dma.h> into machine-depdendant and machine-independant parts
and make the primary access run through <sys/bus_dma.h>.

Remove <machine/bus.h>, <machine/bus_memio.h> and <machine/bus_pio.h>.  The
optimizations related to bus_memio.h and bus_pio.h made a huge mess,
introduced machine-specific knowledge into essentially machine-independant
drivers, and required specific #include file orderings to do their job.
They may be reintroduced in some other form later on.

Move <machine/resource.h> to <sys/bus_resource.h>.  The contents of the file
is machine-independant or can be made a superset across many platforms.

Make <sys/bus.h> include <sys/bus_dma.h> and <sys/bus_resource.h> and
include <sys/bus.h> where necessary. Remove all #include's of
<machine/resource.h> and <machine/bus.h>.  That is, make the BUSDMA
infrastructure integral to I/O-mapped and memory-mapped accesses to devices
and remove a large chunk of machine-specific dependancies from drivers.
bus_if.h and device_if.h are now required to be present when using <sys/bus.h>.

14 years agoFix typos in some messages: writting -> writing
Sascha Wildner [Wed, 25 Oct 2006 08:27:27 +0000 (08:27 +0000)]
Fix typos in some messages: writting -> writing

14 years agoLocalize some variables.
Jeffrey Hsu [Wed, 25 Oct 2006 07:41:45 +0000 (07:41 +0000)]
Localize some variables.

14 years agoUnbreak compilation without IPSEC: move variables into conditional
Simon Schubert [Wed, 25 Oct 2006 07:02:27 +0000 (07:02 +0000)]
Unbreak compilation without IPSEC:  move variables into conditional

14 years agoPurge the IFQ when associating a new altq. Packets that have already been
Matthew Dillon [Tue, 24 Oct 2006 17:16:13 +0000 (17:16 +0000)]
Purge the IFQ when associating a new altq.   Packets that have already been
queued are not visible to the new altq and consequently not removed when
the altq is disassociated, resulting in a panic.

Reported-by: Kyle Butt <kylebutt@gmail.com>
14 years agoFix file-/pathnames which have changed now.
Sascha Wildner [Tue, 24 Oct 2006 17:09:46 +0000 (17:09 +0000)]
Fix file-/pathnames which have changed now.

14 years agoFix compilation error with IPSEC.
Jeffrey Hsu [Tue, 24 Oct 2006 16:33:11 +0000 (16:33 +0000)]
Fix compilation error with IPSEC.
Use boolean type and values for boolean variables.

14 years agoAdd support in ONOE/AMRR for drivers that can't provide per TX statistics:
Sepherosa Ziehau [Tue, 24 Oct 2006 14:39:45 +0000 (14:39 +0000)]
Add support in ONOE/AMRR for drivers that can't provide per TX statistics:
- Add callback function pointer ieee80211_ratectl_state.rc_st_state, which
  will be called periodically by ONOE/AMRR during their internal state
  updating.  This callback function pointer should return a
  ieee80211_ratectl_stats struct, which provides statistics concerning TX.
- Add ieee80211_ratectl_state.rc_st_valid_stats bitmask.  It is used to
  tell ONOE/AMRR which fields of ieee80211_ratectl_stats are valid.
- Make ONOE/AMRR spit out a warning message if driver can't provide per TX
  statistics and the statistics in ieee80211_ratectl_stats are not enough to
  do proper TX rate control.

Drivers that can't provide per TX statistics should setup
ieee80211_ratectl_state.rc_st_state and
ieee80211_ratectl_state.rc_st_valid_stats before ieee80211_ifattach().

Add ieee80211_ratectl_state.rc_st_param, it could be used by drivers to
override TX rate control algorithm's default tunable values.  This field should
be allocated, setup and freed in ieee80211_ratectl_state.rc_st_change.  Drivers
that is going to override TX rate control algorithm's default tunable values
should include specific TX rate control algorithm's parameter header file
e.g. netproto/802_11/wlan_ratectl/ieee80211_amrr_param.h

14 years agoNow that we support foo_enable="YES|NO" as well as foo="YES|NO" some
Victor Balada Diaz [Tue, 24 Oct 2006 09:24:15 +0000 (09:24 +0000)]
Now that we support foo_enable="YES|NO" as well as foo="YES|NO" some
variables collide because they use foo="" for something else.

Rename those variables to non-conflicting names.

Noticed-by: Sascha Wildner
The securelevel stuff is based on Kevin L. Kane work.

14 years agoRemove nested block.
Jeffrey Hsu [Tue, 24 Oct 2006 07:27:26 +0000 (07:27 +0000)]
Remove nested block.

14 years agoCosmetic changes.
Jeffrey Hsu [Tue, 24 Oct 2006 06:49:52 +0000 (06:49 +0000)]
Cosmetic changes.

14 years agoCosmetic changes.
Jeffrey Hsu [Tue, 24 Oct 2006 06:18:42 +0000 (06:18 +0000)]
Cosmetic changes.

14 years agoEliminate a macro layer of indirection to clear up the control flow.
Jeffrey Hsu [Tue, 24 Oct 2006 02:52:10 +0000 (02:52 +0000)]
Eliminate a macro layer of indirection to clear up the control flow.

14 years agoFurther normalize the _XXX_H_ symbols used to conditionalize header file
Matthew Dillon [Mon, 23 Oct 2006 21:59:18 +0000 (21:59 +0000)]
Further normalize the _XXX_H_ symbols used to conditionalize header file
inclusion.

Use _MACHINE_BLAH_H_ for headers found in "/usr/src/sys/arch/<arch>/include".
Most headers already did this, but some did not.

Use _ARCH_SUBDIR_BLAH_H_ for headers found in "/usr/src/sys/arch/<arch>/subdir
"
instead of _I386_SUBDIR_BLAH_H_.

Change #include's made in architecture-specific directories to use
<machine/blah.h> instead of "blah.h", allowing the included header files
to be overrdden by another architecture.  For example, a virtual kernel
architecture might include a header from arch/i386/include which then
includes some other header in arch/i386/include.  But really we want that
other header to also go via the arch/vkernel/include, so the header files
in arch/i386/include must use <machine/blah.h> instead of "blah.h" for most
of their sub-includes.

Change most architecture-specific includes such as <i386/icu/icu.h> to
use a generic path through the "arch" softlink, such as <arch/icu/icu.h>.

Remove the temporary -I@/arch shim made in a recent commit, the <arch/...>
mechanism replaces it.

These changes allow us to implement heirarchical architectural overrides,
primarily intended for virtual kernel support.  A virtual kernel uses an
architecture of 'vkernel' but must be able to access actual cpu-specific
header files such as those found in arch/i386.  It does this using a
"cpu" softlink.  For example, someone including <machine/atomic.h> in a
vkernel build would hit the "arch/vkernel/include/atomic.h" header, and this
header could then #include <cpu/atomic.h> to access the actual cpu's
atomic.h file: "arch/i386/include/atomic.h".

The ultimate effect is that an architecture can build on another
architecture's header and source files.

14 years agoFurther normalize the _XXX_H_ symbols used to conditionalize header file
Matthew Dillon [Mon, 23 Oct 2006 21:50:33 +0000 (21:50 +0000)]
Further normalize the _XXX_H_ symbols used to conditionalize header file
inclusion.

Use _MACHINE_BLAH_H_ for headers found in "/usr/src/sys/arch/<arch>/include".
Most headers already did this, but some did not.

Use _ARCH_SUBDIR_BLAH_H_ for headers found in "/usr/src/sys/arch/<arch>/subdir"
instead of _I386_SUBDIR_BLAH_H_.

Change #include's made in architecture-specific directories to use
<machine/blah.h> instead of "blah.h", allowing the included header files
to be overrdden by another architecture.  For example, a virtual kernel
architecture might include a header from arch/i386/include which then
includes some other header in arch/i386/include.  But really we want that
other header to also go via the arch/vkernel/include, so the header files
in arch/i386/include must use <machine/blah.h> instead of "blah.h" for most
of their sub-includes.

Change most architecture-specific includes such as <i386/icu/icu.h> to
use a generic path through the "arch" softlink, such as <arch/icu/icu.h>.

Remove the temporary -I@/arch shim made in a recent commit, the <arch/...>
mechanism replaces it.

These changes allow us to implement heirarchical architectural overrides,
primarily intended for virtual kernel support.  A virtual kernel uses an
architecture of 'vkernel' but must be able to access actual cpu-specific
header files such as those found in arch/i386.  It does this using a
"cpu" softlink.  For example, someone including <machine/atomic.h> in a
vkernel build would hit the "arch/vkernel/include/atomic.h" header, and this
header could then #include <cpu/atomic.h> to access the actual cpu's
atomic.h file: "arch/i386/include/atomic.h".

The ultimate effect is that an architecture can build on another
architecture's header and source files.

14 years agoBump the config version. Add a 'cpu_arch' directive that allows the
Matthew Dillon [Mon, 23 Oct 2006 18:01:15 +0000 (18:01 +0000)]
Bump the config version.  Add a 'cpu_arch' directive that allows the
cpu architecture for the virtual machine to be specified.  This also
creates additional softlinks for <cpu/*.h> and <cpu_arch/...> to allow
a virtual machine to access cpu-architecture-specific files.

14 years agoGet rid of the indirect function pointer for bzero(). We haven't used it
Matthew Dillon [Mon, 23 Oct 2006 15:42:50 +0000 (15:42 +0000)]
Get rid of the indirect function pointer for bzero().  We haven't used it
to install a more 'optimized' version of bzero in a long time, and it
isn't compatible with libc.

14 years agoRather than making static declarations global, get rid of the extern.
Sascha Wildner [Mon, 23 Oct 2006 09:27:37 +0000 (09:27 +0000)]
Rather than making static declarations global, get rid of the extern.

Pointed-out-by: dillon
Additional-clue: corecode

14 years agoThe uthreads code previously didn't work for debugging while
Simon Schubert [Mon, 23 Oct 2006 09:14:55 +0000 (09:14 +0000)]
The uthreads code previously didn't work for debugging while
uthreads was not initialized yet.  Fix this by using _thread_kern_thread
if the _thread_list isn't populated yet.

14 years agoreorder libs to allow static linking
Simon Schubert [Mon, 23 Oct 2006 09:14:47 +0000 (09:14 +0000)]
reorder libs to allow static linking

14 years agoUpdate configuration instructions.
Sascha Wildner [Mon, 23 Oct 2006 07:45:47 +0000 (07:45 +0000)]
Update configuration instructions.

14 years agoFix paths to arch/i386, related to the recent architecture topology changes.
Matthew Dillon [Sun, 22 Oct 2006 18:43:52 +0000 (18:43 +0000)]
Fix paths to arch/i386, related to the recent architecture topology changes.

14 years agomemset must be a real procedure rather then an indirect pointer because
Matthew Dillon [Sun, 22 Oct 2006 18:42:12 +0000 (18:42 +0000)]
memset must be a real procedure rather then an indirect pointer because
GCC-4.x calls it directly.

14 years agoAdd advice if a kernel config file cannot be found to remind people that
Matthew Dillon [Sun, 22 Oct 2006 16:26:44 +0000 (16:26 +0000)]
Add advice if a kernel config file cannot be found to remind people that
the config directory has changed.

14 years agoReorganize the way machine architectures are handled. Consolidate the
Matthew Dillon [Sun, 22 Oct 2006 16:12:50 +0000 (16:12 +0000)]
Reorganize the way machine architectures are handled.  Consolidate the
kernel configurations into a single generic directory.  Move machine-specific
Makefile's and loader scripts into the appropriate architecture directory.

Kernel and module builds also generally add sys/arch to the include path so
source files that include architecture-specific headers do not have to
be adjusted.

sys/<ARCH>            -> sys/arch/<ARCH>
sys/conf/*.<ARCH>     -> sys/arch/<ARCH>/conf/*.<ARCH>
sys/<ARCH>/conf/<KERNEL> -> sys/config/<KERNEL>

14 years agoReorganize the way machine architectures are handled. Consolidate the
Matthew Dillon [Sun, 22 Oct 2006 16:09:22 +0000 (16:09 +0000)]
Reorganize the way machine architectures are handled.  Consolidate the
kernel configurations into a single generic directory.  Move machine-specific
Makefile's and loader scripts into the appropriate architecture directory.

Kernel and module builds also generally add sys/arch to the include path so
source files that include architecture-specific headers do not have to
be adjusted.

sys/<ARCH> -> sys/arch/<ARCH>
sys/conf/*.<ARCH> -> sys/arch/<ARCH>/conf/*.<ARCH>
sys/<ARCH>/conf/<KERNEL> -> sys/config/<KERNEL>

14 years agoFix typos.
Sascha Wildner [Sat, 21 Oct 2006 22:44:34 +0000 (22:44 +0000)]
Fix typos.

14 years agoUse .Ft for function types.
Sascha Wildner [Sat, 21 Oct 2006 22:30:25 +0000 (22:30 +0000)]
Use .Ft for function types.

14 years agoFix typo.
Sascha Wildner [Sat, 21 Oct 2006 22:17:09 +0000 (22:17 +0000)]
Fix typo.

14 years agoWOL_MAGIC 0x7770 -> 0x1111
Sepherosa Ziehau [Sat, 21 Oct 2006 09:25:58 +0000 (09:25 +0000)]
WOL_MAGIC 0x7770 -> 0x1111

Obtained-from: FreeBSD

# This "magic" change of the "magic" value is submitted by
#   Peer Chen at nVIDIA
# to FreeBSD

14 years agoAdjust to post Citrus import reality.
Sascha Wildner [Sat, 21 Oct 2006 08:57:31 +0000 (08:57 +0000)]
Adjust to post Citrus import reality.

14 years agoChange the AMRR TX rate control algorithm:
Sepherosa Ziehau [Sat, 21 Oct 2006 08:37:04 +0000 (08:37 +0000)]
Change the AMRR TX rate control algorithm:
- Bookkeeping number of TX (counter1), and number of "fail to TX at
  desired rate" (counter2), instead of bookkeeping number of TX at
  each rate (old_counter[1-4]).
- Calculate "failure" and "success" conditions using 'counter1' and
  'counter2', instead of only using 'old_counter1' and 'old_counter2'.
  The mistake of the old way is that 'old_counter3' and 'old_counter4'
  should also be taken as "fail to TX at desired rate".
- Nuke no longer needed macro after above changes.

This change is tested with acx(4).  The testing result shows much
better TX performance under bad enviroment (e.g. lots of concrete
obstacles between STA and AP, long distance etc.).

14 years agoNuke M_HASFCS processing in ieee80211_input(), since
Sepherosa Ziehau [Sat, 21 Oct 2006 05:21:30 +0000 (05:21 +0000)]
Nuke M_HASFCS processing in ieee80211_input(), since
- It is easy for drivers to process trailing FCS after calling bpf_ptap().
- As mentioned by y0netan1@ in
  http://leaf.dragonflybsd.org/mailarchive/bugs/2006-06/msg00034.html ,
  leaving it there probably will bite us in the future.

14 years agoReformulate the way the kernel updates the PMAPs in the system when adding
Matthew Dillon [Sat, 21 Oct 2006 04:28:22 +0000 (04:28 +0000)]
Reformulate the way the kernel updates the PMAPs in the system when adding
a new page table page to expand kernel memory.  Keep track of the PMAPs in
their own list rather then scanning the process list to locate them.  This
allows PMAPs managed on behalf of virtual kernels to be properly updated.

VM spaces can now be allocated from scratch and may not have a parent
template to inherit certain fields from.  Make sure these fields are
properly cleared.

14 years agoAdd some casts to bring us up to WARNS2. This is almost WARNS6 except for
Peter Avalos [Sat, 21 Oct 2006 04:10:02 +0000 (04:10 +0000)]
Add some casts to bring us up to WARNS2.  This is almost WARNS6 except for
1 warning coming from the dblksize macro in <vfs/ufs/fs.h>.

14 years agoFix typo.
Sascha Wildner [Fri, 20 Oct 2006 19:11:25 +0000 (19:11 +0000)]
Fix typo.

14 years agoAdd the -D flag to specify an alternative dumpdev.
Simon Schubert [Fri, 20 Oct 2006 18:30:12 +0000 (18:30 +0000)]
Add the -D flag to specify an alternative dumpdev.

mdoc-help-by: swildner

14 years agoAdd a ton of infrastructure for VKERNEL support. Add code for intercepting
Matthew Dillon [Fri, 20 Oct 2006 17:02:19 +0000 (17:02 +0000)]
Add a ton of infrastructure for VKERNEL support.   Add code for intercepting
traps and system calls, for switching to and executing a foreign VM space,
and for accessing trap frames.

14 years agoRemove an unused argument and mark it WARNS6.
Peter Avalos [Fri, 20 Oct 2006 14:50:42 +0000 (14:50 +0000)]
Remove an unused argument and mark it WARNS6.

14 years agoMove WANT_LUKEMFTPD up a few lines so it's not grouped with the cvsup
Peter Avalos [Fri, 20 Oct 2006 14:18:26 +0000 (14:18 +0000)]
Move WANT_LUKEMFTPD up a few lines so it's not grouped with the cvsup
options.

Reported by: Trevor Kendall <trevorjk@gmail.com>

14 years agoRefactor internal ip6_splithdr() API to make it more of a pure function
Jeffrey Hsu [Fri, 20 Oct 2006 11:12:17 +0000 (11:12 +0000)]
Refactor internal ip6_splithdr() API to make it more of a pure function
by removing side-effects.

14 years agoWARNS6 cleanups for quotacheck.
Peter Avalos [Thu, 19 Oct 2006 21:22:13 +0000 (21:22 +0000)]
WARNS6 cleanups for quotacheck.

14 years agoRemove a check that is always false.
Peter Avalos [Thu, 19 Oct 2006 21:11:13 +0000 (21:11 +0000)]
Remove a check that is always false.

14 years agoRemove variable names from function prototypes, and add a complete
Peter Avalos [Thu, 19 Oct 2006 20:51:40 +0000 (20:51 +0000)]
Remove variable names from function prototypes, and add a complete
prototype for inodesc.id_func.

There will be further WARNS cleanups to follow...

14 years agos/free/kfree/
Sascha Wildner [Thu, 19 Oct 2006 20:11:52 +0000 (20:11 +0000)]
s/free/kfree/

14 years agoAdjust stuff to the renaming of free to kfree and realloc to krealloc
Sascha Wildner [Thu, 19 Oct 2006 19:00:47 +0000 (19:00 +0000)]
Adjust stuff to the renaming of free to kfree and realloc to krealloc
also.

14 years agoAdjust man pages, comments, messages and some defunct driver generation
Sascha Wildner [Thu, 19 Oct 2006 18:44:01 +0000 (18:44 +0000)]
Adjust man pages, comments, messages and some defunct driver generation
scripts to the recent malloc(9) -> kmalloc(9) renaming.

14 years agoAdd reallocf.9 for removal with 'make upgrade'.
Sascha Wildner [Thu, 19 Oct 2006 13:14:32 +0000 (13:14 +0000)]
Add reallocf.9 for removal with 'make upgrade'.

14 years agoCosmetic cleanups.
Jeffrey Hsu [Thu, 19 Oct 2006 07:12:14 +0000 (07:12 +0000)]
Cosmetic cleanups.

14 years agoSupport enabling daemons in base and pkgsrc like NetBSD and FreeBSD, ie:
Victor Balada Diaz [Wed, 18 Oct 2006 21:44:41 +0000 (21:44 +0000)]
Support enabling daemons in base and pkgsrc like NetBSD and FreeBSD, ie:
foo="YES|NO" and foo_enable="YES|NO"

14 years agoUpdate to new API and make it compile and work again
Victor Balada Diaz [Wed, 18 Oct 2006 21:38:23 +0000 (21:38 +0000)]
Update to new API and make it compile and work again

14 years agoupdate man page:
Victor Balada Diaz [Wed, 18 Oct 2006 21:30:06 +0000 (21:30 +0000)]
update man page:
malloc - kmalloc
free - kfree
realloc - krealloc
reallocf - no longer in tree, deleted

14 years agoOpenBSD rev 1.66:
Jeffrey Hsu [Wed, 18 Oct 2006 06:27:43 +0000 (06:27 +0000)]
OpenBSD rev 1.66:
 date: 2003-07-08 04:01:20 -0700;  author: markus;  state: Exp;  lines: +31 -3;
 Make sure the packets contains a complete inner header for ip{4,6}-in-ip{4,6}
 encapsulation.  Fixes panic for truncated ip-in-ip over ipsec.
Same as FreeBSD rev 1.5.

14 years agoFix spelling error.
Peter Avalos [Tue, 17 Oct 2006 19:20:49 +0000 (19:20 +0000)]
Fix spelling error.

Submitted-by: Francis GUDIN <fgudin@nerim.net>

14 years agoregen
Sepherosa Ziehau [Tue, 17 Oct 2006 12:38:25 +0000 (12:38 +0000)]
regen

14 years agoAdd device id for USR Robotics 997902 Gigabit Ethernet
Sepherosa Ziehau [Tue, 17 Oct 2006 12:37:46 +0000 (12:37 +0000)]
Add device id for USR Robotics 997902 Gigabit Ethernet

14 years agoregen
Sepherosa Ziehau [Tue, 17 Oct 2006 12:26:52 +0000 (12:26 +0000)]
regen

14 years agoMore Realtek chip IDs
Sepherosa Ziehau [Tue, 17 Oct 2006 12:26:02 +0000 (12:26 +0000)]
More Realtek chip IDs

14 years agoWe're long on 1.7, so remove 1.5 subvers info
Simon Schubert [Tue, 17 Oct 2006 10:36:34 +0000 (10:36 +0000)]
We're long on 1.7, so remove 1.5 subvers info

14 years agoWARNS6 cleanups.
Peter Avalos [Tue, 17 Oct 2006 02:18:51 +0000 (02:18 +0000)]
WARNS6 cleanups.

14 years agoPull WARNS6 into sbin/Makefile.inc, and mark programs that are not WARNS6
Peter Avalos [Tue, 17 Oct 2006 00:55:44 +0000 (00:55 +0000)]
Pull WARNS6 into sbin/Makefile.inc, and mark programs that are not WARNS6
in their own Makefiles.

14 years agoWARNS6 cleanup.
Peter Avalos [Mon, 16 Oct 2006 22:02:22 +0000 (22:02 +0000)]
WARNS6 cleanup.

14 years agoAdd comment that Rev.3 Linksys EG1032 is handled by re(4)
Sepherosa Ziehau [Mon, 16 Oct 2006 14:22:38 +0000 (14:22 +0000)]
Add comment that Rev.3 Linksys EG1032 is handled by re(4)

14 years agoAdd support for Linksys EG1032 rev.3 GigE
Sepherosa Ziehau [Mon, 16 Oct 2006 14:15:51 +0000 (14:15 +0000)]
Add support for Linksys EG1032 rev.3 GigE

Obtained-from: FreeBSD (jhb@freebsd.org)

14 years agosk(4) only supports Rev.2 of Linksys EG1032 GigE
Sepherosa Ziehau [Mon, 16 Oct 2006 14:12:34 +0000 (14:12 +0000)]
sk(4) only supports Rev.2 of Linksys EG1032 GigE

Obtained-from: FreeBSD (jhb@freebsd.org)

14 years ago- Use RE_RX_LIST_SIZE instead of RE_TX_LIST_SIZE while dealing with
Sepherosa Ziehau [Mon, 16 Oct 2006 13:32:02 +0000 (13:32 +0000)]
- Use RE_RX_LIST_SIZE instead of RE_TX_LIST_SIZE while dealing with
  RX DMA stuffs, though current RE_RX_LIST_SIZE == RE_TX_LIST_SIZE
  Obtained-from: FreeBSD (jmg@freebsd.org)
- Use BUS_DMASYNC_PREWRITE instead of BUS_DMASYNC_PREWRITE|BUS_DMASYNC_PREREAD,
  the latter does not apply to DragonFly

14 years agoAdd support Corega CG-LAPCIGT Gigabit Ethernet(8169S)
Sepherosa Ziehau [Mon, 16 Oct 2006 13:19:08 +0000 (13:19 +0000)]
Add support Corega CG-LAPCIGT Gigabit Ethernet(8169S)

Obtained-from: FreeBSD

14 years agoregen
Sepherosa Ziehau [Mon, 16 Oct 2006 13:13:44 +0000 (13:13 +0000)]
regen

14 years agoAdd device id for Corega CG-LAPCIGT (8169S)
Sepherosa Ziehau [Mon, 16 Oct 2006 13:12:52 +0000 (13:12 +0000)]
Add device id for Corega CG-LAPCIGT (8169S)

14 years agoRemove old, outdated headers
Simon Schubert [Mon, 16 Oct 2006 11:55:01 +0000 (11:55 +0000)]
Remove old, outdated headers

14 years agoWARNS6 cleanups.
Peter Avalos [Mon, 16 Oct 2006 00:15:35 +0000 (00:15 +0000)]
WARNS6 cleanups.

Add static and const where appropriate.

ANSI function declarations.

Rename variables that shadow variables higher in scope.

14 years ago* s/ports/pkgsrc/
Sascha Wildner [Sun, 15 Oct 2006 00:04:45 +0000 (00:04 +0000)]
* s/ports/pkgsrc/

* Delete references documenting FreeBSD behavior that doesn't
  exist in DragonFly.

* Delete some references to sysctls that no longer exist.

* Fix man page and additional sysinstall references.[1]

Submitted-by: Victor Balada Diaz <victor@bsdes.net>
[1] by me

14 years agoFix references and .Nm abuse.
Sascha Wildner [Sat, 14 Oct 2006 23:59:59 +0000 (23:59 +0000)]
Fix references and .Nm abuse.

14 years agoFix path names.
Sascha Wildner [Sat, 14 Oct 2006 23:46:23 +0000 (23:46 +0000)]
Fix path names.

14 years agoRemove stone age man page checking tools. They don't work anymore
Sascha Wildner [Sat, 14 Oct 2006 23:33:17 +0000 (23:33 +0000)]
Remove stone age man page checking tools. They don't work anymore
and are intended for man pages using the old man macros (of which
we only have a handful anyway).

14 years agoRemove references to device.hints.
Sascha Wildner [Sat, 14 Oct 2006 23:06:42 +0000 (23:06 +0000)]
Remove references to device.hints.

14 years agoRemove inode free race warning messages. These were originally added to
Matthew Dillon [Sat, 14 Oct 2006 16:26:40 +0000 (16:26 +0000)]
Remove inode free race warning messages.  These were originally added to
determine how often an inode free race occured and are no longer needed.
The actual handling of an inode free race is still in place.

14 years agoNever dereference a NULL pointer.
Jeffrey Hsu [Sat, 14 Oct 2006 06:22:08 +0000 (06:22 +0000)]
Never dereference a NULL pointer.

14 years agoAdd fsck's memzone.c to SRCS (needed by inode.c now).
Sascha Wildner [Thu, 12 Oct 2006 18:43:06 +0000 (18:43 +0000)]
Add fsck's memzone.c to SRCS (needed by inode.c now).

Reported-by: Ferruccio Zamuner <nonsolosoft@diff.org>
14 years agoGreatly reduce memory requirements when fsck'ing filesystems with lots
Matthew Dillon [Thu, 12 Oct 2006 04:04:03 +0000 (04:04 +0000)]
Greatly reduce memory requirements when fsck'ing filesystems with lots
of directories (23 million directories in my case), primarily by using
the correct ufs1_ino_t type instead of ino_t.  Use a linear allocator
for these as well to pack the allocations optimally.

14 years agoImplement suspend method and wait for channels to be idle
YONETANI Tomokazu [Thu, 12 Oct 2006 04:02:37 +0000 (04:02 +0000)]
Implement suspend method and wait for channels to be idle
before going to suspended state.

Taken-from: FreeBSD

14 years agoFix missing malloc -> kmalloc conversions.
Jeffrey Hsu [Thu, 12 Oct 2006 01:32:51 +0000 (01:32 +0000)]
Fix missing malloc -> kmalloc conversions.

14 years agoRemove obsolete time zone.
Sascha Wildner [Wed, 11 Oct 2006 13:28:13 +0000 (13:28 +0000)]
Remove obsolete time zone.

14 years agoAdd a manpage stub for ecc(4).
Sascha Wildner [Tue, 10 Oct 2006 21:29:13 +0000 (21:29 +0000)]
Add a manpage stub for ecc(4).

14 years agoAdd a device that attaches to the memory controller. If ECC is enabled in
Matthew Dillon [Tue, 10 Oct 2006 18:31:03 +0000 (18:31 +0000)]
Add a device that attaches to the memory controller.  If ECC is enabled in
the BIOS the device will poll the controller once a second and report
any ECC corrections or uncorrectable errors.

This module is not loaded by default.  To load the module, add the following
line to /boot/loader.conf.  The module can only be loaded at boot-time:

    ecc_load="YES"'

As of this commit, only the AMD64's memory controller is supported.

14 years agoSync zoneinfo database with tzdata2006n from elsie.
Sascha Wildner [Tue, 10 Oct 2006 17:22:50 +0000 (17:22 +0000)]
Sync zoneinfo database with tzdata2006n from elsie.

asia:           8.7 -> 8.8
europe:         8.5 -> 8.6
northamerica:   8.8 -> 8.9
southamerica:   8.4 -> 8.5
zone.tab:       8.4 -> 8.5

This change affects current time stamps:

  Jordan will switch to winter time on October 27, not September 29.
  (Thanks to Hilal Malawi and Steffen Thorsen.)

This change affects only future time stamps:

  Brazil's DST this year is the first Sunday in November to the
  last Sunday in February.  (Thanks to Frederico A. C. Neves.)

This change affects only past time stamps:

  On Sunday Nicaragua switched at 01:00, not 00:00.  (Thanks to
  Jesper Norgaard Welen.)

This change affects other indexing data:

  Serbia has split into two, and now has ISO 3166 codes, so we need a
  new Zone Europe/Podgorica.  (Thanks to Mark Davis.)

14 years agoCorrect a compiler warning from the last commit.
Matthew Dillon [Tue, 10 Oct 2006 17:16:48 +0000 (17:16 +0000)]
Correct a compiler warning from the last commit.

14 years agoNULLFS was not releasing a reference to the root of the underlying
Matthew Dillon [Tue, 10 Oct 2006 16:21:02 +0000 (16:21 +0000)]
NULLFS was not releasing a reference to the root of the underlying
filesystem on unmount, making the underlying filesystem unmountable.

Reported-by: Joerg Sonnenberger
14 years agoAdd two more vmspace_*() system calls to read and write a vmspace. These
Matthew Dillon [Tue, 10 Oct 2006 15:43:16 +0000 (15:43 +0000)]
Add two more vmspace_*() system calls to read and write a vmspace.  These
will be used by the virtual kernel to handle copyin/copyout.  The routines
are just empty wrappers at the moment.

Implement the body for vmspace_mmap() and vmspace_munmap().

14 years agoFix a long-standing bug inherited from FreeBSD. It is possible for a
Matthew Dillon [Tue, 10 Oct 2006 15:40:47 +0000 (15:40 +0000)]
Fix a long-standing bug inherited from FreeBSD.  It is possible for a
signal sent to a process group to race a fork().  If the signal is received
by the process doing the fork() before it finishes hooking up the new child
to the process group the new child will not receive the signal.  The result
is that ^C does not always kill all the processes in the process group.

The problem occurs on UP systems if fork1() in the kernel blocks prior to
finishing the process setup.  Such blocking can occur in MALLOC.  The problem
can also occur if an interrupt occurs just as the process issues the fork()
system call, or on SMP systems where the signal is sent from a different cpu.

The solution is to use a lockmgr() lock to interlock the pgrp structure when
a signal is being sent to a process group and to have fork() check for
signal pre-conditions and return ERESTART if such conditions exist to force
processing of the pending signals.

NOTE!  BMAKE, MAKE, GNUMAKE ALSO HAVE UNRELATED SIGNALING BUGS.  These
programs improperly install a SIG_IGN for a few microseconds in order to
test the current signal function for SIGINT and various other signals.
If a ^C is sent while *MAKE is in this window, the *MAKE will ignore the
signal.

Reviewed-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
14 years agoSet 'error' if we can't get Mac address from Xircom cards, so that caller
Sepherosa Ziehau [Tue, 10 Oct 2006 11:34:55 +0000 (11:34 +0000)]
Set 'error' if we can't get Mac address from Xircom cards, so that caller
of attach() will know that attaching failed.  This avoids panic on double
detach().

Paniced-by: 'Koston' on #EFnet
Reminded-by: swildner@
14 years agoRemove unneeded assignments.
Jeffrey Hsu [Tue, 10 Oct 2006 00:04:10 +0000 (00:04 +0000)]
Remove unneeded assignments.

14 years agoClear up mbuf usage statistics.
Jeffrey Hsu [Mon, 9 Oct 2006 22:30:48 +0000 (22:30 +0000)]
Clear up mbuf usage statistics.

14 years agoRemove trailing whitespace.
Sascha Wildner [Mon, 9 Oct 2006 09:48:08 +0000 (09:48 +0000)]
Remove trailing whitespace.

14 years agoSilence gcc41 warnings.
Peter Avalos [Sun, 8 Oct 2006 17:11:30 +0000 (17:11 +0000)]
Silence gcc41 warnings.

Reported and tested by: swildner

14 years agoMove WARNS6 up into Makefile.inc for games/ and out of the individual
Peter Avalos [Sun, 8 Oct 2006 16:22:36 +0000 (16:22 +0000)]
Move WARNS6 up into Makefile.inc for games/ and out of the individual
Makefiles.

14 years agoUpgrade to less version 394.
Peter Avalos [Sun, 8 Oct 2006 14:52:37 +0000 (14:52 +0000)]
Upgrade to less version 394.

14 years agoAdd our READMEs.
Peter Avalos [Sun, 8 Oct 2006 14:31:47 +0000 (14:31 +0000)]
Add our READMEs.