summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Retire MT_HEADER mbuf type and change its users to use MT_DATA.andre2005-11-0221-41/+35
| | | | | | | | | | | | Having an additional MT_HEADER mbuf type is superfluous and redundant as nothing depends on it. It only adds a layer of confusion. The distinction between header mbuf's and data mbuf's is solely done through the m->m_flags M_PKTHDR flag. Non-native code is not changed in this commit. For compatibility MT_HEADER is mapped to MT_DATA. Sponsored by: TCP/IP Optimization Fundraise 2005
* Updated the comment about the optimization for tiny x (the previousbde2005-11-021-2/+4
| | | | | | | | | | commit moved it). This includes a comment that the "kernel" sine no longer works on arg -0, so callers must now handle this case. The kernel sine still works on all other tiny args; without the optimization it is just a little slower on these args. I intended it to keep working on all tiny args, but that seems to be impossible without losing efficiency or accuracy. (sin(x) ~ x * (1 + S1*x**2 + ...) would preserve -0, but the approximation must be written as x + S1*x**3 + ... for accuracy.)
* o Update list of holidays in Russia.maxim2005-11-021-7/+10
| | | | | Submitted by: osa MFC after: 1 week
* Instead of a panic()ing in pmap_insert_entry() if get_pv_entry() fails,alc2005-11-021-1/+50
| | | | reclaim a pv entry by destroying a mapping to an inactive page.
* Removed dead code for handling tan[f]() on odd multiples of pi/2. Thisbde2005-11-022-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | case never occurs since pi/2 is irrational so no multiple of it can be represented as a float and we have precise arg reduction so we never end up with a remainder of 0 in the "kernel" function unless the original arg is 0. If this case occurs, then we would now fall through to general code that returns +-Inf (depending on the sign of the reduced arg) instead of forcing +Inf. The correct handling would be to return NaN since we would have lost so much precision that the correct result can be anything _except_ +-Inf. Don't reindent the else clause left over from this, although it was already bogusly indented ("if (foo) return; else ..." just marches the indentation to the right), since it will be removed too. Index: k_tan.c =================================================================== RCS file: /home/ncvs/src/lib/msun/src/k_tan.c,v retrieving revision 1.10 diff -r1.10 k_tan.c 88,90c88 < if (((ix | low) | (iy + 1)) == 0) < return one / fabs(x); < else { --- > {
* Fix an erroneous description of the file descriptor assignments forjdp2005-11-021-5/+3
| | | | | | the "~C" command. MFC After: 1 week
* Fixed some of the silliness related to rev.1.8. In 1.8, "double" inbde2005-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a declaration was not translated to "float" although bit fiddling on double variables was translated. This resulted in garbage being put into the low word of one of the doubles instead of non-garbage being put into the only word of the intended float. This had no effect on any result because: - with doubles, the algorithm for calculating -1/(x+y) is unnecessarily complicated. Just returning -1/((double)x+y) would work, and the misdeclaration gave something like that except for messing up some low bits with the bit fiddling. - doubles have plenty of bits to spare so messing up some of the low bits is unlikely to matter. - due to other bugs, the buggy code is reached for a whole 4 args out of all 2**32 float args. The bug fixed by 1.8 only affects a small percentage of cases and a small percentage of 4 is 0. The 4 args happen to cause no problems without 1.8, so they are even less likely to be affected by the bug in 1.8 than average args; in fact, neither 1.8 nor this commit makes any difference to the result for these 4 args (and thus for all args). Corrections to the log message in 1.8: the bug only applies to tan() and not tanf(), not because the float type can't represent numbers large enough to trigger the problem (e.g., the example in the fdlibm-5.3 readme which is > 1.0e269), but because: - the float type can't represent small enough numbers. For there to be a possible problem, the original arg for tanf() must lie very near an odd multiple of pi/2. Doubles can get nearer in absolute units. In ulps there should be little difference, but ... - ... the cutoff for "small" numbers is bogus in k_tanf.c. It is still the double value (2**-28). Since this is 32 times smaller than FLT_EPSILON and large float values are not very uniformly distributed, only 6 args other than ones that are initially below the cutoff give a reduced arg that passes the cutoff (the 4 problem cases mentioned above and 2 non-problem cases). Fixing the cutoff makes the bug affect tanf() and much easier to detect than for tan(). With a cutoff of 2**-12 on amd64 with -O1, 670102 args pass the cutoff; of these, there are 337604 cases where there might be an error of >= 1 ulp and 5826 cases where there is such an error; the maximum error is 1.5382 ulps. The fix in 1.8 works with the reduced cutoff in all cases despite the bug in it. It changes the result in 84492 cases altogether to fix the 5826 broken cases. Fixing the fix by translating "double" to "float" changes the result in 42 cases relative to 1.8. In 24 cases the (absolute) error is increased and in 18 cases it is reduced, but it remains less than 1 ulp in all cases.
* Rate limit vnode_pager_putpages printfs to once a second.ps2005-11-011-3/+8
|
* Throw the switch and turn on STOP_NMI on in GENERIC for amd64 and i386.jhb2005-11-012-0/+2
| | | | | Requested by: kris Ok'd by: scottl
* Catch up with ACPI-CA 20051021 importjkim2005-11-0114-259/+343
|
* Update to reflect import of ACPI-CA 20051021 with includes fixupsjkim2005-11-011-27/+30
|
* Local change: remove unnecessary __cdecljkim2005-11-012-2/+2
|
* Local change: remove compilation warningsjkim2005-11-014-10/+10
|
* Fix conflicts from import of Intel ACPI-CA 20051021jkim2005-11-018-497/+968
|
* Unchanged files that are off the vendor branchjkim2005-11-0113-1679/+639
|
* This commit was generated by cvs2svn to compensate for changes in r151940,jkim2005-11-012-1/+3
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Fix few compilation problems on vendor branch.jkim2005-11-013-1/+6
| | | | | | | | These fixes will be submitted vendor.
* | This commit was generated by cvs2svn to compensate for changes in r151937,jkim2005-11-01175-14401/+22437
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of Intel ACPI-CA 20051021jkim2005-11-01196-16596/+24058
| |
| * Remove old ACPICA files from the INTEL vendor branch. They were removedjhb2005-10-27141-84217/+0
| | | | | | | | | | from HEAD about 4 years ago when we started flattening out the ACPICA distribution.
* | Quick kill links to the nsmb(8) manual page, there is no suchtrhodes2005-11-011-6/+0
| | | | | | | | utility that I can find.
* | Move HPET debugging under ACPI_TIMER in order to save a bitfield.scottl2005-11-012-2/+1
| |
* | Xref setlocale(3), bump document date.trhodes2005-11-011-1/+3
| |
* | Note which options are not part of the standards.trhodes2005-11-011-1/+12
| | | | | | | | | | | | | | Xref locale(1) and bump document date. Reviewed by: keramida No Objections: -standards
* | Push down Giant into fdfree() and remove it from two of the callers.jhb2005-11-013-13/+24
| | | | | | | | | | | | | | Other callers such as some rfork() cases weren't locking Giant anyway. Reviewed by: csjp MFC after: 1 week
* | Add proper debugging infrastructure for acpi_hpet.c.scottl2005-11-012-0/+5
| |
* | Add a "-H" argument to kdump, which causes kdump to print an additionalrwatson2005-11-012-6/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | field holding the threadid. This is more useful for libthr than libpthread, but still quite useful in libpthread as it can be used to process interlaced records from multiple threads over the course of a system call. Detect old ktr_buffer values using the heuristic "if it's negative, then it must not be a valid threadid". This may leave something to be desired. MFC after: 1 month Reviewed by: davidxu
* | Reuse ktr_unused field in ktr_header structure as ktr_tid; populaterwatson2005-11-012-2/+2
| | | | | | | | | | | | | | | | | | ktr_tid as part of gathering of ktr header data for new ktrace records. The continued use of intptr_t is required for file layout reasons, and cannot be changed to lwpid_t at this point. MFC after: 1 month Reviewed by: davidxu
* | Fix some comments, eliminate a memory leak.davidxu2005-11-011-6/+13
| |
* | Replace ktr_buffer pointer in struct ktr_header with a ktr_unusedrwatson2005-11-012-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | intptr_t. The buffer length needs to be written to disk as part of the trace log, but the kernel pointer for the buffer does not. Add a new ktr_buffer pointer to the kernel-only ktrace request structure to hold that pointer. This frees up an integer in the ktrace record format that can be used to hold the threadid, although older ktrace files will have a garbage ktr_buffer field (or more accurately, a kernel pointer value). MFC after: 2 weeks Space requested by: davidxu
* | o OpenBSD 3.8 added.maxim2005-11-011-0/+2
| |
* | Clean up one remaining 'multiple DPC thread' bogon: only bzero() onewpaul2005-11-011-0/+4
| | | | | | | | sizeof(kq_queue), not sizeof(kq_queue) * mp_ncpus.
* | Use TIMERS_UNLOCK.davidxu2005-11-011-1/+1
| |
* | Add code to handle timer_delete(). The timer wrapper code is completelydavidxu2005-11-014-68/+268
| | | | | | | | | | | | rewritten, now timers created with same sigev_notify_attributes will run in same thread, this allows user to organize which timers can run in same thread to save some thread resource.
* | In mode 'u', check for an error return from archive_read_open.kientzle2005-11-011-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | This causes attempts to update a non-existent file to report an actual error instead of triggering an assertion failure. PR: bin/87911 Thanks to: roemer.ulrich MFC after: 3 days Note: This does not entirely fix bin/87911. I need to decide on the "correct" response when someone tries to update a non-existent archive file.
* | Include <sys/param.h> in order to get current __FreeBSD_versionkientzle2005-11-011-0/+1
| | | | | | | | | | | | | | | | in order to properly set HAVE_NL_LANGINFO. <whew!> Thanks to: Andrey Chernov PR: bin/88013 MFC after: 3 days
* | Spell "--format" correctly in error message. (It hasn't beenkientzle2005-11-011-1/+1
| | | | | | | | | | | | | | | | called "-F" for a very long time.) PR: bin/86915 Thanks to: Gary W. Swearingen MFC after: 3 days
* | Consider the zero-copy transmission of a page that was wired by mlock(2).alc2005-11-011-0/+2
| | | | | | | | | | | | | | | | If a copy-on-write fault occurs on the page, the new copy should inherit a part of the original page's wire count. Submitted by: tegge MFC after: 1 week
* | Update SIGTHR's comment.davidxu2005-11-011-1/+1
| |
* | Add items to unmount to the front of the list so they are unmounted inbrooks2005-11-011-2/+2
| | | | | | | | reverse (thus allowing /conf to be unmounted).
* | statically configured IPv6 address is properly added/deleted nowsuz2005-10-311-75/+51
| | | | | | | | | | | | Obtained from: KAME Reported in: freebsd-net@freebsd MFC after: 1 day
* | Switch from pax to tar for extracting cpio archives. pax requires abrooks2005-10-311-1/+1
| | | | | | | | | | | | | | writable /tmp (or TMPDIR) and thus is unsuitable for this job. Tested by: Joerg Pulz <Joerg dot Pulz at frm2 dot tum dot de> PR: conf/88293
* | Tie acpi_hpet.c into the module and kernel.phk2005-10-312-1/+3
| |
* | Add a basic HPET timecounter.phk2005-10-311-0/+190
| | | | | | | | It has -200 quality for now so it will not get automatically selected.
* | - Use callout_*() to manage the callout and make it MPSAFE.jhb2005-10-314-32/+22
| | | | | | | | | | | | | | - Fix locking in detach(), we only need to lock across vr_stop(). Tested by: Mike Tancsa mike at sentex dot net MFC after: 1 week
* | Instead of a panic()ing in pmap_insert_entry() if get_pv_entry()alc2005-10-312-13/+124
| | | | | | | | | | | | | | | | | | | | fails, reclaim a pv entry by destroying a mapping to an inactive page. Change the format strings in many of the assertions that were recently converted from PMAP_DIAGNOSTIC printf()s so that they are compatible with PAE. Avoid unnecessary differences between the amd64 and i386 format strings.
* | Reformat socket control messages on input/output for 32bit compatibilityps2005-10-313-24/+240
| | | | | | | | | | | | | | on 64bit systems. Submitted by: ps, ups Reviewed by: jhb
* | The -x <format> option of pax is for creation of archives, notbrooks2005-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | extraction. This will allow cpio archive support to work, at least in situations where /tmp is writable. Because pax requires a writable /tmp it is unsuitable for this task, but replacing it will come in a later commit. Submitted by: Joerg Pulz <Joerg dot Pulz at frm2 dot tum dot de> PR: conf/88293
* | Hook nve(4) up in i386 and amd64 NOTES.jhb2005-10-312-0/+4
| | | | | | | | MFC after: 1 week
* | Rate limit filesystem full and out of inodes messages to once aps2005-10-311-6/+21
| | | | | | | | second.
OpenPOWER on IntegriCloud