]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoGrumble. DO declare logbl(), DON'T declare logl() just yet.
David Schultz [Thu, 20 Dec 2007 03:16:55 +0000 (03:16 +0000)]
Grumble. DO declare logbl(), DON'T declare logl() just yet.
bde is going to commit logl() Real Soon Now.
I'm just trying to slow him down with merge conflicts.

Noticed by: bde

16 years agoenable wired driver support
Sam Leffler [Thu, 20 Dec 2007 00:52:02 +0000 (00:52 +0000)]
enable wired driver support

Submitted by: "Paul B. Mahol" <onemda@gmail.com>
MFC after: 1 week

16 years agoIn openprom_ioctl() ensure appropriate permissions and that data isn't
Marius Strobl [Thu, 20 Dec 2007 00:31:04 +0000 (00:31 +0000)]
In openprom_ioctl() ensure appropriate permissions and that data isn't
NULL and doesn't point to a NULL pointer before dereferencing it. This
fixes a panic triggered by Xorg 7.3.

Reported and tested by: Bill Green
MFC after: 3 days

16 years agoRemove the declaration of logl(). The relevant bits haven't been
David Schultz [Thu, 20 Dec 2007 00:06:33 +0000 (00:06 +0000)]
Remove the declaration of logl(). The relevant bits haven't been
committed yet, but the declaration leaked in when I added nan() and
friends.

Reported by: pav

16 years agoDescribe new NG_CAR_COUNT_PACKETS option.
Alexander Motin [Wed, 19 Dec 2007 23:12:37 +0000 (23:12 +0000)]
Describe new NG_CAR_COUNT_PACKETS option.

16 years agoCorrect one half of a loop continuation condition in vm_phys_unfree_page().
Alan Cox [Wed, 19 Dec 2007 23:09:45 +0000 (23:09 +0000)]
Correct one half of a loop continuation condition in vm_phys_unfree_page().
At present, this error is inconsequential; the other half of the loop
continuation condition is sufficient to achieve correct execution.

16 years agoAdd option to set packets per second limits instead of default
Alexander Motin [Wed, 19 Dec 2007 22:50:14 +0000 (22:50 +0000)]
Add option to set packets per second limits instead of default
bits per second ones.

16 years agoWhen devclass_get_maxunit is passed a NULL, return -1 to indicate that
Warner Losh [Wed, 19 Dec 2007 22:05:07 +0000 (22:05 +0000)]
When devclass_get_maxunit is passed a NULL, return -1 to indicate that
there's nothing allocated at all yet.

16 years agoUse .An -nosplit in the AUTHORS section of sf_buf(9) to avoid an undesired
Robert Watson [Wed, 19 Dec 2007 20:34:09 +0000 (20:34 +0000)]
Use .An -nosplit in the AUTHORS section of sf_buf(9) to avoid an undesired
line break.

MFC after: 3 days

16 years agoo NetBSD 4.0 added.
Maxim Konovalov [Wed, 19 Dec 2007 18:19:53 +0000 (18:19 +0000)]
o NetBSD 4.0 added.

16 years agoRedefine bus_space_tag_t on PowerPC from a 32-bit integral to
Marcel Moolenaar [Wed, 19 Dec 2007 18:00:50 +0000 (18:00 +0000)]
Redefine bus_space_tag_t on PowerPC from a 32-bit integral to
a pointer to struct bus_space. The structure contains function
pointers that do the actual bus space access.

The reason for this change is that previously all bus space
accesses were little endian (i.e. had an explicit byte-swap
for multi-byte accesses), because all busses on Macs are little
endian.
The upcoming support for Book E, and in particular the E500
core, requires support for big-endian busses because all
embedded peripherals are in the native byte-order.

With this change, there's no distinction between I/O port
space and memory mapped I/O. PowerPC doesn't have I/O port
space. Busses assign tags based on the byte-order only.
For that purpose, two global structures exist (bs_be_tag and
bs_le_tag), of which the address can be taken to get a valid
tag.

Obtained from: Juniper, Semihalf

16 years agoActually program the interrupt controller for priorities. As we
Warner Losh [Wed, 19 Dec 2007 17:34:17 +0000 (17:34 +0000)]
Actually program the interrupt controller for priorities.  As we
support more AT91 platforms, we'll need to move this into some
platform init routine.

16 years agoAdd Dell's sub-vendor id to identify PERC6 RAID controller which has LSI
Doug Ambrisko [Wed, 19 Dec 2007 17:23:47 +0000 (17:23 +0000)]
Add Dell's sub-vendor id to identify PERC6 RAID controller which has LSI
vendor id's.

16 years agoI incorrectly assumed the log buffer started from the beginning when it
Doug Ambrisko [Wed, 19 Dec 2007 17:22:07 +0000 (17:22 +0000)]
I incorrectly assumed the log buffer started from the beginning when it
is actually a circular log.  Deal with it rolling around.  Fortunately,
the log area is big and I haven't seen any roll over yet.  Update and
get rid of the obsolete comment.

16 years agoAllow negative values to be specified in the loader.
Doug Ambrisko [Wed, 19 Dec 2007 17:06:32 +0000 (17:06 +0000)]
Allow negative values to be specified in the loader.

16 years agoThe default of 3 retransmits corresponds to a timeout value of
Ruslan Ermilov [Wed, 19 Dec 2007 16:58:54 +0000 (16:58 +0000)]
The default of 3 retransmits corresponds to a timeout value of
45 seconds, not 15.

16 years agoFix bugs in the TCP syncache timeout code. including:
Ruslan Ermilov [Wed, 19 Dec 2007 16:56:28 +0000 (16:56 +0000)]
Fix bugs in the TCP syncache timeout code. including:

When system ticks are positive, for entries in the cache
bucket, syncache_timer() ran on every tick (doing nothing
useful) instead of the supposed 3, 6, 12, and 24 seconds
later (when it's time to retransmit SYN,ACK).

When ticks are negative, syncache_timer() was scheduled
for the too far future (up to ~25 days on systems with
HZ=1000), no SYN,ACK retransmits were attempted at all,
and syncache entries added in that period that correspond
to non-established connections stay there forever.

Only HEAD and RELENG_7 are affected.

Reviewed by: silby, kmacy (earlier version)
Submitted by: Maxim Dounin, ru

16 years agoDo not recursively acquire aac_io_lock in aac_ioctl_event.
Ed Maste [Wed, 19 Dec 2007 14:33:40 +0000 (14:33 +0000)]
Do not recursively acquire aac_io_lock in aac_ioctl_event.

MFC After: 3 days

16 years agoUpdate the number of reported tests to keep prove(1) happy.
Diomidis Spinellis [Wed, 19 Dec 2007 11:52:33 +0000 (11:52 +0000)]
Update the number of reported tests to keep prove(1) happy.

16 years agoCorrect the "move file from directory to existing directory" test for
Diomidis Spinellis [Wed, 19 Dec 2007 11:00:22 +0000 (11:00 +0000)]
Correct the "move file from directory to existing directory" test for
cross-device moves.

16 years agoAdd missing section number.
Christian Brueffer [Wed, 19 Dec 2007 08:01:24 +0000 (08:01 +0000)]
Add missing section number.

16 years agoEliminate redundant code from vm_page_startup().
Alan Cox [Wed, 19 Dec 2007 05:47:50 +0000 (05:47 +0000)]
Eliminate redundant code from vm_page_startup().

16 years agoRemove extraneous debug statements.
Kip Macy [Wed, 19 Dec 2007 05:17:40 +0000 (05:17 +0000)]
Remove extraneous debug statements.

Noticed by: Andrey Chernov

16 years agoAdd missing dependencies on Makefile (fixes NO_CLEAN builds).
Ruslan Ermilov [Wed, 19 Dec 2007 05:10:07 +0000 (05:10 +0000)]
Add missing dependencies on Makefile (fixes NO_CLEAN builds).

16 years agoReduce lock contention for simple cases.
Warner Losh [Wed, 19 Dec 2007 04:30:10 +0000 (04:30 +0000)]
Reduce lock contention for simple cases.

# this really should be done with pthread_once, but I've debugged this code.

Reviewed by: arch@

16 years agoAdd note about other systems.
Warner Losh [Wed, 19 Dec 2007 03:33:13 +0000 (03:33 +0000)]
Add note about other systems.

16 years agoCorrect typo in usage message.
Warner Losh [Wed, 19 Dec 2007 03:31:44 +0000 (03:31 +0000)]
Correct typo in usage message.

16 years agoGo ahead and install usbdevs. This will be used by the usbdevs device
Warner Losh [Wed, 19 Dec 2007 01:28:17 +0000 (01:28 +0000)]
Go ahead and install usbdevs.  This will be used by the usbdevs device
to print more information about some devices.

16 years agoAdd verbage on some of the rules for a 'filter' vs an 'ithread'
Warner Losh [Wed, 19 Dec 2007 01:26:34 +0000 (01:26 +0000)]
Add verbage on some of the rules for a 'filter' vs an 'ithread'
interrupt handler.

16 years agoAs several people pointed out, I did all the ctype casts the wrong
Dag-Erling Smørgrav [Wed, 19 Dec 2007 00:26:36 +0000 (00:26 +0000)]
As several people pointed out, I did all the ctype casts the wrong
way (not for the first time...)

Noticed by: bde, ru ++
MFC after: 1 week

16 years agoMove all the xprintf-related symbols to FBSDprivate_1.0.
David Schultz [Tue, 18 Dec 2007 23:49:05 +0000 (23:49 +0000)]
Move all the xprintf-related symbols to FBSDprivate_1.0.

Discussed with: deischen, kan, phk

16 years agoSince nan() is supposed to work the same as strtod("nan(...)", NULL),
David Schultz [Tue, 18 Dec 2007 23:46:32 +0000 (23:46 +0000)]
Since nan() is supposed to work the same as strtod("nan(...)", NULL),
my original implementation made both use the same code. Unfortunately,
this meant libm depended on a vendor header at compile time and previously-
unexposed vendor bits in libc at runtime.

Hence, I just wrote my own version of the relevant vendor routine. As it
turns out, mine has a factor of 8 fewer of lines of code, and is a bit more
readable anyway. The strtod() and *scanf() routines still use vendor code.

Reviewed by: bde

16 years agoDon't overload tcp_usrreqs unless the kernel doesn't provide offload support.
Kip Macy [Tue, 18 Dec 2007 23:00:25 +0000 (23:00 +0000)]
Don't overload tcp_usrreqs unless the kernel doesn't provide offload support.

16 years agoIncorporate TCP offload hooks in to core TCP code.
Kip Macy [Tue, 18 Dec 2007 22:59:07 +0000 (22:59 +0000)]
Incorporate TCP offload hooks in to core TCP code.
  - Rename output routines tcp_gen_* -> tcp_output_*.
  - Rename notification routines that turn in to no-ops in the absence of TOE
    from tcp_gen_* -> tcp_offload_*.
  - Fix some minor comment nits.
  - Add a /* FALLTHROUGH */

Reviewed by: Sam Leffler, Robert Watson, and Mike Silbersack

16 years agoBe more exact with sigaction SA_SIGINFO handling.
David E. O'Brien [Tue, 18 Dec 2007 20:39:13 +0000 (20:39 +0000)]
Be more exact with sigaction SA_SIGINFO handling.

Reviewed by: marcel

16 years agoFix printing of the number of syncache entries added.
Ruslan Ermilov [Tue, 18 Dec 2007 12:07:10 +0000 (12:07 +0000)]
Fix printing of the number of syncache entries added.

16 years agoDocument NO_PROXY / no_proxy.
Dag-Erling Smørgrav [Tue, 18 Dec 2007 11:03:26 +0000 (11:03 +0000)]
Document NO_PROXY / no_proxy.

MFC after: 3 weeks

16 years agoAdd support for the NO_PROXY / no_proxy environment variable as used by
Dag-Erling Smørgrav [Tue, 18 Dec 2007 11:03:07 +0000 (11:03 +0000)]
Add support for the NO_PROXY / no_proxy environment variable as used by
lynx, curl etc.  Note that this patch differs significantly from that
in the PR, as the submitter refined it after submitting the PR.

PR: 110388
Submitted by: Alexander Pohoyda <alexander.pohoyda@gmx.net>
MFC after: 3 weeks

16 years agoOld patch I had lying around: correctly cast the argument to is*().
Dag-Erling Smørgrav [Tue, 18 Dec 2007 10:41:12 +0000 (10:41 +0000)]
Old patch I had lying around: correctly cast the argument to is*().
IWBNI gcc could warn about this the way it warns about printf() abuse.

MFC after: 1 week

16 years agoStylify ipcs/ipcs.c and ipcrm/ipcrm in preparation of the upcoming
Edwin Groothuis [Tue, 18 Dec 2007 09:39:47 +0000 (09:39 +0000)]
Stylify ipcs/ipcs.c and ipcrm/ipcrm in preparation of the upcoming
changes as proposed in bin/118292.

Feel free to mention any I have missed, there is much to learn with
regarding to style(9).

Approved by: grog@

16 years agoSimplify the error handling and use the dereferenced sc->sc_ifp pointer.
Andrew Thompson [Tue, 18 Dec 2007 09:13:04 +0000 (09:13 +0000)]
Simplify the error handling and use the dereferenced sc->sc_ifp pointer.

16 years agoPortability improvements to investigate behavior of other OSs.
Diomidis Spinellis [Tue, 18 Dec 2007 08:53:04 +0000 (08:53 +0000)]
Portability improvements to investigate behavior of other OSs.
Now works under Solaris and Linux.

16 years agoAdd more tests. All rename(2)-based tests now succeed.
Diomidis Spinellis [Tue, 18 Dec 2007 08:49:47 +0000 (08:49 +0000)]
Add more tests.  All rename(2)-based tests now succeed.
The performance of the cross-device equivalents is under investigation.

16 years agoWhen the bridge has an address and a packet comes in for it then drop it if the
Andrew Thompson [Tue, 18 Dec 2007 07:04:50 +0000 (07:04 +0000)]
When the bridge has an address and a packet comes in for it then drop it if the
link has been marked discarding by Spanning Tree. This would cause the bridge
to see duplicate packets to itself even if STP has correctly calculated the
topology and blocked redundant links.

Reported by: trasz
Tested by: trasz
MFC after: 3 days

16 years agoUse fixed point integer math instead of floating point math when
Jason Evans [Tue, 18 Dec 2007 05:27:57 +0000 (05:27 +0000)]
Use fixed point integer math instead of floating point math when
calculating run sizes.  Use of the floating point unit was a potential
pessimization to context switching for applications that do not otherwise
use floating point math. [1]

Reformat cpp macro-related comments to improve consistency.

Submitted by: das

16 years ago - Use the macro to check the port status has it will also test if its
Andrew Thompson [Tue, 18 Dec 2007 02:12:03 +0000 (02:12 +0000)]
 - Use the macro to check the port status has it will also test if its
   administratively down (!IFF_UP)
 - Use the same parameters to lagg_link_active() to get the backup port as in
   the output path, this didnt actually matter in practice as sc_primary is
   always the first on the port list.

MFC after: 3 days

16 years agoFix logical bug in the bzip2 reading code, which results in bogus EIO
Maxim Sobolev [Tue, 18 Dec 2007 01:50:49 +0000 (01:50 +0000)]
Fix logical bug in the bzip2 reading code, which results in bogus EIO
returned on a perfectly valid bzip2 stream whose decompressed size
is multiple of read-ahead buffer size. Reproduce the problem is easy:
create some power-of-two sized file (truncate -s 1m file will do),
bzip2 it and try to load it as md_image from loader. See how it fails.

The bug doesn't affect gzip code (which most of bzip2-reading code was
copied from) probably due to the fact that libgzip doesn't report
Z_STREAM_END with the last block, but requires extra call to inflate()
to retrieve it and has some extra data in the input stream at that time.
However, apply similar fix to gzipfs.c just in the case the API will
change in the future to do what bzip2 code does.

Add some ifdef'ed code to enable testing bzipfs.c from witin normal
FreeBSD environment as opposed to the restricted loader one, so that
one can use gdb and whatnot.

Sponsored by: Sippy Software, Inc., http://www.sippysoft.com/
MFC in: 7 days

16 years ago- sctp-iterator should run at PI_NET priority ...not 0.
Randall Stewart [Tue, 18 Dec 2007 01:24:15 +0000 (01:24 +0000)]
- sctp-iterator should run at PI_NET priority ...not 0.

MFC after: 1 week

16 years agoCatch up with vfprintf.c,v 1.77.
David Schultz [Tue, 18 Dec 2007 01:20:33 +0000 (01:20 +0000)]
Catch up with vfprintf.c,v 1.77.

16 years agoRemove z_abs(). The z_*() functions were in libf77, and for some reason
David Schultz [Tue, 18 Dec 2007 01:15:20 +0000 (01:15 +0000)]
Remove z_abs(). The z_*() functions were in libf77, and for some reason
someone thought it would be a good idea to copy z_abs() to libm in 1994.
However, it's never been declared or documented anywhere, and I'm
reasonably confident that nobody uses it.

Discussed with: bde, deischen, kan

16 years agoonly include intr_machdep.h when it is needed for intr_bind
Kip Macy [Mon, 17 Dec 2007 23:39:28 +0000 (23:39 +0000)]
only include intr_machdep.h when it is needed for intr_bind
ia64 doesn't have an intr_machdep.h

16 years agoA few more adjustments needed because of changes in xorg. Just installing
Ken Smith [Mon, 17 Dec 2007 23:22:58 +0000 (23:22 +0000)]
A few more adjustments needed because of changes in xorg.  Just installing
xorg-server doesn't include any video drivers so install xorg-drivers as
well.  And if font-alias isn't installed the X server won't start,
complaining it can't find the font "fixed".

Insta-MFC coming, this was tested with a RELENG_6_3 release build and
the necessary packages as part of the first round of testing for 6.3-RC2.

16 years agoRemove file after being repocopied to ../ofw, where it lives on.
Marcel Moolenaar [Mon, 17 Dec 2007 22:50:39 +0000 (22:50 +0000)]
Remove file after being repocopied to ../ofw, where it lives on.

Repocopy by: simon@

16 years agoBuild the OFW loader from its new location after the sources
Marcel Moolenaar [Mon, 17 Dec 2007 22:19:44 +0000 (22:19 +0000)]
Build the OFW loader from its new location after the sources
were repocopied from ./loader to ./ofw.

16 years agoForced commit to record that this file was repocopied from
Marcel Moolenaar [Mon, 17 Dec 2007 22:18:07 +0000 (22:18 +0000)]
Forced commit to record that this file was repocopied from
src/sys/boot/powerpc/loader.

Repocopy by: simon@

16 years agoAdd myself to the copyright.
Andrew Thompson [Mon, 17 Dec 2007 18:49:44 +0000 (18:49 +0000)]
Add myself to the copyright.

16 years agoOops, the previous commit was not needed -- the file was committed but
Bruce Evans [Mon, 17 Dec 2007 18:21:23 +0000 (18:21 +0000)]
Oops, the previous commit was not needed -- the file was committed but
not checked out due to my checkout error.

16 years agoTranslate from the i386 so that this compiles and runs.
Bruce Evans [Mon, 17 Dec 2007 18:12:06 +0000 (18:12 +0000)]
Translate from the i386 so that this compiles and runs.

I hope that this and the i386 version of it will not be needed, but
this is currently about 16 cycles or 36% faster than the C version,
and the i386 version is about 8 cycles or 19% faster than the C
version, due to poor optimization of the C version.

16 years agoFix a MAC label leak for POSIX semaphores, in which per-policy labels
Robert Watson [Mon, 17 Dec 2007 17:26:32 +0000 (17:26 +0000)]
Fix a MAC label leak for POSIX semaphores, in which per-policy labels
would be properly disposed of, but the global label structure for the
semaphore wouldn't be freed.

MFC after: 3 days
Reported by: tanyong <tanyong at ercist dot iscas dot ac dot cn>,
zhouzhouyi

16 years agoFix leaking MAC labels for IPv6 inpcbs by adding missing MAC label
Robert Watson [Mon, 17 Dec 2007 17:20:57 +0000 (17:20 +0000)]
Fix leaking MAC labels for IPv6 inpcbs by adding missing MAC label
destroy call; this transpired because the inpcb alloc path for IPv4/IPv6
is the same code, but IPv6 has a separate free path.  The results was
that as new IPv6 TCP connections were created, kernel memory would
gradually leak.

MFC after: 3 days
Reported by: tanyong <tanyong at ercist dot iscas dot ac dot cn>,
zhouzhouyi

16 years agoMoved logging out of the nss_method_lookup() in order not to
Michael Bushkov [Mon, 17 Dec 2007 16:12:57 +0000 (16:12 +0000)]
Moved logging out of the nss_method_lookup() in order not to
flood logs with failed fallback method lookup attempts.

16 years agoDon't try to build s_nanl.c before it is committed.
Bruce Evans [Mon, 17 Dec 2007 13:20:38 +0000 (13:20 +0000)]
Don't try to build s_nanl.c before it is committed.

16 years agoCalculate p.fs.lookup_step correctly. This should prevent zeroing of
Oleg Bulyzhin [Mon, 17 Dec 2007 10:25:56 +0000 (10:25 +0000)]
Calculate p.fs.lookup_step correctly. This should prevent zeroing of
w_q_lookup table (used in RED algorithm for (1 - w_q)^t computation).

MFC after: 1 months

16 years agodisable update in place on transmit
Kip Macy [Mon, 17 Dec 2007 10:02:29 +0000 (10:02 +0000)]
disable update in place on transmit

16 years agoAdd SB_NOCOALESCE flag to disable socket buffer update in place
Kip Macy [Mon, 17 Dec 2007 10:02:01 +0000 (10:02 +0000)]
Add SB_NOCOALESCE flag to disable socket buffer update in place

16 years agoCalling any function from vfork other than exec* and _exit yields
Diomidis Spinellis [Mon, 17 Dec 2007 09:02:42 +0000 (09:02 +0000)]
Calling any function from vfork other than exec* and _exit yields
undefined behavior.

Noted by: alfred

16 years agoMake TCP offload work on HEAD (modulo negative interaction between sbcompress
Kip Macy [Mon, 17 Dec 2007 08:17:51 +0000 (08:17 +0000)]
Make TCP offload work on HEAD (modulo negative interaction between sbcompress
and t3_push_frames).
 - Import latest changes to cxgb_main.c and cxgb_sge.c from toestack p4 branch
 - make driver local copy of tcp_subr.c and tcp_usrreq.c and override tcp_usrreqs so
   TOE can also functions on versions with unmodified TCP

- add cxgb back to the build

16 years agoCheck NULL pointer.
David Xu [Mon, 17 Dec 2007 08:09:37 +0000 (08:09 +0000)]
Check NULL pointer.

16 years agoFix an int overflow on very large file systems.
David Schultz [Mon, 17 Dec 2007 08:03:18 +0000 (08:03 +0000)]
Fix an int overflow on very large file systems.

PR: bin/113399
Submitted by: Staffan Ulfberg <staffan@ulfberg.se>

16 years agobuild tcp_offload.c instead of tcp_ofld.c
Kip Macy [Mon, 17 Dec 2007 08:00:08 +0000 (08:00 +0000)]
build tcp_offload.c instead of tcp_ofld.c

16 years agoincorporate feedback since initial commit
Kip Macy [Mon, 17 Dec 2007 07:56:27 +0000 (07:56 +0000)]
incorporate feedback since initial commit
- rename tcp_ofld.[ch] to tcp_offload.[ch]
- document usage and locking conventions of the functions in the
  toe_usrreqs function vector
- document tcpcb, inpcb, and socket fields used by toe
- widen the listen interface into 2 functions
- rename DISABLE_TCP_OFFLOAD to TCP_OFFLOAD_DISABLE
- shrink conditional compilation to reduce the likelihood of bitrot
- replace sc->sc_toepcb checks in tcp_syncache.c with TOEPCB_ISSET

16 years agowiden the routing event interface (arp update, redirect, and eventually pmtu change)
Kip Macy [Mon, 17 Dec 2007 07:40:34 +0000 (07:40 +0000)]
widen the routing event interface (arp update, redirect, and eventually pmtu change)
into separate functions

revert previous commit's changes to arpresolve and add a new interface
arpresolve2 which does arp resolution without an mbuf

16 years agoo Fix a holiday to reflect a reality.
Maxim Konovalov [Mon, 17 Dec 2007 07:36:39 +0000 (07:36 +0000)]
o Fix a holiday to reflect a reality.

Submitted by: Andrey V. Elsukov
MFC after: 1 week

16 years agoAdd missing changes for fixing LOR of umtx lock and thread lock, follow
David Xu [Mon, 17 Dec 2007 05:55:07 +0000 (05:55 +0000)]
Add missing changes for fixing LOR of umtx lock and thread lock, follow
the committing of files:
kern_resource.c revision 1.181
sched_4bsd.c revision 1.111
sched_ule.c revision 1.218

16 years agoUse M_NOWAIT instead of M_WAITOK to cause malloc() to return NULL
Kevin Lo [Mon, 17 Dec 2007 05:08:54 +0000 (05:08 +0000)]
Use M_NOWAIT instead of M_WAITOK to cause malloc() to return NULL

Reviewed by: imp

16 years agoDon't panic in arpresolve if we're given a null mbuf. We could
Kip Macy [Mon, 17 Dec 2007 04:19:25 +0000 (04:19 +0000)]
Don't panic in arpresolve if we're given a null mbuf. We could
insist that the caller just pass in an initialized mbuf even
if didn't have any data - but that seems rather contrived.

16 years agoAdd logbl(3) to libm.
David Schultz [Mon, 17 Dec 2007 03:53:38 +0000 (03:53 +0000)]
Add logbl(3) to libm.

16 years agoAdd function prototypes.
David Xu [Mon, 17 Dec 2007 02:53:11 +0000 (02:53 +0000)]
Add function prototypes.

16 years agoRefactor features a bit in order to make it possible to disable lazy
Jason Evans [Mon, 17 Dec 2007 01:20:04 +0000 (01:20 +0000)]
Refactor features a bit in order to make it possible to disable lazy
deallocation and dynamic load balancing via the MALLOC_LAZY_FREE and
MALLOC_BALANCE knobs.  This is a non-functional change, since these
features are still enabled when possible.

Clean up a few things that more pedantic compiler settings would cause
complaints over.

16 years agoDocument the fact that we have nan(3) now, and make some minor clarifications
David Schultz [Mon, 17 Dec 2007 01:04:43 +0000 (01:04 +0000)]
Document the fact that we have nan(3) now, and make some minor clarifications
in other places.

16 years agoOn platforms where long is 64 bits, make sure gdtoa doesn't use a
David Schultz [Mon, 17 Dec 2007 00:19:49 +0000 (00:19 +0000)]
On platforms where long is 64 bits, make sure gdtoa doesn't use a
long when it really wants an int.

16 years agoFix an amusing typo that has prevented this from compiling since 2004.
David Schultz [Sun, 16 Dec 2007 23:38:55 +0000 (23:38 +0000)]
Fix an amusing typo that has prevented this from compiling since 2004.

16 years agoDon't try the long double tests on i386. Our reduced precision
David Schultz [Sun, 16 Dec 2007 23:36:37 +0000 (23:36 +0000)]
Don't try the long double tests on i386. Our reduced precision
can cause them to fail.

16 years agoFix previous commit: We should only mask the top bit in the STRTOG_NaNBits
David Schultz [Sun, 16 Dec 2007 23:31:55 +0000 (23:31 +0000)]
Fix previous commit: We should only mask the top bit in the STRTOG_NaNBits
case, not the STRTOG_Normal case.

16 years agoRemove hacks to allow libkse to export its symbols in the LIBTHREAD_1_0
Daniel Eischen [Sun, 16 Dec 2007 23:29:57 +0000 (23:29 +0000)]
Remove hacks to allow libkse to export its symbols in the LIBTHREAD_1_0
version namespace which was needed before the library version was
bumped.

16 years agoRemove another Alpha remnant.
David Schultz [Sun, 16 Dec 2007 23:00:18 +0000 (23:00 +0000)]
Remove another Alpha remnant.

16 years agoInclude cdefs.h and param.h for architectures with less header pollution
Kip Macy [Sun, 16 Dec 2007 21:22:24 +0000 (21:22 +0000)]
Include cdefs.h and param.h for architectures with less header pollution

16 years agoRegression tests for nan{,f,l}().
David Schultz [Sun, 16 Dec 2007 21:19:51 +0000 (21:19 +0000)]
Regression tests for nan{,f,l}().

16 years agoImplement and document nan(), nanf(), and nanl(). This commit
David Schultz [Sun, 16 Dec 2007 21:19:28 +0000 (21:19 +0000)]
Implement and document nan(), nanf(), and nanl(). This commit
adds two new directories in msun: ld80 and ld128. These are for
long double functions specific to the 80-bit long double format
used on x86-derived architectures, and the 128-bit format used on
sparc64, respectively.

16 years agoRecognize CFA devices using either identification method.
Poul-Henning Kamp [Sun, 16 Dec 2007 21:19:07 +0000 (21:19 +0000)]
Recognize CFA devices using either identification method.

16 years agoAdd the magic word 0 value for CFA compliant devices.
Poul-Henning Kamp [Sun, 16 Dec 2007 21:18:13 +0000 (21:18 +0000)]
Add the magic word 0 value for CFA compliant devices.

16 years agoExport gdtoa's __ULto{x,Q}_D2A routine in a private namespace so
David Schultz [Sun, 16 Dec 2007 21:15:57 +0000 (21:15 +0000)]
Export gdtoa's __ULto{x,Q}_D2A routine in a private namespace so
libm can use it.

16 years agoArrange so that the NaN returned by strtod("nan", NULL) is the same as
David Schultz [Sun, 16 Dec 2007 21:15:09 +0000 (21:15 +0000)]
Arrange so that the NaN returned by strtod("nan", NULL) is the same as
the NaN returned by strtod("nan()", NULL).

16 years agoFix strto{f,d,ld}() so they don't return signaling NaNs. C99
David Schultz [Sun, 16 Dec 2007 21:14:33 +0000 (21:14 +0000)]
Fix strto{f,d,ld}() so they don't return signaling NaNs. C99
says they are never supposed to, and the fact that they did could
cause apps that run with unmasked FP exceptions to SIGFPE after a
scanf() or strtod(). The vendor stated that he will not be fixing
this, citing portability concerns.

16 years agoSome changes the vendor didn't want:
David Schultz [Sun, 16 Dec 2007 21:13:54 +0000 (21:13 +0000)]
Some changes the vendor didn't want:

- Accept the '0x' prefix so strtod("nan(0x...)", NULL) returns the same
  thing as gcc's builtin nan("0x...") for such strings.
- Don't return uninitialized memory.
- Finish processing the string up to the closing ')' (provided it's
  lexically valid) for compatibility with C99 and *scanf().

16 years agoFix previous commit. The code ended up in the wrong function.
Rui Paulo [Sun, 16 Dec 2007 20:37:27 +0000 (20:37 +0000)]
Fix previous commit. The code ended up in the wrong function.

Approved by:      njl (mentor)

16 years agoReport erase interval (correctly) in sectors.
Poul-Henning Kamp [Sun, 16 Dec 2007 20:19:55 +0000 (20:19 +0000)]
Report erase interval (correctly) in sectors.

16 years agoRename the undocumented -E option to -X.
Poul-Henning Kamp [Sun, 16 Dec 2007 19:41:31 +0000 (19:41 +0000)]
Rename the undocumented -E option to -X.

Implement -E option which will erase the filesystem sectors before
making the new filesystem.  Reserved space in front of the superblock
(bootcode) is not erased.

NB: Erasing can take as long time as writing every sector sequentially.

This is relevant for all flash based disks which use wearlevelling.

16 years agoChop DIOCGDELETE from userland up in 1024 sector chunks to give geom_disk
Poul-Henning Kamp [Sun, 16 Dec 2007 19:38:26 +0000 (19:38 +0000)]
Chop DIOCGDELETE from userland up in 1024 sector chunks to give geom_disk
or any other bio chopping geom a reasonable size of work.

Check for delivered signals between chunks, because the request size
and service time is unbounded.

16 years agoAdd back in cxgb now that the includes are believed to be fixed
Kip Macy [Sun, 16 Dec 2007 18:45:23 +0000 (18:45 +0000)]
Add back in cxgb now that the includes are believed to be fixed