summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* New option: NO_FFS_SNAPSHOT. I did this in p4 about the same timeimp2006-01-062-0/+63
| | | | | | | that NetBSD implemented it independently of them (don't know which one was actually first). This saves about 24k for those times you don't need snapshot support (like when running off a ram disk, or in an embedded environment where size matters).
* Remove XXX comments complaining that write(2) on a read-only descriptorjhb2006-01-051-2/+2
| | | | | | | | | | | returns EBADF. That errno is correct and is mandated by POSIX. It also goes back to revision 1.1 of our CVS history (i.e. 4.4BSD). The _fget() function should probably also be upated as it currently returns EINVAL in that case rather than EBADF. (It does return EBADF for reads on a write-only descriptor without any XXX comments oddly enough.) Discussed with: scottl, grog, mjacob, bde
* Get rid of the advertising clause in the copyright.sos2006-01-0522-66/+22
|
* Don't hold a reference to the disk vnode for each inode.dumbbell2006-01-051-9/+0
|
* Fix a bug in Synaptics Touchapd support where psm(4) will enter an infinitedumbbell2006-01-051-1/+2
| | | | | | | loop if it receives an out of sync packet. Reviewed by: mux (mentor) MFC after: 4 days
* Refine thread suspension code, now thread suspension is a blockabledavidxu2006-01-057-68/+177
| | | | | | | operation, the caller is blocked util target threads are really suspended, also avoid suspending a thread when it is holding a critical lock. Fix a bug in _thr_ref_delete which tests a never set flag.
* o Typo in the debug message: s/skiped/skipped.maxim2006-01-051-1/+1
| | | | | PR: kern/91346 Submitted by: Gavin Atkinson
* o Typo in the error message: s/invald/invalid.maxim2006-01-051-1/+1
| | | | | PR: misc/91341 Submitted by: Guy Harris
* Document the TMPDIR environment variable.dds2006-01-051-1/+3
| | | | MFC after: 1 week
* Oops, on amd64 (and probably on all non-i386 systems), the previousbde2006-01-051-6/+11
| | | | | | | | | | | | | | commit broke the 2**24 cases where |x| > DBL_MAX/2. There are exponent range problems not just for denormals (underflow) but for large values (overflow). Doubles have more than enough exponent range to avoid the problems, but I forgot to convert enough terms to double, so there was an x+x term which was sometimes evaluated in float precision. Unfortunately, this is a pessimization with some combinations of systems and compilers (it makes no difference on Athlon XP's, but on Athlon64's it gives a 5% pessimization with gcc-3.4 but not with gcc-3.3). Exlain the problem better in comments.
* Document the recently-added EINVAL behavior.dds2006-01-051-1/+7
| | | | MFC after: 1 week
* Use double precision internally to optimize cbrtf(), and change thebde2006-01-051-28/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | algorithm for the second step significantly to also get a perfectly rounded result in round-to-nearest mode. The resulting optimization is about 25% on Athlon64's and 30% on Athlon XP's (about 25 cycles out of 100 on the former). Using extra precision, we don't need to do anything special to avoid large rounding errors in the third step (Newton's method), so we can regroup terms to avoid a division, increase clarity, and increase opportunities for parallelism. Rearrangement for parallelism loses the increase in clarity. We end up with the same number of operations but with a division reduced to a multiplication. Using specifically double precision, there is enough extra precision for the third step to give enough precision for perfect rounding to float precision provided the previous steps are accurate to 16 bits. (They were accurate to 12 bits, which was almost minimal for imperfect rounding in the old version but would be more than enough for imperfect rounding in this version (9 bits would be enough now).) I couldn't find any significant time optimizations from optimizing the previous steps, so I decided to optimize for accuracy instead. The second step needed a division although a previous commit optimized it to use a polynomial approximation for its main detail, and this division dominated the time for the second step. Use the same Newton's method for the second step as for the third step since this is insignificantly slower than the division plus the polynomial (now that Newton's method only needs 1 division), significantly more accurate, and simpler. Single precision would be precise enough for the second step, but doesn't have enough exponent range to handle denormals without the special grouping of terms (as in previous versions) that requires another division, so we use double precision for both the second and third steps.
* Enable truss for powerpcgrehan2006-01-051-2/+1
|
* Add powerpc support for truss.grehan2006-01-053-0/+358
| | | | | Initial work by: Orlando Bassotto < orlando at break net > Modified by: grehan
* Add -w parameter which tells kgdb to open kmem-based targets in read-writekan2006-01-041-3/+8
| | | | | | | | mode. This allows one to use kgdb on /dev/mem and be able to patch memory on a live system. This is identical to what -wcore used to do in previous gdb versions for FreeBSD. Requested by: wpaul
* Check for 10BaseT media correctly. Before we were confusingimp2006-01-041-1/+2
| | | | | | | | ifm_status and ifm_active. IFM_10_T gets set in the ifm_active field, not in the ifm_status field, as far as I can tell. Note: this was to enable a workaround that's rarely enabled. I don't know how to corrupt my eeprom to test it, and would rather not know...
* Return the proper rmi field in DVDIOCREADSTRUCTURE.sos2006-01-041-1/+1
| | | | PR: 89650
* We don't support I386_CPU in 6.0 and later. This file can be cleanednetchild2006-01-041-16/+0
| | | | | | | | up some to assume that '#if defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU)' is true. Suggested by: jhb Reviewed by: jhb
* Convert the PAGE_SIZE check into a CTASSERT.netchild2006-01-041-1/+3
| | | | Suggested by: jhb
* This commit was generated by cvs2svn to compensate for changes in r154032,dougb2006-01-041-3/+3
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * After some discussion with the folks at ISC, it turns out that the _ai_paddougb2006-01-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | part of the structure was a hack to maintain binary compatibility with Sun binaries, and my understanding is that it's not needed generally on sparc systems running other operating systems. Therefore, hide this code behind the same set of tests as in lib/bind/include/netdb.h. This file is being imported on the vendor branch because a similar change (or change with similar effect) will be in the next version of BIND 9. This change will not affect other platforms in any way.
* | Prevent divide by zero, use default values in case one of the divisor'snetchild2006-01-041-1/+1
| | | | | | | | | | | | is zero. Tested by: Randy Bush <randy@psg.com>
* | Enable boot floppies for amd64. I just copied the needed variables overjhb2006-01-041-0/+6
| | | | | | | | | | | | | | | | from i386. Tested by: Markus Trippelsdorf markus at trippelsdorf dot de Approved by: scottl MFC after: 1 week
* | Minor whitespace cleanup.bz2006-01-041-2/+2
| |
* | Fix minor sorting issue.joel2006-01-041-1/+1
| |
* | Remove references to snd_vortex1(4).joel2006-01-043-3/+0
| | | | | | | | Approved by: tanimura, ariff
* | dd some old gssapi libs.netchild2006-01-041-0/+6
| | | | | | | | Requested by: bz
* | Fix broken capabilities, causing failure during channel reset.ariff2006-01-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | Its min/max speed were off by -/+ 1000. Reported by: [1] Ion-Mihai Tetcu <itetcu@people.tecnik93.com> [2] barner MFC after: 1 day [1] http://lists.freebsd.org/mailman/htdig/freebsd-multimedia/2005-December/003189.html [2] http://lists.freebsd.org/mailman/htdig/freebsd-multimedia/2006-January/003422.html
* | Add a new leaf to the net.link.generic.ifdata.%d sysctl to retrieveharti2006-01-043-5/+44
| | | | | | | | | | | | | | the name and unit number assigned by the driver. This is needed by SNMP to find interfaces after they have been renamed. MFC after: 4 weeks
* | - Make sure the cpu_exthigh variable is initialized (page coloring case). [1]netchild2006-01-041-19/+39
| | | | | | | | | | | | | | | | - Remove a conditional in the AMD cache detection, it's always false. [2] - Don't try to detect a cache if only compiled for i386. Analyzed by: Antoine Brodin <antoine.brodin@laposte.net> [1] Submitted by: Antoine Brodin <antoine.brodin@laposte.net> [2]
* | 1. Add SIGEV_THREAD notification for mq_notify.davidxu2006-01-042-198/+343
| | | | | | | | | | 2. Reuse current timer code and abstract some common code to to support both timer and mqueue.
* | Fix the promise modesetting for old chips.sos2006-01-041-4/+2
| | | | | | | | Pointy hat to: sos
* | Deorbit ttymalloc() in preference for ttyalloc()phk2006-01-042-17/+2
| |
* | Use ttyalloc() instead of ttymalloc()phk2006-01-043-4/+7
| |
* | Use ttyalloc() instead of ttymalloc()phk2006-01-041-2/+2
| |
* | Use ttyalloc() instead of ttymalloc()phk2006-01-041-1/+1
| |
* | Use ttyalloc() instead of ttymalloc()phk2006-01-041-5/+2
| |
* | Use MTX_SYSINIT to set up the tty list mutex.phk2006-01-041-6/+1
| |
* | Fix promise probe printing.sos2006-01-041-3/+3
| |
* | Fix style bug.dds2006-01-042-4/+4
| | | | | | | | Prompted by: bde
* | Replace tv_usec normalization with the return of EINVAL.dds2006-01-042-48/+12
| | | | | | | | | | | | | | This addresses two objections to the previous behavior, and unbreaks the alpha tinderbox build. TODO: update the utimes(2) man page.
* | Shuffle some definitions so that this can be included from userland.scottl2006-01-031-5/+11
| |
* | Add some more data structures and definitions for communicating with thescottl2006-01-031-1/+72
| | | | | | | | ServeRAID firmware.
* | Normalize the tv_usec part of the utimes(2) arguments to ensuredds2006-01-032-6/+48
| | | | | | | | | | | | | | | | | | | | | | that a file's atime and mtime are only set to correct fractional second values (0-999999000ns with the current interface). Prior to this change users could create files with values outside that range. Moreover, on 32-bit machines tv_usec offsets larger than 4.3s would result in an unnormalized AND wrong timestamp value, due to overflow. MFC after: 1 week
* | Don't use threads when there's no real reason to.des2006-01-032-158/+142
| | | | | | | | MFC after: 2 weeks
* | Fix a couple of issues with the ibcs2 module event handler. First, returnjhb2006-01-031-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | success instead of EOPNOTSUPP when being loaded. Secondly, if there are no ibcs2 processes running when a MOD_UNLOAD request is made, break out to return success instead of falling through into the default case which returns EOPNOTSUPP. With these fixes, I can now kldload and subsequently kldunload the ibcs2 module. PR: kern/82026 (and several duplicates) Reported by: lots of folks MFC after: 1 week
* | Correctly check the filter length. I committed the wrong version.jkim2006-01-031-1/+6
| | | | | | | | Pointy hat to me.
* | - Explicitly validate an empty filter to match bpf_filter() comment[1].jkim2006-01-033-1/+9
| | | | | | | | | | | | - Do not use BPF JIT compiler for an empty filter. [1] Pointed out by: darrenr
* | Release the pci_link acpi serial lock if a link device has no actual links.jhb2006-01-031-1/+3
| | | | | | | | MFC after: 3 days
* | This signal handling code is worse than a no-op. If abrian2006-01-031-6/+1
| | | | | | | | | | | | | | | | | | | | signal is received during the msleep, the msleep is retried indefinitely as it just keeps returning ERESTART because of the pending signal. Instead, just don't PCATCH - the signal can wait. Sponsored by: Sophos/ActiveState
OpenPOWER on IntegriCloud