]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoSome minor cleanups:
glebius [Tue, 22 May 2007 16:17:31 +0000 (16:17 +0000)]
Some minor cleanups:
- In rt_check() remove the senderr() macro and the "bad" label. They
  used to simplify code, but now aren't.
- Remove extra RT_LOCK_ASSERT() in rt_setgate(). The RT_REMREF macro
  does this.
- In rtfree() convert panics to KASSERTs.
- Strict the routing API: rtfree() should be called only in a case
  when we are completely sure we've got the last reference on the
  rtentry. In all other cases RTFREE_LOCKED() macro should be used.
  If the reference isn't the last one spit out a warning printf.
  Correct the only(?) case for this in rt_check().
- Fix typos in comments.

17 years agomxge cleanups:
gallatin [Tue, 22 May 2007 15:57:49 +0000 (15:57 +0000)]
mxge cleanups:

- Remove code to use the special wc_fifo.  It has been disabled by default
  in our other drivers as it actually slows down transmit by a small amount

- Dynamically determine the amount of space required for the rx_done
  ring rather than hardcoding it.

- Compute the number of tx descriptors we are willing to transmit per
  frame as the minimum of 128 or 1/4 the tx ring size.

- Fix a typo in the tx dma tag setup which could lead to unnecessary
  defragging of TSO packets (and potentially even dropping TSO packets
  due to EFBIG being returned).

- Add a counter to keep track of how many times we've needed to
  defragment a frame.  It should always be zero.

- Export new extended f/w counters via sysctl

Sponsored by: Myricom, Inc.

17 years agoReplace "sizeof(struct bucket[cache_size])" with
cperciva [Tue, 22 May 2007 15:37:58 +0000 (15:37 +0000)]
Replace "sizeof(struct bucket[cache_size])" with
"cache_size * sizeof(struct bucket)".  The former is valid in C99 but can
confuse earlier compilers, while the latter is a standard idiom which all
C compilers understand.

Approved by: kientzle

17 years agoHook mxge_lro.c to the build so that the if_mxge.ko module
gallatin [Tue, 22 May 2007 14:38:17 +0000 (14:38 +0000)]
Hook mxge_lro.c to the build so that the if_mxge.ko module
will load.

17 years agobackout filter of Nil UUID as the boot loader code already filters out Nil UUIDs...
rse [Tue, 22 May 2007 13:53:59 +0000 (13:53 +0000)]
backout filter of Nil UUID as the boot loader code already filters out Nil UUIDs (see src/sys/boot/i386/libi386/smbios.c:smbios_setuuid for details)

17 years agoAdd support for setmode and settarget messages.
mav [Tue, 22 May 2007 12:23:39 +0000 (12:23 +0000)]
Add support for setmode and settarget messages.

Approved by: glebius (mentor)

17 years agoAllow node to bypass traffic while no alias address defined.
mav [Tue, 22 May 2007 12:14:43 +0000 (12:14 +0000)]
Allow node to bypass traffic while no alias address defined.

Approved by: glebius (mentor)

17 years agoReturn back NETGRAPH_MPPC_COMPRESSION depends.
mav [Tue, 22 May 2007 12:00:31 +0000 (12:00 +0000)]
Return back NETGRAPH_MPPC_COMPRESSION depends.

Reviewed by: ru, julian
Approved by: glebius (mentor)

17 years agoRemove the restore and chroot command to avoid disk-full error.
nyan [Tue, 22 May 2007 11:32:55 +0000 (11:32 +0000)]
Remove the restore and chroot command to avoid disk-full error.

17 years agoSet .PATH before referring to the corresponding sources.
dds [Tue, 22 May 2007 10:49:42 +0000 (10:49 +0000)]
Set .PATH before referring to the corresponding sources.

17 years agoDon't forget to clean generated ssp.h.
ru [Tue, 22 May 2007 10:40:58 +0000 (10:40 +0000)]
Don't forget to clean generated ssp.h.

17 years agoDon't want a stray systrace_args.c in objdir.
ru [Tue, 22 May 2007 10:36:12 +0000 (10:36 +0000)]
Don't want a stray systrace_args.c in objdir.

17 years agoRemove the ugly csh(1) based UUID lower-case translation hack from
rse [Tue, 22 May 2007 10:22:24 +0000 (10:22 +0000)]
Remove the ugly csh(1) based UUID lower-case translation hack from
/etc/rc.d/hostid now that we switched the origin of the UUID (variable
smbios.system.uuid as provided by the i386 BIOS code) to already provide
a standard conforming lower-case UUID text representation.

17 years agoIncrease precision of time values in the process accounting
dds [Tue, 22 May 2007 06:51:38 +0000 (06:51 +0000)]
Increase precision of time values in the process accounting
structure, while maintaining backward compatibility with legacy
file and record formats.

17 years agoRegression tests for sparc64 record formats.
dds [Tue, 22 May 2007 06:34:20 +0000 (06:34 +0000)]
Regression tests for sparc64 record formats.

Submitted by: Carl Johan Gustavsson

17 years agoRegression tests for amd64 file and record formats.
dds [Tue, 22 May 2007 06:30:48 +0000 (06:30 +0000)]
Regression tests for amd64 file and record formats.

Submitted by: Larry Rosenman (who also provided access to a testing host)

17 years agoRegression tests for the new and legacy process accounting formats.
dds [Tue, 22 May 2007 06:21:20 +0000 (06:21 +0000)]
Regression tests for the new and legacy process accounting formats.

17 years agorestore interrupts to working order after INTR_THREAD changes
kmacy [Tue, 22 May 2007 06:17:55 +0000 (06:17 +0000)]
restore interrupts to working order after INTR_THREAD changes

- ithread_wrapper was being treated as a wrapper for fast interrupts when
  in fact it was intended for ithread interrupts

17 years agoDocument the .in .out file naming conventions adopted in commit_prep.pl's
dds [Tue, 22 May 2007 06:11:44 +0000 (06:11 +0000)]
Document the .in .out file naming conventions adopted in commit_prep.pl's
exclusions list for header checking.

17 years agoTest the integer-arithmetic float conversions encode_timeval and encode_long
dds [Tue, 22 May 2007 05:52:04 +0000 (05:52 +0000)]
Test the integer-arithmetic float conversions encode_timeval and encode_long
in kern_acct.c.

17 years agoBackout 1.5 as requested by deischen
jon [Tue, 22 May 2007 05:28:40 +0000 (05:28 +0000)]
Backout 1.5 as requested by deischen

17 years agoEliminate the reactivation of cached pages in vm_fault_prefault() and
alc [Tue, 22 May 2007 04:45:59 +0000 (04:45 +0000)]
Eliminate the reactivation of cached pages in vm_fault_prefault() and
vm_map_pmap_enter() unless the caller is madvise(MADV_WILLNEED).  With
the exception of calls to vm_map_pmap_enter() from
madvise(MADV_WILLNEED), vm_fault_prefault() and vm_map_pmap_enter()
are both used to create speculative mappings.  Thus, always
reactivating cached pages is a mistake.  In principle, cached pages
should only be reactivated by an actual access.  Otherwise, the
following misbehavior can occur.  On a hard fault for a text page the
clustering algorithm fetches not only the required page but also
several of the adjacent pages.  Now, suppose that one or more of the
adjacent pages are never accessed.  Ultimately, these unused pages
become cached pages through the efforts of the page daemon.  However,
the next activation of the executable reactivates and maps these
unused pages.  Consequently, they are never replaced.  In effect, they
become pinned in memory.

17 years agoIn the error handling path, don't call close(fd) if the error we're
cperciva [Tue, 22 May 2007 04:21:00 +0000 (04:21 +0000)]
In the error handling path, don't call close(fd) if the error we're
handling is that fd = open(foo) is -1.  This bug is harmless since
close(-1) just returns an error (which the code ignores).

Found by: Coverity Prevent(tm)
CID: 1503 (in userland test run)

17 years ago__cleanup() is needed for ports/devel/valgrind, export it.
jon [Tue, 22 May 2007 03:03:28 +0000 (03:03 +0000)]
__cleanup() is needed for ports/devel/valgrind, export it.

17 years agoAllow FreeBSD's native ELF image activators to execute shared libraries the
kan [Tue, 22 May 2007 02:22:58 +0000 (02:22 +0000)]
Allow FreeBSD's native ELF image activators to execute shared libraries the
same way it was enabled for Linux binares in linuxulator.

This allows binaries built with -pie. Many ports auto-detect -fPIE support
in GCC 4.2 and build binaries FreeBSD was unable to run.

17 years agoRemove duplicate ' 2' manpage section number.
keramida [Mon, 21 May 2007 20:33:51 +0000 (20:33 +0000)]
Remove duplicate ' 2' manpage section number.

Submitted by:  Rui Paulo
MFC after:  3 days

17 years agoFrom OpenBSD, rev. 1.379
dhartmei [Mon, 21 May 2007 20:12:35 +0000 (20:12 +0000)]
From OpenBSD, rev. 1.379
Document how 'allow-opts' applies to routing headers in IPv6.

MFC after: 1 week
Discussed with: mlaier

17 years agoFrom OpenBSD, rev. 1.524, 1.528, 1.529
dhartmei [Mon, 21 May 2007 20:08:59 +0000 (20:08 +0000)]
From OpenBSD, rev. 1.524, 1.528, 1.529
Deal with IPv6 routing headers (see FreeBSD-SA-07:03.ipv6 for background)
Block IPv6 packets with routing headers by default, unless 'allow-opts'
is specified. Block RH0 unconditionally. Deal with ip6_plen 0.

MFC after: 1 week
Discussed with: mlaier

17 years agoUse lower cases for UUID string to conform RFC4122 and ISO/IEC-9834-8:2005.
jkim [Mon, 21 May 2007 18:48:18 +0000 (18:48 +0000)]
Use lower cases for UUID string to conform RFC4122 and ISO/IEC-9834-8:2005.

17 years agoForgot to add hptiop(4) here.
brueffer [Mon, 21 May 2007 18:35:40 +0000 (18:35 +0000)]
Forgot to add hptiop(4) here.

17 years agoImprove mxge receive performance:
gallatin [Mon, 21 May 2007 18:32:27 +0000 (18:32 +0000)]
Improve mxge receive performance:

- Update to the latest (1.4.18) f/w.  This f/w introduces a new
  receive mode which allows us to use FreeBSD's physically discontinuous
  MJUM9BYTES clusters.

- Switch the driver from chaining MJUMPAGESIZE clusters to using
  MJUM9BYTES clusters to avoid mbuf chaining overheads.  Due to this
  change, people running obsolete f/w images will be limited to an MTU of
  PAGE_SIZE - 16.

- Add (disabled by default) support for Large Receive Offload.

Sponsored by: Myricom, Inc.

17 years agoMake pointer argument to kread_string() const since the kernel structure
rwatson [Mon, 21 May 2007 18:16:04 +0000 (18:16 +0000)]
Make pointer argument to kread_string() const since the kernel structure
field is const, and then employ __DECONST before getting into the kvm
code.  This eliminates a gcc 4.2 warning about losing constification.

__DECONST advice from: sam

17 years agoFix markup.
ru [Mon, 21 May 2007 15:29:42 +0000 (15:29 +0000)]
Fix markup.

17 years agoForce the alignment of the chars arrays, as they are casted later to
cognet [Mon, 21 May 2007 14:38:45 +0000 (14:38 +0000)]
Force the alignment of the chars arrays, as they are casted later to
structs.
gcc 4.2 doesn't do it by default, and that results in unaligned access on
arm.

17 years agoForce the alignment of the chars arrays, as they are casted later to
cognet [Mon, 21 May 2007 14:38:20 +0000 (14:38 +0000)]
Force the alignment of the chars arrays, as they are casted later to
structs.
gcc 4.2 doesn't do it by default, and that results in unaligned access on
arm.

Reviewed by: gnn, imp

17 years agoShort name of kernel audit worker thread from "audit_worker" to "audit".
rwatson [Mon, 21 May 2007 14:08:26 +0000 (14:08 +0000)]
Short name of kernel audit worker thread from "audit_worker" to "audit".

MFC after: 3 days

17 years agoBump __FreeBSDversion for shared library version bump.
delphij [Mon, 21 May 2007 14:03:28 +0000 (14:03 +0000)]
Bump __FreeBSDversion for shared library version bump.
This makes it possible for our ports infrastructure
to determine whether it is appropriate to install
compat6x in the future.

17 years agoMake sure fwsid is not NULL.
simokawa [Mon, 21 May 2007 12:17:54 +0000 (12:17 +0000)]
Make sure fwsid is not NULL.

MFC after: 3 days

17 years agoBack out the addition of -static to LDFLAGS; I'm pretty confident
ru [Mon, 21 May 2007 12:04:16 +0000 (12:04 +0000)]
Back out the addition of -static to LDFLAGS; I'm pretty confident
that the build failure was caused by a computer/sources date/time
mismatch that caused GCC tools to be mistakenly rebuilt again at
an inappropriate time during buildworld, re-linking them against
new libraries instead of host's installed libraries and thus making
them not runnable by the host.  Normally they are only built in
the early stage of buildworld (build-tools) that links them against
shared libraries of the host, but if either the system clock or
modification date/time on source files is set incorrectly, make(1)
can be foolished into thinking that tools are stale and will rebuild
them again, now in the "target" environment which is not suitable
for building helper apps that are to be run during buildworld.

OK'ed by: kan

17 years agoMFi386: revision 1.652
nyan [Mon, 21 May 2007 11:57:36 +0000 (11:57 +0000)]
MFi386: revision 1.652

   - Move GDT/LDT locking into a seperate spinlock, removing the global
     scheduler lock from this responsibility.

17 years agoCleanup style by consistently using braces around variable expansion and
rse [Mon, 21 May 2007 11:57:01 +0000 (11:57 +0000)]
Cleanup style by consistently using braces around variable expansion and
apply an addition from Andrew Thompson <thompsa> for filtering out the
special "Nil" UUID (all zeros) which would be a useless host UUID.

17 years agoAdjust UUID lower-case translation from straight-forward tr(1)
rse [Mon, 21 May 2007 11:44:13 +0000 (11:44 +0000)]
Adjust UUID lower-case translation from straight-forward tr(1)
usage to an equivalent csh(1) usage as tr(1) stays in /usr/bin and
/etc/rc.d/hostid has just the root filesystem (and this way mainly the
tools in /bin) available.

I've chosen csh(1) here as the string manipulation tools available in
/bin is extremely limited and the (only) alternative ed(1) usage would
have been a lot more complicated or even might require a temporary file.

17 years agoPerhaps a better fix- make the called function do the (possible never reached)
mjacob [Mon, 21 May 2007 09:26:47 +0000 (09:26 +0000)]
Perhaps a better fix- make the called function do the (possible never reached)
initialization. Do a token amount of style cleanup.

Poked by: bde

17 years agoStyle: remove redundant parentheses.
ru [Mon, 21 May 2007 09:01:23 +0000 (09:01 +0000)]
Style: remove redundant parentheses.

17 years agoRemove the libmytinfo_p.a link as well.
ru [Mon, 21 May 2007 08:53:26 +0000 (08:53 +0000)]
Remove the libmytinfo_p.a link as well.

17 years agoGCC doesn't segfault anymore while building world with -mcpu=xscale, so use it.
cognet [Mon, 21 May 2007 08:39:44 +0000 (08:39 +0000)]
GCC doesn't segfault anymore while building world with -mcpu=xscale, so use it.

17 years agoFreeBSD expects VFP, so use that as the default FPU.
cognet [Mon, 21 May 2007 08:38:42 +0000 (08:38 +0000)]
FreeBSD expects VFP, so use that as the default FPU.

Reviewed by: kan

17 years agoThe standardized textual representation of UUIDs according to RFC 4122
rse [Mon, 21 May 2007 08:22:43 +0000 (08:22 +0000)]
The standardized textual representation of UUIDs according to RFC 4122
and ISO/IEC-9834-8:2005 is with LOWER-CASE hexadecimal characters only,
so translate the (usually upper-case and this way not conforming)
representation of the BIOS UUID when reading it. Also be more strict
about the valid characters in the textual representation by checking for
just the hexadecimal characters.

17 years agoDon't remove boot_i386.8 on amd64.
delphij [Mon, 21 May 2007 07:14:01 +0000 (07:14 +0000)]
Don't remove boot_i386.8 on amd64.

17 years agoReflect shared library bump after symbol versioning is enabled by
delphij [Mon, 21 May 2007 07:00:29 +0000 (07:00 +0000)]
Reflect shared library bump after symbol versioning is enabled by
default.

17 years agoWhen speculation fails (as determined by the chk instruction) the
marcel [Mon, 21 May 2007 05:11:43 +0000 (05:11 +0000)]
When speculation fails (as determined by the chk instruction) the
processor is to jump to recovery code. This branching behaviour
may not be implemented by the processor and a Speculative Operation
fault is raised. The OS is responsible to emulate the branch.
Implement this, because GCC 4.2 uses advanced loads regularly.

17 years agoDon't test for NULL when it is both unnecessary (the pointer is checked
cperciva [Mon, 21 May 2007 04:45:24 +0000 (04:45 +0000)]
Don't test for NULL when it is both unnecessary (the pointer is checked
against NULL when it is first allocated) and pointless (we've already
dereferenced the pointer several times).

Found by: Coverity Prevent(tm)
CID: 3204

17 years agoRemove pointless code: Don't assign a value to a variable when we're
cperciva [Mon, 21 May 2007 04:22:38 +0000 (04:22 +0000)]
Remove pointless code: Don't assign a value to a variable when we're
going to overwrite it with a new value a few lines later.

Visual inspection of the surrounding code indicates that the code does
what it's supposed to do; i.e., the pointless code wasn't supposed to
be doing something other than what it was doing.

CID: 3323
Found by: Coverity Prevent(tm)

17 years agoMFV: tzdata2007f
wollman [Mon, 21 May 2007 04:21:58 +0000 (04:21 +0000)]
MFV: tzdata2007f

PR: conf/109418
Requested by: edwin@
Obtained from: Arthur David Olson, ftp://elsie.nci.nih.gov/pub/tzdata2007f.tar.gz
MFC after: 1 week

17 years agoThis commit was generated by cvs2svn to compensate for changes in r169808,
wollman [Mon, 21 May 2007 04:15:32 +0000 (04:15 +0000)]
This commit was generated by cvs2svn to compensate for changes in r169808,
which included commits to RCS files with non-trunk default branches.

17 years agoLong-delayed import of timezone database from Arthur Olson et al.
wollman [Mon, 21 May 2007 04:15:32 +0000 (04:15 +0000)]
Long-delayed import of timezone database from Arthur Olson et al.

Timezone data changes in the following locations:

Antarctica
Bahamas
Chile (past timestamps only)
Cuba
Eritrea (Africa/Asmara renamed to Africa/Asmera)
Haiti
Honduras
Indonesia (past timestamps only)
Mongolia
New Zealand (future timestamps only)
Nunavut
Pulaski County, Indiana
Syria
Turkey
Turks & Caicos
Western Australia

Also: some city coordinates corrected.

PR: conf/109418

17 years agoBump library versions in preparation for 7.0.
deischen [Mon, 21 May 2007 02:49:08 +0000 (02:49 +0000)]
Bump library versions in preparation for 7.0.

Ok'd by: kan

17 years agoMFp4: Simplify the bus probe routin using a kthread.
simokawa [Mon, 21 May 2007 02:18:50 +0000 (02:18 +0000)]
MFp4: Simplify the bus probe routin using a kthread.

MFC after: 1 week

17 years ago - rename VMCNT_DEC to VMCNT_SUB to reflect the count argument.
jeff [Sun, 20 May 2007 22:33:42 +0000 (22:33 +0000)]
 - rename VMCNT_DEC to VMCNT_SUB to reflect the count argument.

Suggested by: julian@
Contributed by: attilio@

17 years ago - Move clock synchronization into a seperate clock lock so the global
jeff [Sun, 20 May 2007 22:11:50 +0000 (22:11 +0000)]
 - Move clock synchronization into a seperate clock lock so the global
   scheduler lock is not involved.  sched_lock still protects the sched_clock
   call.  Another patch will remedy this.

Contributed by: Attilio Rao <attilio@FreeBSD.org>
Tested by: kris, jeff

17 years ago - Move GDT/LDT locking into a seperate spinlock, removing the global
jeff [Sun, 20 May 2007 22:03:57 +0000 (22:03 +0000)]
 - Move GDT/LDT locking into a seperate spinlock, removing the global
   scheduler lock from this responsibility.

Contributed by: Attilio Rao <attilio@FreeBSD.org>
Tested by: jeff, kkenn

17 years agoMention the formats supported by bsdtar; include an
kientzle [Sun, 20 May 2007 18:23:39 +0000 (18:23 +0000)]
Mention the formats supported by bsdtar; include an
example that shows how to work with an ISO 9660 image.

17 years agoInitialize irql to something prior to calls that (might) set it.
mjacob [Sun, 20 May 2007 16:59:37 +0000 (16:59 +0000)]
Initialize irql to something prior to calls that (might) set it.
Whined about: gcc 4.2

17 years agoInitializae lastaddr to 0 in bus_dmamap_load_uio so that
mjacob [Sun, 20 May 2007 16:53:45 +0000 (16:53 +0000)]
Initializae lastaddr to 0 in bus_dmamap_load_uio so that
_bus_dmamap_load_buffer won't (potentially) be confused.

Discovered by: gcc 4.2

MFC after: 3 days

17 years agoMake gcc 4.2 happy by initiatlizing controller && channel prior
mjacob [Sun, 20 May 2007 16:49:09 +0000 (16:49 +0000)]
Make gcc 4.2 happy by initiatlizing controller && channel prior
to a call to a function which *might* then initialize them.

MFC after: 3 days

17 years agoIncrease size of timer counter bitfield to accomodate the actual size of the
mjacob [Sun, 20 May 2007 16:43:35 +0000 (16:43 +0000)]
Increase size of timer counter bitfield to accomodate the actual size of the
default timer value.

Discovered By: gcc 4.2

MFC after: 3 days

17 years ago- Staticize cpu_ipi_send() and cpu_mp_unleash() as these aren't
marius [Sun, 20 May 2007 14:49:01 +0000 (14:49 +0000)]
- Staticize cpu_ipi_send() and cpu_mp_unleash() as these aren't
  referenced outside of mp_machdep.c
- Replace a magic 14 with the newly added IDC_ITID_SHIFT macro.
- Remove the global mp_boot_mid variable as it's not really necessary
  and just replacing it with PCPU_GET(mid) doesn't have any impact on
  performance once booted.
- Replace PCPU_GET(cpuid) with the curcpu shortcut.
- Replace hardcoded function names in panic strings etc with __func__
  so they don't need to be updated when renaming the function.
- Use register_t instead of u_long for variables used to hold the
  return value of intr_disable() so we don't need to apply any
  knowledge about the actual width of that value here.
- Improve the wording of some comments.
- Fix several style(9) bugs.

17 years ago- Also identify USIIIi+, USIV and USIV+ CPUs.
marius [Sun, 20 May 2007 13:47:36 +0000 (13:47 +0000)]
- Also identify USIIIi+, USIV and USIV+ CPUs.
- Use __FBSDID in identcpu.c.
- Remove #ifndef SUN4V around global cpu_impl variable; it doesn't
  hurt on sun4v for now and once setPQL2() is gone sun4v can stop
  sharing identcpu.c with sparc64, making the reminder of this file
  also sparc64-only again. [1]

Submitted by: kmacy [1]

17 years agoGiven that these sparc64 (as in sun4u) specific headers only exist
marius [Sun, 20 May 2007 13:19:32 +0000 (13:19 +0000)]
Given that these sparc64 (as in sun4u) specific headers only exist
in the sun4v source in order to be able to compile the source which
is shared between sparc64 and sun4v just #include the sparc64
version here instead of duplicating it.
This is based on the approach taken by pc98 headers in order to
compile the source shared between i386 and pc98.

17 years agoDelete the unused/not really used sparc64 (as in sun4u) cache.h,
marius [Sun, 20 May 2007 13:06:45 +0000 (13:06 +0000)]
Delete the unused/not really used sparc64 (as in sun4u) cache.h,
iommureg.h (which already began to bitrot) and iommuvar.h from the
sun4v source and adjust some of the source which is shared between
sparc64 and sun4v as appropriate.

17 years agoDelete a remnant of the old sparc64 nexus(4) which was never used for sun4v.
marius [Sun, 20 May 2007 09:58:16 +0000 (09:58 +0000)]
Delete a remnant of the old sparc64 nexus(4) which was never used for sun4v.

17 years agoRemove superfluous inclusion of machine/ver.h.
marius [Sun, 20 May 2007 09:31:31 +0000 (09:31 +0000)]
Remove superfluous inclusion of machine/ver.h.

17 years agoMake previous revision compile.
marius [Sun, 20 May 2007 09:21:29 +0000 (09:21 +0000)]
Make previous revision compile.

17 years agoForced commit to note that last commit:
grog [Sun, 20 May 2007 03:57:47 +0000 (03:57 +0000)]
Forced commit to note that last commit:

PR: conf/112699
MFC after: 2 weeks

17 years agoUpdate /etc/protocols with IANA list updated 2007-02-12
grog [Sun, 20 May 2007 03:55:22 +0000 (03:55 +0000)]
Update /etc/protocols with IANA list updated 2007-02-12

Gotcha:  Number 48 (mhrp) is replaced with dsr.

Submitted by: edwin
PR: config/112732
MFC after: 2 weeks

17 years agoWhite space fixes only: replace spaces with tabs.
grog [Sun, 20 May 2007 03:41:26 +0000 (03:41 +0000)]
White space fixes only: replace spaces with tabs.

17 years agoBring the well known ports of /etc/services into sync with the IANA
grog [Sun, 20 May 2007 03:31:52 +0000 (03:31 +0000)]
Bring the well known ports of /etc/services into sync with the IANA
list.

This is only for the well known known ports (port 1-1023) for tcp and
udp only.

Changes:
- Removed "problems" comments around port 57, 77 and 87
- Removed audionews (port 114)
- Added imap3 (port 220)
- Removed yak-chat (port 258)
- Removed concert (port 786)
- Added a lot of new allocations

Submitted by: edwin

17 years ago- packets on the input interface were counted twice
thompsa [Sun, 20 May 2007 03:21:59 +0000 (03:21 +0000)]
- packets on the input interface were counted twice
- Use IFQ_HANDOFF instead of rolling our own

17 years agoAdd new x11-drivers category.
flz [Sat, 19 May 2007 21:29:26 +0000 (21:29 +0000)]
Add new x11-drivers category.

MFC after: 3 days

17 years agoAdd new x11-drivers category.
flz [Sat, 19 May 2007 21:27:37 +0000 (21:27 +0000)]
Add new x11-drivers category.

Reminded by: miwi
MFC after: 3 days

17 years agoRename the macros for assertion flags passed to sx_assert() from SX_* to
jhb [Sat, 19 May 2007 21:26:05 +0000 (21:26 +0000)]
Rename the macros for assertion flags passed to sx_assert() from SX_* to
SA_* to match mutexes and rwlocks.  The old flags still exist for
backwards compatiblity.

Requested by: attilio

17 years agoIn kern_sendfile() adjust byte accounting of the file sending loop to
andre [Sat, 19 May 2007 20:50:59 +0000 (20:50 +0000)]
In kern_sendfile() adjust byte accounting of the file sending loop to
ignore the size of any headers that were passed with the sendfile(2)
system call.  Otherwise the file sent will be truncated by the header
size if the nbytes parameter was provided.  The bug doesn't show up
when either nbytes is zero, meaning send the whole file, or no header
iovec is provided.

Resolve a potential error aliasing of errors from the VM and sf_buf
parts and the protocol send parts where an error of the latter over-
writes one of the former.

Update comments.

The byte accounting bug wasn't seen in earlier because none of the popular
sendfile(2) consumers, Apache, lighttpd and our ftpd(8) use it in modes
that trigger it.  The varnish HTTP proxy makes full use of it and exposed
the problem.

Bug found by: phk
Tested by: phk

17 years agoRevision 1.576 removed too much. I didn't notice because my /usr is on
des [Sat, 19 May 2007 20:34:29 +0000 (20:34 +0000)]
Revision 1.576 removed too much.  I didn't notice because my /usr is on
ZFS, which doesn't support flags...

17 years agoDocument sx_xholder().
jhb [Sat, 19 May 2007 20:24:32 +0000 (20:24 +0000)]
Document sx_xholder().

17 years agoExpose sx_xholder() as a public macro. It returns a pointer to the thread
jhb [Sat, 19 May 2007 20:18:12 +0000 (20:18 +0000)]
Expose sx_xholder() as a public macro.  It returns a pointer to the thread
that holds the current exclusive lock, or NULL if no thread holds an
exclusive lock.

Requested by: pjd

17 years agoAdd a few sentences of caution for Microsoft Vista users who might
bmah [Sat, 19 May 2007 20:09:54 +0000 (20:09 +0000)]
Add a few sentences of caution for Microsoft Vista users who might
want to try resizing partitions.  Based on text that was...

Submitted by: Michel Talon
MFC after: 3 days

17 years agoOops, didn't include SX_ADAPTIVESPIN in the list of valid flags for the
jhb [Sat, 19 May 2007 18:34:24 +0000 (18:34 +0000)]
Oops, didn't include SX_ADAPTIVESPIN in the list of valid flags for the
assert in sx_init_flags().

Submitted by: attilio

17 years agoFix GCC warning: va = va += PAGE_SIZE contains pointless operation
marcel [Sat, 19 May 2007 18:25:14 +0000 (18:25 +0000)]
Fix GCC warning: va = va += PAGE_SIZE contains pointless operation
va = va. Fix white space in nearby lines.

17 years agoUse LDADD to add -lgcc to the end of linker command line. Using LDFLAGS
kan [Sat, 19 May 2007 16:38:39 +0000 (16:38 +0000)]
Use LDADD to add -lgcc to the end of linker command line. Using LDFLAGS
puts it before library's object files, making the whole constuct useless.

17 years agoDocument SX_RECURSE flag.
jhb [Sat, 19 May 2007 16:38:10 +0000 (16:38 +0000)]
Document SX_RECURSE flag.

17 years agoAdd a new SX_RECURSE flag to make support for recursive exclusive locks
jhb [Sat, 19 May 2007 16:35:27 +0000 (16:35 +0000)]
Add a new SX_RECURSE flag to make support for recursive exclusive locks
conditional.  By default, sx(9) locks are back to not supporting recursive
exclusive locks.

Submitted by: attilio

17 years agoUse __mcount() instead of _mcount() to reduce diffs with NetBSD.
cognet [Sat, 19 May 2007 16:20:37 +0000 (16:20 +0000)]
Use __mcount() instead of _mcount() to reduce diffs with NetBSD.

17 years agoFix the fallout from over-zealous obsolete files removal. Use correct
kan [Sat, 19 May 2007 15:41:01 +0000 (15:41 +0000)]
Fix the fallout from over-zealous obsolete files removal. Use correct
atomicity.h file for arm and powerpc.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r169765,
mux [Sat, 19 May 2007 13:55:01 +0000 (13:55 +0000)]
This commit was generated by cvs2svn to compensate for changes in r169765,
which included commits to RCS files with non-trunk default branches.

17 years agoFix a typo that caused the #undef directive to not actually undefine
mux [Sat, 19 May 2007 13:55:01 +0000 (13:55 +0000)]
Fix a typo that caused the #undef directive to not actually undefine
the correct symbol, thus causing a warning with GCC 4.2.0.  Committed
into the vendor branch since this is already in the csup repository.

Reported by: kan (ages ago)

17 years agoConstify to please gcc 4.2.
cognet [Sat, 19 May 2007 13:32:58 +0000 (13:32 +0000)]
Constify to please gcc 4.2.

17 years agoDo not try to inline pmap_kremove(), as it's exported.
cognet [Sat, 19 May 2007 13:21:41 +0000 (13:21 +0000)]
Do not try to inline pmap_kremove(), as it's exported.

17 years agoFix randomly broken playback with Fortemedia FM801 XWave PCI soundcard.
joel [Sat, 19 May 2007 13:19:32 +0000 (13:19 +0000)]
Fix randomly broken playback with Fortemedia FM801 XWave PCI soundcard.

PR: kern/98898
Submitted by: Johannes Weiner <hnazfoo@googlemail.com>
Approved by: ariff

17 years agoDo not try to inline bus_dmamap_sync_buf(), gcc 4.2 doesn't want to do so
cognet [Sat, 19 May 2007 13:17:31 +0000 (13:17 +0000)]
Do not try to inline bus_dmamap_sync_buf(), gcc 4.2 doesn't want to do so
because it uses alloca().
Initialize lastaddr in bus_dmamap_load_uio().

17 years agoAdd a level of indirection to the kernel PTE table. The old
marcel [Sat, 19 May 2007 13:11:27 +0000 (13:11 +0000)]
Add a level of indirection to the kernel PTE table. The old
scheme allowed for 1024 PTE pages, each containing 256 PTEs.
This yielded 2GB of KVA. This is not enough to boot a kernel
on a 16GB box and in general too low for a 64-bit machine.
By adding a level of indirection we now have 1024 2nd-level
directory pages, each capable of supporting 2GB of KVA. This
brings the grand total to 2TB of KVA.