]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years ago- Update the flow sequence before converting count to
glebius [Sun, 27 Nov 2005 02:43:08 +0000 (02:43 +0000)]
- Update the flow sequence before converting count to
  network byte order.
- Update the flow sequence in one atomic op instead of two.

Reported by: Denis Shaposhnikov <dsh vlink.ru>
Reported by: Daniil Kharoun <kdl chelcom.ru>
PR: kern/89417

18 years agoRegen.
davidxu [Sun, 27 Nov 2005 01:23:31 +0000 (01:23 +0000)]
Regen.

18 years agoDon't use OpenBSD syscall numbers, instead, use new syscall numbers
davidxu [Sun, 27 Nov 2005 01:13:00 +0000 (01:13 +0000)]
Don't use OpenBSD syscall numbers, instead, use new syscall numbers
for POSIX message queue.

Suggested by: rwatson

18 years agoAdd several aliases for existing clockid_t names to indicate that the
rwatson [Sun, 27 Nov 2005 00:55:18 +0000 (00:55 +0000)]
Add several aliases for existing clockid_t names to indicate that the
application wishes to request high precision time stamps be returned:

Alias                           Existing

CLOCK_REALTIME_PRECISE          CLOCK_REALTIME
CLOCK_MONOTONIC_PRECISE         CLOCK_MONOTONIC
CLOCK_UPTIME_PRECISE            CLOCK_UPTIME

Add experimental low-precision clockid_t names corresponding to these
clocks, but implemented using cached timestamps in kernel rather than
a full time counter query.  This offers a minimum update rate of 1/HZ,
but in practice will often be more frequent due to the frequency of
time stamping in the kernel:

New clockid_t name              Approximates existing clockid_t

CLOCK_REALTIME_FAST             CLOCK_REALTIME
CLOCK_MONOTONIC_FAST            CLOCK_MONOTONIC
CLOCK_UPTIME_FAST               CLOCK_UPTIME

Add one additional new clockid_t, CLOCK_SECOND, which returns the
current second without performing a full time counter query or cache
lookup overhead to make sure the cached timestamp is stable.  This is
intended to support very low granularity consumers, such as time(3).

The names, visibility, and implementation of the above are subject
to change, and will not be MFC'd any time soon.  The goal is to
expose lower quality time measurement to applications willing to
sacrifice accuracy in performance critical paths, such as when taking
time stamps for the purpose of rescheduling select() and poll()
timeouts.  Future changes might include retrofitting the time counter
infrastructure to allow the "fast" time query mechanisms to use a
different time counter, rather than a cached time counter (i.e.,
TSC).

NOTE: With different underlying time mechanisms exposed, using
different time query mechanisms in the same application may result in
relative non-monoticity or the appearance of clock stalling for a
single clockid_t, as a cached time stamp queried after a precision
time stamp lookup may be "before" the time returned by the earlier
live time counter query.

18 years agoRevision 5.0 of the Sony DSC camera appears to require RBC commands
iedowse [Sat, 26 Nov 2005 17:11:31 +0000 (17:11 +0000)]
Revision 5.0 of the Sony DSC camera appears to require RBC commands
to be padded to 12 bytes in length. Otherwise the requests just
time out.

Reported by: anders
MFC after: 1 week

18 years agoAdd code to test POSIX message queue.
davidxu [Sat, 26 Nov 2005 13:19:09 +0000 (13:19 +0000)]
Add code to test POSIX message queue.

18 years agoImplement following POSIX message queue interfaces:
davidxu [Sat, 26 Nov 2005 13:01:17 +0000 (13:01 +0000)]
Implement following POSIX message queue interfaces:
mq_close, mq_getattr, mq_receive, mq_send.

18 years agoBring in POSIX message queue header file.
davidxu [Sat, 26 Nov 2005 12:55:36 +0000 (12:55 +0000)]
Bring in POSIX message queue header file.

18 years agoSupport mounting POSIX message queue filesystem.
davidxu [Sat, 26 Nov 2005 12:53:18 +0000 (12:53 +0000)]
Support mounting POSIX message queue filesystem.

18 years agoBring in mqueue.h to define struct mq_attr.
davidxu [Sat, 26 Nov 2005 12:48:11 +0000 (12:48 +0000)]
Bring in mqueue.h to define struct mq_attr.

18 years agoCompile mqueue module.
davidxu [Sat, 26 Nov 2005 12:46:01 +0000 (12:46 +0000)]
Compile mqueue module.

18 years agoRegen.
davidxu [Sat, 26 Nov 2005 12:45:22 +0000 (12:45 +0000)]
Regen.

18 years agoBring in experimental kernel support for POSIX message queue.
davidxu [Sat, 26 Nov 2005 12:42:35 +0000 (12:42 +0000)]
Bring in experimental kernel support for POSIX message queue.

18 years agoIn preparation for automatic hardware notes generation, reword the
brueffer [Sat, 26 Nov 2005 10:06:21 +0000 (10:06 +0000)]
In preparation for automatic hardware notes generation, reword the
hardware section text to include the driver name.

MFC after: 3 days

18 years agoRemove duplicates.
ru [Sat, 26 Nov 2005 08:50:20 +0000 (08:50 +0000)]
Remove duplicates.

18 years agoAdd a locking stub to call acpi_cmbat_get_bif() now that it is directly
njl [Sat, 26 Nov 2005 07:36:53 +0000 (07:36 +0000)]
Add a locking stub to call acpi_cmbat_get_bif() now that it is directly
run from the taskqueue.  There should probably be a better way to do this
later, but this suffices for now.

Submitted by: yongari

18 years agoThe CAM interface is broken and seems to be causing lockups on boot. It
scottl [Sat, 26 Nov 2005 07:30:09 +0000 (07:30 +0000)]
The CAM interface is broken and seems to be causing lockups on boot.  It
doesn't appear to have worked in a long time, so just disable it completely
for now.

MFC After: 3 days

18 years agoAdded mono to stereo and stereo to mono feeder functions for both
ariff [Sat, 26 Nov 2005 03:54:17 +0000 (03:54 +0000)]
Added mono to stereo and stereo to mono feeder functions for both
24 and 32 bit format.

18 years agoAdded codec id for Avance Logic (ALC250)
ariff [Sat, 26 Nov 2005 03:51:25 +0000 (03:51 +0000)]
Added codec id for Avance Logic (ALC250)

18 years agoSort Xrefs in the SEE ALSO section correctly.
brueffer [Sat, 26 Nov 2005 00:47:07 +0000 (00:47 +0000)]
Sort Xrefs in the SEE ALSO section correctly.

Pointy hat to: brueffer

18 years agoUpdate the list of drivers that need wlan(4).
brueffer [Sat, 26 Nov 2005 00:40:57 +0000 (00:40 +0000)]
Update the list of drivers that need wlan(4).

MFC after: 3 days

18 years agoWhitespace.
ru [Fri, 25 Nov 2005 22:36:40 +0000 (22:36 +0000)]
Whitespace.

18 years agoClean some code that became obfuscated over the years:
ru [Fri, 25 Nov 2005 22:25:34 +0000 (22:25 +0000)]
Clean some code that became obfuscated over the years:
Don't keep duplicate files in the files list just to
mark the device as "known" later.  XXX: Since the
device list isn't unique (there can be two "device foo"
directives, as this the case with LINT+DEFAULTS), we
have to traverse it all to mark all copies of the same
device as "used", but this is not worse than it was.

18 years agoo Pass received frames to radiotap.
damien [Fri, 25 Nov 2005 21:15:07 +0000 (21:15 +0000)]
o Pass received frames to radiotap.
o Remove some unsupported flags from the ic_caps field.
o Various cosmetic tweaks.

MFC after: 6 days

18 years agoIt turns out that set_charset() invokes build_iovec_argf() which modifies
avatar [Fri, 25 Nov 2005 19:55:14 +0000 (19:55 +0000)]
It turns out that set_charset() invokes build_iovec_argf() which modifies
iov address internally through realloc(3).  However, since the function
parameter wasn't designed to allow the modified iov being passed back to
the caller, we ended up feeding iov with several corrupted entries(this
depends on how many arguments were pushed into iovec before set_charset())
to nmount(2).

This commit fixes this regression introduced in rev1.37 such that
mount_msdosfs(8) with code page conversion option(-W,-D) enabled works again.

Reviewed by: rodrigc

18 years agoIt turns out that set_charset() invokes build_iovec() which modifies
avatar [Fri, 25 Nov 2005 19:48:53 +0000 (19:48 +0000)]
It turns out that set_charset() invokes build_iovec() which modifies
iov address internally through realloc(3).  However, since the function
parameter wasn't designed to allow the modified iov being passed back to
the caller, we end up feeding iov with several corrupted entries(depends on
how many arguments were pushed into iovec before set_charset()) to nmount(2).

This commit fixes this regression introduced in rev1.31 such that
mount_cd9660(8) with code page conversion option(-C) enabled works again.

Reviewed by: rodrigc

18 years agoFix AMRR initialization.
damien [Fri, 25 Nov 2005 19:32:29 +0000 (19:32 +0000)]
Fix AMRR initialization.

MFC after: 6 days

18 years agoReorder the variable lists on this page alphabetically by make variable
jkoshy [Fri, 25 Nov 2005 14:31:34 +0000 (14:31 +0000)]
Reorder the variable lists on this page alphabetically by make variable
name.

Discussed with: ru

18 years agoFix panic when we cannot find self-id of probing nodes.
simokawa [Fri, 25 Nov 2005 14:29:24 +0000 (14:29 +0000)]
Fix panic when we cannot find self-id of probing nodes.
This shouldn't happen as far as the self-id buffer is vaild but
some people have this problem.

PR: kern/83999
Submitted by: Markus Wild <fbsd-lists@dudes.ch>
MFC after: 3 days

18 years agoRevert revision 1.416 and don't create a hierarchy before installing
ru [Fri, 25 Nov 2005 10:12:58 +0000 (10:12 +0000)]
Revert revision 1.416 and don't create a hierarchy before installing
a kernel.  It's slower and is generally only applicable to RELENG_4.

18 years agoAdd sysctl descriptions.
le [Fri, 25 Nov 2005 10:09:30 +0000 (10:09 +0000)]
Add sysctl descriptions.

18 years agoWhen IOCATAGPARM is called, update the capabilities page that is stored
sos [Fri, 25 Nov 2005 09:00:56 +0000 (09:00 +0000)]
When IOCATAGPARM is called, update the capabilities page that is stored
in the kernel and return the new values.

18 years agoUse the correct file name for the ldscript.
cognet [Fri, 25 Nov 2005 03:30:45 +0000 (03:30 +0000)]
Use the correct file name for the ldscript.

18 years agoSend the packet to BPF after setting the duration field of the frame.
damien [Thu, 24 Nov 2005 21:40:24 +0000 (21:40 +0000)]
Send the packet to BPF after setting the duration field of the frame.

MFC after: 1 week

18 years agoo Force the sending of an extra URB if there is less than 2 bytes left
damien [Thu, 24 Nov 2005 21:31:39 +0000 (21:31 +0000)]
o Force the sending of an extra URB if there is less than 2 bytes left
  at the end of the last URB (URB = USB Request Block = 64 bytes).
o Free the AMRR reserved xfer in detach.
o Minor tweaks.

MFC after: 1 week

18 years agoFix the following bugs:
ru [Thu, 24 Nov 2005 18:56:14 +0000 (18:56 +0000)]
Fix the following bugs:

- In ifc_name2unit(), disallow leading zeroes in a unit.

  Exploit: ifconfig lo01 create

- In ifc_name2unit(), properly handle overflows.  Otherwise,
  either of two local panic()'s can occur, either because
  no interface with such a name could be found after it was
  successfully created, or because the code will bogusly
  assume that it's a wildcard (unit < 0 due to overflow).

  Exploit: ifconfig lo<overflowed_integer> create

- Previous revision made the following sequence trigger
  a KASSERT() failure in queue(3):

  Exploit: ifconfig lo0 destroy; ifconfig lo0 destroy

  This is because IFC_IFLIST_REMOVE() is always called
  before ifc->ifc_destroy() has been run, not accounting
  for the fact that the latter can fail and leave the
  interface operating (like is the case for "lo0").
  So we ended up calling LIST_REMOVE() twice.  We cannot
  defer IFC_IFLIST_REMOVE() until after a call to
  ifc->ifc_destroy() because the ifnet may have been
  removed and its memory has been freed, so recover from
  this by re-inserting the ifnet in the cloned interfaces
  list if ifc->ifc_destroy() indicates a failure.

18 years agoFixing a regression introduced in rev1.72 by connecting cd9660 to the
avatar [Thu, 24 Nov 2005 17:35:05 +0000 (17:35 +0000)]
Fixing a regression introduced in rev1.72 by connecting cd9660 to the
external mounting program list as well; otherwise, entry like the following
in /etc/fstab wouldn't work:

/dev/acd0 /mnt/cdrom cd9660 ro,-C=big5 0 0

Reviewed by: rodrigc

18 years agoAdd entry for 6.1.
joel [Thu, 24 Nov 2005 17:28:43 +0000 (17:28 +0000)]
Add entry for 6.1.

18 years ago- Stop talking about non-FreeBSD stuff (mostly because it's hard
ru [Thu, 24 Nov 2005 16:03:09 +0000 (16:03 +0000)]
- Stop talking about non-FreeBSD stuff (mostly because it's hard
  to keep this info up-to-date as time goes by).
- Revise the markup.

18 years agoFix typo.
le [Thu, 24 Nov 2005 15:28:32 +0000 (15:28 +0000)]
Fix typo.

18 years agoRemember the bus_dmamap_t where we loaded the mbuf, and sync this map instead
cognet [Thu, 24 Nov 2005 15:13:47 +0000 (15:13 +0000)]
Remember the bus_dmamap_t where we loaded the mbuf, and sync this map instead
of tx_buffer->map, or we could end up syncing the wrong map.

18 years agoSince we want a vinum geom created anytime the module loads, move
le [Thu, 24 Nov 2005 15:11:41 +0000 (15:11 +0000)]
Since we want a vinum geom created anytime the module loads, move
the geom creation to a seperate init function and ignore the tasting.

The config is now parsed only in the vinumdrive geom, which hopefully
fixes the problem, that the drive class tasted before the vinum class
had a chance, for good.

Also restore the behaviour that the module can be loaded at boot time
and on a running system.

18 years agoFix prototype.
ru [Thu, 24 Nov 2005 15:10:38 +0000 (15:10 +0000)]
Fix prototype.

18 years agoFix parsing of atime, clusterr, clusterw, exec, suid, symfollow
rodrigc [Thu, 24 Nov 2005 15:06:40 +0000 (15:06 +0000)]
Fix parsing of atime, clusterr, clusterw, exec, suid, symfollow
mount options.

Noticed by: Amir Shalem < amir at boom dot org dot il>

18 years agoAdd a -f configfile option to devd(8), based on a patch submitted by
jkoshy [Thu, 24 Nov 2005 14:39:41 +0000 (14:39 +0000)]
Add a -f configfile option to devd(8), based on a patch submitted by
Wojciech A. Koszek.

Submitted by: Wojciech A. Koszek <dunstan@freebsd.czest.pl>

18 years agoFix prototype.
ru [Thu, 24 Nov 2005 14:27:53 +0000 (14:27 +0000)]
Fix prototype.

18 years agoFix prototypes.
ru [Thu, 24 Nov 2005 14:23:16 +0000 (14:23 +0000)]
Fix prototypes.

18 years agoFix prototype.
ru [Thu, 24 Nov 2005 14:17:35 +0000 (14:17 +0000)]
Fix prototype.

18 years agoMinor cleanups and optimizations:
bde [Thu, 24 Nov 2005 13:48:40 +0000 (13:48 +0000)]
Minor cleanups and optimizations:

- Remove dead code that I forgot to remove in the previous commit.

- Calculate the sum of the lower terms of the polynomial (divided by
  x**5) in a single expression (sum of odd terms) + (sum of even terms)
  with parentheses to control grouping.  This is clearer and happens to
  give better instruction scheduling for a tiny optimization (an
  average of about ~0.5 cycles/call on Athlons).

- Calculate the final sum in a single expression with parentheses to
  control grouping too.  Change the grouping from
  first_term + (second_term + sum_of_lower_terms) to
  (first_term + second_term) + sum_of_lower_terms.  Normally the first
  grouping must be used for accuracy, but extra precision makes any
  grouping give a correct result so we can group for efficiency.  This
  is a larger optimization (average 3-4 cycles/call or 5%).

- Use parentheses to indicate that the C order of left to right evaluation
  is what is wanted (for efficiency) in a multiplication too.

The old fdlibm code has several optimizations related to these.  2
involve doing an extra operation that can be done almost in parallel
on some superscalar machines but are pessimizations on sequential
machines.  Others involve statement ordering or expression grouping.
All of these except the ordering for the combining the sums of the odd
and even terms seem to be ideal for Athlons, but parallelism is still
limited so all of these optimizations combined together with the ones
in this commit save only ~6-8 cycles (~10%).

On an AXP, tanf() on uniformly distributed args in [-2pi, 2pi] now
takes 39-59 cycles.  I don't know of any more optimizations for tanf()
short of writing it all in asm with very MD instruction scheduling.
Hardware fsin takes 122-138 cycles.  Most of the optimizations for
tanf() don't work very well for tan[l]().  fdlibm tan() now takes
145-365 cycles.

18 years agoImprove the documentation of "proxyall" knob, somewhat: we do not
ru [Thu, 24 Nov 2005 13:44:42 +0000 (13:44 +0000)]
Improve the documentation of "proxyall" knob, somewhat: we do not
proxy for hosts that are reachable through the same interface the
request came in from.  This feature is mainly for hosts reachable
through some P2P link, e.g. the gif(4) tunnel.

18 years agoFix prototype.
ru [Thu, 24 Nov 2005 11:29:11 +0000 (11:29 +0000)]
Fix prototype.

18 years agoFix prototypes.
ru [Thu, 24 Nov 2005 11:26:36 +0000 (11:26 +0000)]
Fix prototypes.

18 years agoFix prototypes.
ru [Thu, 24 Nov 2005 11:14:06 +0000 (11:14 +0000)]
Fix prototypes.

18 years agoFix prototypes.
ru [Thu, 24 Nov 2005 10:54:47 +0000 (10:54 +0000)]
Fix prototypes.

18 years agoFix prototype.
ru [Thu, 24 Nov 2005 10:43:35 +0000 (10:43 +0000)]
Fix prototype.

18 years agoFix prototype.
ru [Thu, 24 Nov 2005 10:32:39 +0000 (10:32 +0000)]
Fix prototype.

18 years agoFix prototypes.
ru [Thu, 24 Nov 2005 10:30:44 +0000 (10:30 +0000)]
Fix prototypes.

18 years agoFix prototypes.
ru [Thu, 24 Nov 2005 10:06:05 +0000 (10:06 +0000)]
Fix prototypes.

18 years agoFix prototype to match the code and documentation.
ru [Thu, 24 Nov 2005 09:51:59 +0000 (09:51 +0000)]
Fix prototype to match the code and documentation.

18 years agos/5.5/6.0/ in HISTORY section.
joel [Thu, 24 Nov 2005 09:25:10 +0000 (09:25 +0000)]
s/5.5/6.0/ in HISTORY section.

Discussed with: ru

18 years agoRevert last revision, strmode() should be moved to <unistd.h> to be
ru [Thu, 24 Nov 2005 08:30:44 +0000 (08:30 +0000)]
Revert last revision, strmode() should be moved to <unistd.h> to be
properly fixed.

18 years agoAdd missing "struct" in i386/i386/machdep.c,v 1.497 by deischen@.
ru [Thu, 24 Nov 2005 08:16:18 +0000 (08:16 +0000)]
Add missing "struct" in i386/i386/machdep.c,v 1.497 by deischen@.

18 years agoMake SYNOPSIS compile.
ru [Thu, 24 Nov 2005 07:48:19 +0000 (07:48 +0000)]
Make SYNOPSIS compile.

Attn peter@: this manpage wasn't synced with your code changes.

18 years agoFix prototypes.
ru [Thu, 24 Nov 2005 07:33:35 +0000 (07:33 +0000)]
Fix prototypes.

Attn davidxu@: most likely, the description should also be tweaked
after your undocumented changes that changed these prototypes.

18 years agoFix prototype to match the code and documentation.
ru [Thu, 24 Nov 2005 07:20:26 +0000 (07:20 +0000)]
Fix prototype to match the code and documentation.

18 years agoFix prototypes.
ru [Thu, 24 Nov 2005 07:12:01 +0000 (07:12 +0000)]
Fix prototypes.

18 years agoKeep up with const poisoning in uuid.h,v 1.3.
ru [Thu, 24 Nov 2005 07:04:20 +0000 (07:04 +0000)]
Keep up with const poisoning in uuid.h,v 1.3.

18 years agoFix prototype of strmode() to match the code and documentation.
ru [Thu, 24 Nov 2005 06:59:35 +0000 (06:59 +0000)]
Fix prototype of strmode() to match the code and documentation.

18 years agoFix prototype.
ru [Thu, 24 Nov 2005 06:56:21 +0000 (06:56 +0000)]
Fix prototype.

18 years agoOnly copy out the battery status/info if there was no error.
njl [Thu, 24 Nov 2005 05:23:56 +0000 (05:23 +0000)]
Only copy out the battery status/info if there was no error.

18 years agoUse a magic number to know we were started from the elf wrapper.
cognet [Thu, 24 Nov 2005 02:27:55 +0000 (02:27 +0000)]
Use a magic number to know we were started from the elf wrapper.
Add a dummy _start function to make the non-elf version of the wrapper work.

18 years agoCreate a non-elf pure binary version of the kernel as well.
cognet [Thu, 24 Nov 2005 02:25:49 +0000 (02:25 +0000)]
Create a non-elf pure binary version of the kernel as well.

18 years agoOptimized by eliminating the special case for 0.67434 <= |x| < pi/4.
bde [Thu, 24 Nov 2005 02:04:26 +0000 (02:04 +0000)]
Optimized by eliminating the special case for 0.67434 <= |x| < pi/4.

A single polynomial approximation for tan(x) works in infinite precision
up to |x| < pi/2, but in finite precision, to restrict the accumulated
roundoff error to < 1 ulp, |x| must be restricted to less than about
sqrt(0.5/((1.5+1.5)/3)) ~= 0.707.  We restricted it a bit more to
give a safety margin including some slop for optimizations.  Now that
we use double precision for the calculations, the accumulated roundoff
error is in double-precision ulps so it can easily be made almost 2**29
times smaller than a single-precision ulp.  Near x = pi/4 its maximum
is about 0.5+(1.5+1.5)*x**2/3 ~= 1.117 double-precision ulps.

The minimax polynomial needs to be different to work for the larger
interval.  I didn't increase its degree the old degree is just large
enough to keep the final error less than 1 ulp and increasing the
degree would be a pessimization.  The maximum error is now ~0.80
ulps instead of ~0.53 ulps.

The speedup from this optimization for uniformly distributed args in
[-2pi, 2pi] is 28-43% on athlons, depending on how badly gcc selected
and scheduled the instructions in the old version.  The old version
has some int-to-float conversions that are apparently difficult to schedule
well, but gcc-3.3 somehow did everything ~10 cycles or ~10% faster than
gcc-3.4, with the difference especially large on AXPs.  On A64s, the
problem seems to be related to documented penalties for moving single
precision data to undead xmm registers.  With this version, the speed
is cycles is almost independent of the athlon and gcc version despite
the large differences in instruction selection to use the FPU on AXPs
and SSE on A64s.

18 years agoMerge in new driver version from Intel - 3.2.18.
glebius [Thu, 24 Nov 2005 01:44:49 +0000 (01:44 +0000)]
Merge in new driver version from Intel - 3.2.18.

The most important change is support for adapters based on
82571 and 82572 chips.

Tested on: 82547EI on i386
Tested on: 82540EM on sparc64

18 years agoCorrect division by zero error in comment.
kris [Thu, 24 Nov 2005 00:53:14 +0000 (00:53 +0000)]
Correct division by zero error in comment.

18 years agoRemove UFS-specific parts from mount(8).
rodrigc [Wed, 23 Nov 2005 23:22:56 +0000 (23:22 +0000)]
Remove UFS-specific parts from mount(8).
For mounting UFS, all mount options are passed directly to nmount(),
without any UFS-specific logic.

18 years agoThese files were never hooked into the build, and were the start
rodrigc [Wed, 23 Nov 2005 23:06:33 +0000 (23:06 +0000)]
These files were never hooked into the build, and were the start
of an nmount()-based mount program for UFS.
Now that mount(8) calls nmount() directly for mounting UFS filesystems,
they are unnecessary.

18 years agoIn nmount() and vfs_donmount(), do not strcmp() the options in the iovec
rodrigc [Wed, 23 Nov 2005 20:51:15 +0000 (20:51 +0000)]
In nmount() and vfs_donmount(), do not strcmp() the options in the iovec
directly.  We need to copyin() the strings in the iovec before
we can strcmp() them.  Also, when we want to send the errmsg back
to userspace, we need to copyout()/copystr() the string.

Add a small helper function vfs_getopt_pos() which takes in the
name of an option, and returns the array index of the name in the iovec,
or -1 if not found.  This allows us to locate an option in
the iovec without actually manipulating the iovec members. directly via
strcmp().

Noticed by: kris on sparc64

18 years agoFix prototype.
ru [Wed, 23 Nov 2005 20:34:37 +0000 (20:34 +0000)]
Fix prototype.

18 years agoFix prototype.
ru [Wed, 23 Nov 2005 20:26:58 +0000 (20:26 +0000)]
Fix prototype.

18 years agoDo not pass userquota and groupquota mount options to nmount().
rodrigc [Wed, 23 Nov 2005 20:17:27 +0000 (20:17 +0000)]
Do not pass userquota and groupquota mount options to nmount().
These options are read from fstab by quotacheck(8), but are not
valid mount options that need to be passed down the the filesystem.

Noticed by: maxim

18 years ago- Adding the missing 'W' option back which was accidentally removed
avatar [Wed, 23 Nov 2005 19:52:14 +0000 (19:52 +0000)]
- Adding the missing 'W' option back which was accidentally removed
  in rev1.37.
- Fixing a core dump inside build_iovec_argf by providing a !NULL format
  string to vsnprintf(3).

Reviewed by: rodrigc

18 years agoAdd locking and mark MPSAFE:
jhb [Wed, 23 Nov 2005 18:51:34 +0000 (18:51 +0000)]
Add locking and mark MPSAFE:
- Add locked variants of start, init, and ifmedia_upd.
- Add a mutex to the softc and remove spl calls.
- Use callout(9) rather than timeout(9).
- Setup interrupt handler last in attach.
- Use M_ZERO rather than bzero.

MFC after: 1 week
Tested by: wpaul

18 years agoMFi386: Sort and add COUNT_{IPIS,XINVLTLB_HITS}.
jhb [Wed, 23 Nov 2005 18:12:05 +0000 (18:12 +0000)]
MFi386: Sort and add COUNT_{IPIS,XINVLTLB_HITS}.

Pointy hat to: jhb (2)

18 years agoSort.
jhb [Wed, 23 Nov 2005 18:11:24 +0000 (18:11 +0000)]
Sort.

18 years agoMFP4: Bring in arm9 cache-related functions
cognet [Wed, 23 Nov 2005 18:02:40 +0000 (18:02 +0000)]
MFP4: Bring in arm9 cache-related functions

Obtained from: NetBSD

18 years agoOptimize PLCP length field computation for 802.11b rates.
damien [Wed, 23 Nov 2005 17:32:57 +0000 (17:32 +0000)]
Optimize PLCP length field computation for 802.11b rates.

18 years agoSomehow memmove() got mapped to memset() in the patch table. Create a
wpaul [Wed, 23 Nov 2005 17:10:46 +0000 (17:10 +0000)]
Somehow memmove() got mapped to memset() in the patch table. Create a
real memmove() implementation and use that instead.

18 years agoFix prototypes.
ru [Wed, 23 Nov 2005 16:44:23 +0000 (16:44 +0000)]
Fix prototypes.

18 years ago- Quiet the pci_link(4) devices so that they don't show up in dmesg now.
jhb [Wed, 23 Nov 2005 16:36:13 +0000 (16:36 +0000)]
- Quiet the pci_link(4) devices so that they don't show up in dmesg now.
- Improve panic message if we fail to read the PCI bus number from a bridge
  device.
- Don't try to lookup a BIOS IRQ for a link unless the link is routed via
  an ISA IRQ since BIOSen currently only route PCI link devices via ISA
  IRQs.

Tested by: Mathieu Prevot bsdhack at club-internet dot fr
MFC after: 1 week

18 years agoThere's no longer^Wyet <sys/capability.h>.
ru [Wed, 23 Nov 2005 16:24:39 +0000 (16:24 +0000)]
There's no longer^Wyet <sys/capability.h>.

18 years agoFix inet6_opt_get_val() prototype.
ru [Wed, 23 Nov 2005 16:07:54 +0000 (16:07 +0000)]
Fix inet6_opt_get_val() prototype.

18 years agoMake SYNOPSIS compile.
ru [Wed, 23 Nov 2005 15:55:38 +0000 (15:55 +0000)]
Make SYNOPSIS compile.

18 years agoMake SYNOPSIS compile after imp@'s changes.
ru [Wed, 23 Nov 2005 15:44:42 +0000 (15:44 +0000)]
Make SYNOPSIS compile after imp@'s changes.

18 years agoMake SYNOPSIS compile.
ru [Wed, 23 Nov 2005 15:41:36 +0000 (15:41 +0000)]
Make SYNOPSIS compile.

18 years agoUse only double precision for "kernel" tanf (except for returning float).
bde [Wed, 23 Nov 2005 14:27:56 +0000 (14:27 +0000)]
Use only double precision for "kernel" tanf (except for returning float).
This is a minor interface change.  The function is renamed from
__kernel_tanf() to __kernel_tandf() so that misues of it will cause
link errors and not crashes.

This version is a routine translation with no special optimizations
for accuracy or efficiency.  It gives an unimportant increase in
accuracy, from ~0.9 ulps to 0.5285 ulps.  Almost all of the error is
from the minimax polynomial (~0.03 ulps and the final rounding step
(< 0.5 ulps).  It gives strange differences in efficiency in the -5
to +10% range, with -O1 fairly consistently becoming faster and -O2
slower on AXP and A64 with gcc-3.3 and gcc-3.4.

18 years agoAdd missing includes.
ru [Wed, 23 Nov 2005 10:49:07 +0000 (10:49 +0000)]
Add missing includes.

18 years agoDocument PKG_PATH enviroment variable.
krion [Wed, 23 Nov 2005 10:31:59 +0000 (10:31 +0000)]
Document PKG_PATH enviroment variable.

Prodded by: Mark Andrews <Mark_Andrews AT isc DOT org>
MFC after: 2 days

18 years agocorrect typo
wilko [Wed, 23 Nov 2005 09:00:35 +0000 (09:00 +0000)]
correct typo

18 years agoUserland applications may include queue.h and define INVARIANTS
emaste [Wed, 23 Nov 2005 04:02:27 +0000 (04:02 +0000)]
Userland applications may include queue.h and define INVARIANTS
but not provide a panic(9) implementation.  Thus, enable the sanity
checks under INVARIANTS only if _KERNEL is also defined.

Submitted by: jmallett
Approved by: rwatson (mentor)