ƒµ(153000 165 164 164 1101 402 173 249 171 178 190 192 201 262 232 293 108 434 146 1912 120 179 148 165 221 171 147 701 230 709 205 749 310 569 197 199 247 219 150 124 209 137 175 411 3541 581 175 118 659 113 106 411 223 180 560 294 251 1063 360 209 129 171 164 717 150 152 217 131 423 177 164 159 356 614 104 614 159 177 198 107 371 728 258 169 155 158 134 202 2160 140 634 168 328 343 119 213 101 119 327 148 254 302 222 134 262 125 203 424 145 187 108 126 172 775 154 158 551 182 209 295 146 138 136 652 507 122 122 184 184 172 159 169 169 167 167 1232 468 676 725 234 492 157 149 502 289 124 141 212 928 332 897 229 561 536 446 138 342 243 199 157 258 116 381 127 282 1137 239 K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-12-02T00:17:34.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_5'. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-12-02T00:17:35.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. END K 10 svn:author V 8 ambrisko K 8 svn:date V 27 2005-12-02T00:50:30.000000Z K 7 svn:log V 1002 Add support to easily build FreeBSD unpacked in a chroot of another FreeBSD machine. To do this add the man 1 uname changes to __xuname.c so we can override the settings it reports. Add OSVERSION override to getosreldate. Finally which Makefile.inc1 to use uname -m instead of sysctl -n hw.machine_arch to get the arch. type. With these change you can put a complete FreeBSD OS image into a chroot set: UNAME_s=FreeBSD UNAME_r=4.7-RELEASE UNAME_v="FreeBSD $UNAME_r #1: Fri Jul 22 20:32:52 PDT 2005 fake@fake:/usr/obj/usr/src/sys/FAKE" UNAME_m=i386 UNAME_p=i386 OSVERSION=470000 on an amd64 or i386 and it just work including building ports and using pkg_add -r etc. The caveat for this example is that these patches have to be applied to FreeBSD 4.7 and the uname(1) changes need to be merged. This also addresses issue with libtool. This is usefull for when a build machine has been trashed for an old release and we want to do a build on a new machine that FreeBSD 4.7 won't run on ... END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-12-02T01:23:20.000000Z K 7 svn:log V 306 Fix the misalignment bugs differently than was done in the previous commit. Copy the ethernet address into a local buffer, which we know is sufficiently aligned for the width of the memory accesses that we do. This also eliminates all suspicious and potentionally harmful casts. In collaboration with: ru END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-02T02:33:28.000000Z K 7 svn:log V 77 We've already implemented all TMO functions, set _POSIX_TIMEOUTS to 200112L. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-02T02:36:13.000000Z K 7 svn:log V 152 barrier and spin_lock had already been implemented in libpthread and libthr for a long time, set both _POSIX_BARRIERS and _POSIX_SPIN_LOCKS to 200112L. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-02T02:52:17.000000Z K 7 svn:log V 75 messqge queue has been implemented, set _POSIX_MESSAGE_PASSING to 200112L. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-12-02T03:55:02.000000Z K 7 svn:log V 82 Remove unsupported "dev" option from comments of mntopts.h. Requested by: jkoshy END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-02T04:25:54.000000Z K 7 svn:log V 94 Remove mqueuefs from LINKS, it is no longer needed for nmount interface. Noticed by: rodrigc END K 10 svn:author V 8 ambrisko K 8 svn:date V 27 2005-12-02T04:55:05.000000Z K 7 svn:log V 95 Unbreak build when I fluff the clean-up of __FBSDID diff reduction before commit. pointyhat++ END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-02T07:45:28.000000Z K 7 svn:log V 104 Define MQ_PRIO_MAX, it seems it is the only place the definition will be shared by kernel and userland. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-02T08:23:49.000000Z K 7 svn:log V 165 1. Check if message priority is less than MQ_PRIO_MAX. 2. Use getnanotime instead of getnanouptime. 3. Don't free message in _mqueue_send, mqueue_send will free it. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-12-02T08:33:56.000000Z K 7 svn:log V 135 On the 82571 and newer chipset the ICR register is meaningful only if the E1000_ICR_INT_ASSERTED bit is set. Submitted by: Jack Vogel END K 10 svn:author V 6 anholt K 8 svn:date V 27 2005-12-02T08:53:51.000000Z K 7 svn:log V 197 Restore the enabling of debugging by default by the DRM_DEBUG kernel option. It remains controlled by hw.dri.*.debug no matter what. PR: kern/85479 Submitted by: Oliver Fromme END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-02T09:04:35.000000Z K 7 svn:log V 12 Fix markup. END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-12-02T10:13:53.000000Z K 7 svn:log V 341 Update the ICH7 support so it deals better with chips without AHCI. Update Intel MatrixRAID support to be able to pick up RAID0+1 (RAID10) and RAID5 arrays without panic'ing. This has the side effect of now also supporting multiple volumes on MatrixRAID's now I have the metadata better understood.. HW sponsored by: Mullet Scandinavia AB END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-02T13:35:14.000000Z K 7 svn:log V 54 Add a missing newline to a printf. MFC after: 1 week END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-12-02T13:45:06.000000Z K 7 svn:log V 1818 Fixed roundf(). The following cases never worked in FreeBSD: - in round-towards-minus-infinity mode, on all machines, roundf(x) never worked for 0 < |x| < 0.5 (2*0x3effffff cases in all, or almost half of float space). It was -0 for 0 < x < 0.5 and 0 for -0.5 < x < 0, but should be 0 and -0, respectively. This is because t = ceilf(|x|) = 1 for these args, and when we adjust t from 1 to 0 by subtracting 1, we get -0 in this rounding mode, but we want and expected to get 0. - in round-towards-minus-infinity, round towards zero and round-to-nearest modes, on machines that evaluate float expressions in float precision (most machines except i386's), roundf(x) never worked for |x| = (2 cases in all). It was +-1 but should have been +-0. This is because t = ceilf(|x|) = 1 for these args, and when we try to classify |x| by subtracting it from 1 we get an unexpected rounding error -- the result is 0.5 after rounding to float in all 3 rounding modes, so we we have forgotten the difference between |x| and 0.5 and end up returning the same value as for +-0.5. The fix is to use floorf() instead of ceilf() and to add 1 instead of -1 in the adjustment. With floorf() all the expressions used are always evaluated exactly so there are no rounding problems, and with adjustments of +1 we don't go near -0 when adjusting. Attempted to fix round() and roundl() by cloning the fix for roundf(). This has only been tested for round(), only on args representable as floats. Double expressions are evaluated in double precision even on i386's, so round(0.5-epsilon) was broken even on i386's. roundl() must be completely broken on i386's since long double precision is not really supported. There seem to be no other dependencies on the precision. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-02T13:50:56.000000Z K 7 svn:log V 24 syscall -> system call. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-02T14:09:32.000000Z K 7 svn:log V 83 1. Cleanup including. 2. Set configuration value for CTL_P1003_1B_MESSAGE_PASSING. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-02T14:23:39.000000Z K 7 svn:log V 52 Add option P1003_1B_MQUEUE for POSIX message queue. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-12-02T16:45:03.000000Z K 7 svn:log V 68 MFC: rev. 1.9 + 1.10 Update the list of drivers that need wlan(4). END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-12-02T16:47:27.000000Z K 7 svn:log V 123 MFC: In preparation for automatic hardware notes generation, reword the hardware section text to include the driver name. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-12-02T16:48:42.000000Z K 7 svn:log V 74 MFC: rev. 1.4 Add a CAVEATS section that mentions missing RAID5 support. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-12-02T16:49:36.000000Z K 7 svn:log V 50 MFC: rev. 1.26 Document 82571 and 82572 support. END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-12-02T18:02:54.000000Z K 7 svn:log V 608 Change pmap_enter_quick() to use the vm_prot_t parameter introduced in revision 1.179 to correctly set/clear execute permission on the mapping it creates. Thus, mmap(2)ing a memory resident file will not result in the file being mapped with execute permission when execute permission was not requested. Eliminate an unneeded Instruction Memory Barrier (IMB) in pmap_enter_quick(). Since there was no previous (instruction) mapping for the given virtual address prior to pmap_enter_quick(), there can be no instructions from the given virtual address in the pipeline that need flushing. MFC after: 1 week END K 10 svn:author V 5 dougb K 8 svn:date V 27 2005-12-02T19:54:57.000000Z K 7 svn:log V 135 Force this script to run before mountcritremote to avoid non-deterministic behavior when introducing local_startup scripts to rcorder. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2005-12-02T20:06:07.000000Z K 7 svn:log V 614 Introduce startup scripts from the local_startup directories to the base rcorder. This is accomplished by running rcorder twice, first to get all the disks mounted (through mountcritremote), then again to include the local_startup directories. This dramatically changes the behavior of rc.d/localpkg, as all "local" scripts that have the new rc.d semantics are now run in the base rcorder, so only scripts that have not been converted yet will run in rc.d/localpkg. Make a similar change in rc.shutdown, and add some functions in rc.subr to support these changes. Bump __FreeBSD_version to reflect this change. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2005-12-02T20:35:23.000000Z K 7 svn:log V 110 Brooks pointed out a case where tmp needs to be run after mountcritremote, so force it the other way instead. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-02T21:33:43.000000Z K 7 svn:log V 657 "-o rw" is invalid and undocumented mount option that is only present for fstab(5) compatibility, and is otherwise ignored by mount(8) (not passed to mount_* programs, and not passed to nmount(2)). "-u -o rw" worked with an old mount(8) with mount_ufs.c because "-o rw" was stripped and simple "-u" caused an update of UFS from read-only to read-write, due to inability of mount(2) to track changes in options (MNT_RDONLY is either set or not). "-u" no longer causes the transition from RO to RW, now that mount(8) was converted to use nmount(2), so an explicit change to RW is required. Keep up with this change, and use "-uw" to mount root read-write. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2005-12-02T22:36:14.000000Z K 7 svn:log V 214 Register definitions for the ancient via6522. This 20+ year-old chip still exists as a cell in the Macio asic on Apples, and is used to communicate through the shift register with the external PMU microcontroller. END K 10 svn:author V 6 anholt K 8 svn:date V 27 2005-12-02T23:51:36.000000Z K 7 svn:log V 473 Add support for i915 GMCH AGP. This diff is a combination of work by myself and some fixes from Motomichi Matsuzaki. Testing involved many people, but the final, successful testing was from rwatson who endured several rounds of "it crashes at XYZ stage" "oh, please correct this typo and try again." The Linux driver, and to a small extent the limited specs, were both used as a reference for how to program the chipset. PR: kern/80396 Submitted by: Martin Mersberger END K 10 svn:author V 6 anholt K 8 svn:date V 27 2005-12-03T00:43:57.000000Z K 7 svn:log V 101 Make cleaner diffs by munging the $FreeBSD$s from the FreeBSD CVS sources back into the new sources. END K 10 svn:author V 6 anholt K 8 svn:date V 27 2005-12-03T01:23:50.000000Z K 7 svn:log V 103 Merge DRM CVS as of 2005-12-02, adding i915 DRM support thanks to Alexey Popov, and a new r300 PCI ID. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-12-03T01:26:27.000000Z K 7 svn:log V 150 - Add "rw" mount option to global_opts. - In vfs_donmount(), parse "ro", "noro", and "rw", in order to set or unset the MNT_RDONLY filesystem flag. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-12-03T01:33:06.000000Z K 7 svn:log V 123 Don't bogusly depend on dhclient. It's now run either by /etc/rc.d/netif or from devd rather than by the startup scripts. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-03T01:34:41.000000Z K 7 svn:log V 54 Fix lots of markup and content bug. Submitted by: ru END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-03T01:40:38.000000Z K 7 svn:log V 28 Add option P1003_1B_MQUEUE. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-12-03T01:57:58.000000Z K 7 svn:log V 112 Simplify parsing of mount options by passing "rw" option down to kernel, since vfs_donmount() can now parse it. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-03T02:31:18.000000Z K 7 svn:log V 41 Remove implementation-defined sentences. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-03T02:49:04.000000Z K 7 svn:log V 79 Remove implementation-defined, it has already been described in NOTES section. END K 10 svn:author V 8 ambrisko K 8 svn:date V 27 2005-12-03T05:11:07.000000Z K 7 svn:log V 313 Switch BUILD_ARCH in Makefile to use uname -p suggested by ru. Switch strncpy to strlcpy suggested by gad and issue found by pjd. Add to uname(3) man page describing: UNAME_s UNAME_r UNAME_v UNAME_m Add to getosreldate(3) man page describing: OSVERSION Submitted by: ru, pjd/gad Reviewed by: ru (man pages) END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-12-03T07:23:30.000000Z K 7 svn:log V 3447 Fixed rint(x) in the following cases: (1) In round-to-nearest mode, on all machines, fdlibm rint() never worked for |x| = n+0.75 where n is an even integer between 262144 and 524286 inclusive (2*131072 cases). To avoid double rounding on some machines, we begin by adjusting x to a value with the 0.25 bit not set, essentially by moving the 0.25 bit to a lower bit where it works well enough as a guard, but we botched the adjustment when log2(|x|) == 18 (2*2**52 cases) and ended up just clearing the 0.25 bit then. Most subcases still worked accidentally since another lower bit serves as a guard. The case of odd n worked accidentally because the rounding goes the right way then. However, for even n, after mangling n+0.75 to 0.5, rounding gives n but the correct result is n+1. (2) In round-towards-minus-infinity mode, on all machines, fdlibm rint() never for x = n+0.25 where n is any integer between -524287 and -262144 inclusive (262144 cases). In these cases, after mangling n+0.25 to n, rounding gives n but the correct result is n-1. (3) In round-towards-plus-infinity mode, on all machines, fdlibm rint() never for x = n+0.25 where n is any integer between 262144 and 524287 inclusive (262144 cases). In these cases, after mangling n+0.25 to n, rounding gives n but the correct result is n+1. A variant of this bug was fixed for the float case in rev.1.9 of s_rintf.c, but the analysis there is incomplete (it only mentions (1)) and the fix is buggy. Example of the problem with double rounding: rint(1.375) on a machine which evaluates double expressions with just 1 bit of extra precision and is in round-to-nearest mode. We evaluate the result using (double)(2**52 + 1.375) - 2**52. Evaluating 2**52 + 1.375 in (53+1) bit prcision gives 2**52 + 1.5 (first rounding). (Second) rounding of this to double gives 2**52 + 2.0. Subtracting 2**52 from this gives 2.0 but we want 1.0. Evaluating 2**52 + 1.375 in double precision would have given the desired intermediate result of 2**52 + 1.0. The double rounding problem is relatively rare, so the botched adjustment can be fixed for most machines by removing the entire adjustment. This would be a wrong fix (using it is 1 of the bugs in rev.1.9 of s_rintf.c) since fdlibm is supposed to be generic, but it works in the following cases: - on all machines that evaluate double expressions in double precision, provided either long double has the same precision as double (alpha, and i386's with precision forced to double) or my earlier fix to use a long double 2**52 is modified to avoid using long double precision. - on all machines that evaluate double expressions in many more than 11 bits of extra precision. The 1 bit of extra precision in the example is the worst case. With N bits of extra precision, it sufices to adjust the bit N bits below the 0.5 bit. For N >= about 52 there is no such bit so the adjustment is both impossible and unnecessary. The fix in rev.1.9 of s_rintf.c apparently depends on corresponding magic in float precision: on all supported machines N is either 0 or >= 24, so double rounding doesn't occur in practice. - on all machines that don't use fdlibm rint*() (i386's). So under FreeBSD, the double rounding problem only affects amd64 now, but should only affect i386 in future (when double expressions are evaluated in long double precision). END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-12-03T07:38:35.000000Z K 7 svn:log V 488 Simplified the fix in rev.1.3. Instead of using long double for TWO52[sx] to trick gcc into correctly converting TWO52[sx]+x to double on assignment to "double w", force a correct assignment by assigning to *(double *)&w. This is cleaner and avoids the double rounding problem on machines that evaluate double expressions in double precision. It is not necessary to convert w-TWO52[sx] to double precision on return as implied in the comment in rev.1.3, since the difference is exact. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2005-12-03T07:51:07.000000Z K 7 svn:log V 81 Add an entry explaining the changes which add local scripts to the base rcorder. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-03T08:52:07.000000Z K 7 svn:log V 27 Break hard sentence break. END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-12-03T09:00:29.000000Z K 7 svn:log V 566 Restored removal of the special handling needed for a result of +-0. It was lost in rev.1.9. The log message for rev.1.9 says that the special case of +-0 is handled twice, but it was only handled once, so it became unhandled, and this happened to break half of the cases that return +-0: - round-towards-minus-infinity: 0 < x < 1: result was -0 not 0 - round-to-nearest: -0.5 <= x < 0: result was 0 not -0 - round-towards-plus-infinity: -1 < x < 0: result was 0 not -0 - round-towards-zero: -1 < x < 0: result was 0 not -0 END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-03T09:00:43.000000Z K 7 svn:log V 22 Fix type of argument. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-03T09:01:02.000000Z K 7 svn:log V 15 Fix prototype. END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-12-03T11:57:19.000000Z K 7 svn:log V 318 Fixed fdlibm[+cygnus] logbf() and logb() on denormals. Adjustment according to the highest nonzero bit in a denormal was missing. fdlibm ilogbf() and ilogb() have always had the adjustment, but only use a small part of their method for handling denormals; use the normalization method in log[f]() for the main part. END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-12-03T11:59:26.000000Z K 7 svn:log V 127 Convert to use the recently introduced set of ofw_bus_gen_get_*() for providing the ofw_bus KOBJ interface. Tested by: grehan END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-12-03T12:04:20.000000Z K 7 svn:log V 84 Add "rdonly" to global_opts, and parse it in vfs_donmount(). Requested by: rwatson END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-12-03T13:08:05.000000Z K 7 svn:log V 464 - Improve the comment regarding the workaround for the E250 interrupt map bug by explaining what the problem is and how the workaround works. - Fix some cosmetics nits, mainly properly terminate sentences in comments, which I missed when backporting the style changes to psycho(4) in psycho.c rev. 1.54 due to lack of corresponding code. - The "USIIe version of the Sabre bridge" actually is termed "Hummingbird"; name it as such in comments and messages. END K 10 svn:author V 6 philip K 8 svn:date V 27 2005-12-03T14:37:24.000000Z K 7 svn:log V 198 MFC r1.85: Preserve /etc/sysctl.conf when doing a binary update. This prevents, for instance, the dreaded shared memory problem in PostgreSQL coming back to haunt you after a binary update. END K 10 svn:author V 6 philip K 8 svn:date V 27 2005-12-03T14:45:05.000000Z K 7 svn:log V 155 MFC r1.7: Check for altq presence during module init, and allow module to work even if altq is not present (just disable the altq bits in that case). END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-12-03T16:36:54.000000Z K 7 svn:log V 967 - Register the PCI bus error interrupt handler according to which half of the bridge (PCI bus A or B) we are attaching to rather than registering both handlers at once when attaching to the first half we encounter. This is a bit cleaner as it corresponds to which PCI bus error interrupt actually is assigned to the respective half by the OFW and allows to collapse both PCI bus error interrupt handlers into one function easily. - Use the actual RID of the respective interrupt resource as index into sc_irq_res and also use it when allocating the resource. For now this is a bit cleaner and will be mandatory later on. - According to OpenSolaris the spare hardware interrupt is used as the over-temperature interrupt in systems with Psycho bridges. Unlike as with the SBus-based workstations I didn't manage to trigger it when covering the fan outlets of an U60 but better be safe than sorry and register a handler anyway. MFC after: 1 month END K 10 svn:author V 6 philip K 8 svn:date V 27 2005-12-03T17:32:39.000000Z K 7 svn:log V 264 Add [-J jid_file] option to write out a JidFile, similar to a PidFile, containing the jailid, path, hostname, ip and the command used to start the jail. PR: misc/89883 Submitted by: L. Jason Godsey Reviewed by: phk MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-12-03T18:11:26.000000Z K 7 svn:log V 113 - Adhere style(9) (don't use function calls in initializers, use uintXX_t instead of u_intXX_t). - Use FBSDID. END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-12-03T18:14:47.000000Z K 7 svn:log V 34 Remove unused sc_node from softc. END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-12-03T18:52:31.000000Z K 7 svn:log V 76 - Adhere style(9) (don't use function calls in initializers). - Use FBSDID. END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-12-03T19:37:29.000000Z K 7 svn:log V 72 Eliminate unneeded preallocation at initialization. Reviewed by: tegge END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-12-03T19:52:20.000000Z K 7 svn:log V 621 - Move the declaration of struct upa_ranges and the UPA_RANGE_* macros from sys/sparc64/include/ofw_upa.h to sys/sparc64/pci/ofw_pci.h and rename them to struct ofw_pci_ranges and OFW_PCI_RANGE_* respectively. This ranges struct only applies to host-PCI bridges but no to other bridges found on UPA. At the same time it applies to all host-PCI bridges regardless of whether the interconnection bus is Fireplane/ Safari, JBus or UPA. - While here rename the PCI_CS_* macros in sys/sparc64/pci/ofw_pci.h to OFW_PCI_CS_* in order to be consistent and change this header to use uintXX_t instead of u_intXX_t. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-12-03T19:59:35.000000Z K 7 svn:log V 54 Remove workaround for old GCC bugs. Submitted by: ru END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-03T20:04:24.000000Z K 7 svn:log V 61 Add "makeoption" as an alias to "makeoptions", for symmetry. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-03T20:07:32.000000Z K 7 svn:log V 125 Document "makeoption", "nocpu", and "nomakeoptions" directives. (Indeed this should be repo-copied to src/usr.sbin/config/.) END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-03T20:30:29.000000Z K 7 svn:log V 40 Move the 2->3 upgrade kit on the attic. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-03T21:17:17.000000Z K 7 svn:log V 330 Force any hardwire-routed interrupts to level trigger and active low polarity. Some machines route PCI IRQs to an ISA IRQ but fail to include an interrupt override entry to set the polarity and trigger of the given ISA IRQ in their MADT table. PR: usb/74989 Reported by: Julien Gabel jpeg at thilelli dot net MFC after: 1 week END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-03T21:37:54.000000Z K 7 svn:log V 86 Use a simpler way to reach the include dir, which should also work on pc98. END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-12-03T22:41:15.000000Z K 7 svn:log V 72 Eliminate unneeded preallocation at initialization. Reviewed by: tegge END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-04T00:25:03.000000Z K 7 svn:log V 68 Use __LP64__ to check for the 64-bit pointer type, and fix -Wundef. END K 10 svn:author V 6 philip K 8 svn:date V 27 2005-12-04T00:28:40.000000Z K 7 svn:log V 260 Add "yet another" moused(8) hack: suspend handling mouse events when SIGUSR1 is caught. Can be assigned to a window manager shortcut to prevent accidents with touchpads. PR: bin/89357 Submitted by: Nick Hibma MFC after: 1 week END K 10 svn:author V 6 philip K 8 svn:date V 27 2005-12-04T00:48:33.000000Z K 7 svn:log V 518 MFC: moused.c r1.71 and r1.74 moused.8 r1.54 to r1.57 moused.c r1.71: Add a -H option to enable horizontal virtual scrolling, much like -V for vertical virtual scrolling. This also respects -U for the distance. moused.c 1.74: Add an option to stop 'mouse drift' in some defective/cheap mice. This stops the pointer slowly wandering away on its own in an annoying way when the mouse isn't physically moved. moused.8: Documentation of above and ru's mdoc magic. Procrastinator of the year: philip END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-04T02:12:43.000000Z K 7 svn:log V 13 Fix -Wundef. END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-12-04T04:50:27.000000Z K 7 svn:log V 521 Adhoc mode fixups: o plug memory leak in adhoc mode: on rx the sender may be the current master so simply checking against ic_bss is not enough to identify if the packet comes from an unknown sender; must also check the mac address o split neighbor node creation into two routines and fillin state of nodes faked up on xmit when a beacon or probe response frame is later received; this ensures important state like the rate set and advertised capabilities are correct Obtained from: netbsd MFC after: 1 week END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2005-12-04T05:48:31.000000Z K 7 svn:log V 63 MFC 1.124: pad RBC commands to 12 bytes for Sony DSC camereas. END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2005-12-04T05:52:23.000000Z K 7 svn:log V 81 MFC: fix a number of bugs in the handling of the transfer descriptor done queue. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2005-12-04T07:34:19.000000Z K 7 svn:log V 104 Recognize the Sony Clie PEG-TJ37. Tested on: My PEG-TJ37 and my RELENG_6 workstation MFC after: 1 week END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-04T07:45:12.000000Z K 7 svn:log V 16 Fix on sparc64. END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-12-04T08:57:54.000000Z K 7 svn:log V 278 Use the usual volatile hack to trick gcc into clipping any extra precision on assignment. Extra precision on i386's broke hi+lo decomposition in the usual way. It caused all except 1 of the 62343 errors of more than 1 ulp for log1pf() on i386's with gcc -O [-fno-float-store]. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-12-04T09:34:56.000000Z K 7 svn:log V 631 Merge NetBSD's revision 1.27. This bug can be observed eg. when browsing through the history in sh. | Refresh bug reported by Julien Torres: | | going from: | activate -verbose | to: | reset -activation | results in: | reset -activationverbose" | instead of: | reset -activation | | This is because we choose to insert "reset -" before the current line, | and the delete "e -" and insert "ion" in the appropriate place. The | cleareol code did not handle this case properly; we now cleareol to | the maximum number of characters of the first difference, the second | difference and the difference in line length. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-04T09:47:20.000000Z K 7 svn:log V 166 There no longer seems to be this bug in gcc(1). Remove the badly implemented workaround that caused a workaround to be applied to all architectures, not only amd64. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-04T09:57:09.000000Z K 7 svn:log V 78 Oops, the bug is still here, but reimplement the cpp(1) conditional properly. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-04T10:01:44.000000Z K 7 svn:log V 64 Fix -Wundef warnings and properly check the size of long, FWIW. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-04T10:03:00.000000Z K 7 svn:log V 67 Fix -Wunder and make the sbus code really compile only on sparc64. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-04T10:06:06.000000Z K 7 svn:log V 43 Fix -Wundef from compiling the amd64 LINT. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-04T12:30:34.000000Z K 7 svn:log V 110 Use a compile-time detection of 64-bit addressing so that this compiles on 32-bit machines. Reported by: ale END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-12-04T12:30:44.000000Z K 7 svn:log V 2066 For log1pf(), fixed the approximations to sqrt(2), sqrt(2)-1 and sqrt(2)/2-1. For log1p(), fixed the approximation to sqrt(2)/2-1. The end result is to fix an error of 1.293 ulps in log1pf(0.41421395540 (hex 0x3ed413da)) and an error of 1.783 ulps in log1p(-0.292893409729003961761) (hex 0x12bec4 00000001)). The former was the only error of > 1 ulp for log1pf() and the latter is the only such error that I know of for log1p(). The approximations don't need to be very accurate, but the last 2 need to be related to the first and be rounded up a little (even more than 1 ulp for sqrt(2)/2-1) for the following implementation-detail reason: when the arg (x) is not between (the approximations to) sqrt(2)/2-1 and sqrt(2)-1, we commit to using a correction term, but we only actually use it if 1+x is between sqrt(2)/2 and sqrt(2) according to the first approximation. Thus we must ensure that !(sqrt(2)/2-1 < x < sqrt(2)-1) implies !(sqrt(2)/2 < x+1 < sqrt(2)), where all the sqrt(2)'s are really slightly different approximations to sqrt(2) and some of the "<"'s are really "<="'s. This was not done. In log1pf(), the last 2 approximations were rounded up by about 6 ulps more than needed relative to a good approximation to sqrt(2), but the actual approximation to sqrt(2) was off by 3 ulps. The approximation to sqrt(2)-1 ended up being 4 ulps too small, so the algoritm was broken in 4 cases. The result happened to be broken in 1 case. This is fixed by using a natural approximation to sqrt(2) and derived approximations for the others. In logf(), all the approximations made sense, but the approximation to sqrt(2)/2-1 was 2 ulps too small (a tiny amount, since we compare with a granularity of 2**32 ulps), so the algorithm was broken in 2 cases. The result was broken in 1 case. This is fixed by rounding up the approximation to sqrt(2)/2-1 by 2**32 ulps, so 2**32 cases are now handled a little differently (still correctly according to my assertion that the approximations don't need to be very accurate, but this has not been checked). END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-04T12:37:19.000000Z K 7 svn:log V 49 Use compile-time detection of 64-bit addressing. END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-12-04T13:52:46.000000Z K 7 svn:log V 541 Fixed the approximation to pio4. pio4_hi must be pio2_hi/2 since it shares its low half with pio2_hi. pio2_hi is rounded down although rounding to nearest would be a tiny bit better, so pio4_hi must be rounded down too. It was rounded to nearest, which happens to be different in float precision but the same in double precision. This fixes about 13.5 million errors of more than 1 ulp in asinf(). The largest error was 2.81 ulps on amd64 and 2.57 ulps on i386 -O1. Now the largest error is 0.93 ulps on amd65 and 0.67 ulps on i386 -O1. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2005-12-04T15:44:54.000000Z K 7 svn:log V 75 Add Sony TJ37 to the uvisor manpage. Prompted by: simon MFC after: 1 week END K 10 svn:author V 6 philip K 8 svn:date V 27 2005-12-04T18:25:26.000000Z K 7 svn:log V 232 Catch up with 64bit time_t on sparc64. The rstat packet expects a 32bit time_t and times will look incorrect on machines with 64bit time_t. PR: 88788 Submitted by: Keith White MFC after: 1 week END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-12-04T18:44:21.000000Z K 7 svn:log V 246 Add the times builtin. It reports the user and system time for the shell itself and its children. Instead of calling times() (as implied by POSIX) this implementation directly calls getrusage() to get the times because this is more convenient. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-12-04T18:59:34.000000Z K 7 svn:log V 23 Add the times builtin. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-12-04T19:37:07.000000Z K 7 svn:log V 116 Remove a few commented out builtins from the original ash. The files implementing them were never part of FreeBSD. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-12-04T20:01:48.000000Z K 7 svn:log V 6 Sort. END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-12-04T22:55:41.000000Z K 7 svn:log V 27 Simplify vmspace_dofree(). END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-12-05T01:05:09.000000Z K 7 svn:log V 231 MFC: rev 1.12: make sure that we call if_free(ifp) after bus_teardown_intr. This eliminates the possibility of a crash due to getting an interrupt after we free the ifp and the interrupt handler depending on ifp being still alive. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-12-05T01:05:58.000000Z K 7 svn:log V 53 MFC: rev 1.13: clear pending_txs when not "RUNNING". END K 10 svn:author V 3 flz K 8 svn:date V 27 2005-12-05T01:51:28.000000Z K 7 svn:log V 161 - Add Product IDs for iPod 3G and iPod Video. - Add an USB quirk for iPods, da(4) devices are now successfully created. Approved by: ssouhlal MFC after: 1 week END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-05T03:23:27.000000Z K 7 svn:log V 205 Handle SIGEV_NONE, if notification is SIGEV_NONE, error status and return status will be set, but no notification will be registered. Increase hard limit of maxmsg to 100, so posixtestsuite ports can run. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-05T04:41:32.000000Z K 7 svn:log V 125 After reading some documents, I realized SIGEV_NONE != NULL, also fix code in mqueue_send_notification to handle SIGEV_NONE. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-05T04:44:39.000000Z K 7 svn:log V 38 Document SIGEV_NONE and SIGEV_SIGNAL. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-12-05T05:07:44.000000Z K 7 svn:log V 164 MFC revision 1.5: Make "missing dependency" errors more useful by indicating which port is trying to depend upon the non-existent port. Suggested by: kris END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-05T05:18:23.000000Z K 7 svn:log V 29 Add document about mqueuefs. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2005-12-05T06:47:23.000000Z K 7 svn:log V 108 Canonify, correct, and add citations related to Douglas Adams' work. Correct a quotation from Hitchhiker's. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2005-12-05T07:04:15.000000Z K 7 svn:log V 329 Change how *.sh scripts are handled. If the script is in /etc/rc.d, source it into the shell. If not, handle it in a subshell the same way that "real" rc.d-style scripts are handled. This will dramatically ease the "process local scripts in the base rcorder" transition. Add *.bak to the list of files in */rc.d that we ignore. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-12-05T08:01:10.000000Z K 7 svn:log V 49 Add an MLINKS entry for times.1. Noticed by: ru END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-12-05T09:13:35.000000Z K 7 svn:log V 91 Bump __FreeBSD_version to reflect removal of MNT_NODEV mount option. Requested by: marcus END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-05T09:31:23.000000Z K 7 svn:log V 12 Fix markup. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-05T09:31:49.000000Z K 7 svn:log V 30 Fix markup. Submitted by: ru END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-05T11:58:35.000000Z K 7 svn:log V 81 Fix -Wundef warnings found when compiling i386 LINT, GENERIC and custom kernels. END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-12-05T12:32:20.000000Z K 7 svn:log V 679 - Rev. 1.175 fixed compilation on sparc64 but also backed out zeroing of the eaddr array (introduced in rev. 1.174) prior to writing to it. As dc_read_eeprom() is told to write only 3 16-bit words to eaddr but eaddr in fact is somewhat larger removal of the zeroing defeated the check whether the MAC address is all zero as there can be some random garbage in eaddr past the 3 words written to it and the check verifys all bits in eaddr. Solve this by changing the check to verify only the 3 words (happenning to be ETHER_ADDR_LEN bytes) written to eaddr. - While here change the notation of "FCode" in a nearby comment to the official way. Ok'ed by: marcel, ru END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-12-05T12:55:46.000000Z K 7 svn:log V 59 Teach the elf trampoline how to deal with gzipped kernels. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-12-05T12:58:44.000000Z K 7 svn:log V 63 Try to use contigmalloc() even if M_NOWAIT has been specified. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-12-05T13:04:00.000000Z K 7 svn:log V 454 Add a simple KVM tool to dump the kernel state of UMA, including walking the keg/zone lists, summarizing cache state, and walking bucket lists in each zone. I seem to get inconsistent results on SMP, possibly due to local header problems, but it seems to work quite well on UP. This tool requires sufficient privilege to read /dev/mem (or a core dump), and is for debugging purposes rather than administrative monitoring purposes (use vmstat instead). END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-12-05T14:22:12.000000Z K 7 svn:log V 91 Prepare for MACHINE and hw.machine switching to "pc98" on FreeBSD/pc98. Reviewed by: nyan END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-12-05T16:59:45.000000Z K 7 svn:log V 113 Document the public targets and make variables supported by the build system. Reviewed by: ru (multiple passes) END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-12-05T17:33:57.000000Z K 7 svn:log V 202 Add support for writing Intel MatrixRAID arrays. Do a little better on handling volumes as well, however we cant create multiple volumes from FreeBSD yet. HW sponsored by: Mullet Scandinavia AB END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-12-05T17:58:11.000000Z K 7 svn:log V 54 Switch off debugging that was left on in last commit. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-12-05T18:11:36.000000Z K 7 svn:log V 41 Document Intel MatrixRAID write support. END K 10 svn:author V 4 emax K 8 svn:date V 27 2005-12-05T18:59:43.000000Z K 7 svn:log V 43 MFC: Add bluetooth.device.conf(5) man page END K 10 svn:author V 6 avatar K 8 svn:date V 27 2005-12-05T19:05:06.000000Z K 7 svn:log V 556 Recent nmount(2) adoption in mount_smbfs(8) did not flag the "long" option since mount_smbfs(8) assumed long name mounting by default unless "-n long" was explicitly specified. Rather than supplying a "long" option in mount_smbfs(8), this commit brings back the original behaviour by associating SMBFS_MOUNT_NO_LONG with the "nolong" option. This should fix the broken long file names on smbfs people observed recently. Reported by: Vladimir Grebenschikov Reviewed by: phk Tested by: Slawa Olhovchenkov END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T19:50:00.000000Z K 7 svn:log V 414 If pci_link has been disabled via the acpi_disable tunable, then bail immediately from acpi_pci_link_route_interrupt() since we aren't going to have a valid pci_link device to talk to try to route interrupts. This fixes a page fault if you disable just pci_link. Note that trying to use ACPI without pci_link is probably not advised however. MFC after: 1 week Tested by: Eugene Grosbein eugen at kuzbass dot ru END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T19:59:20.000000Z K 7 svn:log V 30 MFC: Add MLINK for execvP(3). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T20:00:49.000000Z K 7 svn:log V 30 MF6: Add MLINK for execvP(3). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T20:03:48.000000Z K 7 svn:log V 92 MFC: Clarify that si(4) doesn't support the newer SX+ cards from Specialix/Perle currently. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T20:04:02.000000Z K 7 svn:log V 92 MF6: Clarify that si(4) doesn't support the newer SX+ cards from Specialix/Perle currently. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T20:07:33.000000Z K 7 svn:log V 80 MFC: - mdoc sweep - Use .fn to markup untimeout. - Reword a confusing sentence. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T20:07:52.000000Z K 7 svn:log V 67 MF6: - Use .fn to markup untimeout. - Reword a confusing sentence. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T20:10:44.000000Z K 7 svn:log V 77 MFC: Restore the previous state after a FILL operation in properties_read(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T20:10:57.000000Z K 7 svn:log V 77 MF6: Restore the previous state after a FILL operation in properties_read(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T20:14:40.000000Z K 7 svn:log V 75 MFC: Use >= rather than > to check for a process exceeding its time limit. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T20:14:56.000000Z K 7 svn:log V 75 MF6: Use >= rather than > to check for a process exceeding its time limit. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T20:45:24.000000Z K 7 svn:log V 1138 Tweak witness handling of lock object to shave 2 pointers off of each lock object (and thus off of each mutex and sx lock): - Rename the all_locks list to pending_locks and only put locks initialized before SI_SUB_WITNESS on the list so that the SI_SUB_WITNESS can add them to witness once it starts up. - Now that pending_locks is only used during early startup, change it from a TAILQ to an STAILQ. This removes a pointer from the STAILQ_ENTRY in struct lock_object. - Since the pending_locks list is only used during the single-threaded early boot it no longer needs to be protected by a mutex, so remove all_mtx. - Since the lo_list member of struct lock_object is now only used during early boot before witness is running, collapse lo_list and lo_witness into a union. This shaves the second pointer off of struct lock_object. - Axe lock_cur_cnt and lock_max_cnt. With these changes, struct mtx shrinks from 36 to 28 bytes on 32-bit platforms and from 72 to 56 bytes on 64-bit platforms. Note that this commit will completely and utterly destroy the kernel ABI, so no MFC. Tested on: alpha, amd64, i386, sparc64 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T20:49:45.000000Z K 7 svn:log V 375 - Don't make the driver lock recursive, it shouldn't be recursively acquired anywhere in the driver now. - Axe the spin mutex used for the nve_oslock*() routines. The driver lock already provides sufficient synchronization. - Don't mess around with IFF_UP when the link state changes. IFF_UP is an administrative flag, not a link status indicator. MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T21:44:47.000000Z K 7 svn:log V 583 - Move PUSH_FRAME and POP_FRAME into machine/asmacros.h. - Add a new SET_KERNEL_SREGS macro that sets up %ds and %es to point to kernel data and %fs to point to per-CPU data and use the new macro in several kernel entry points including trap and interrupt handlers. - Convert the IPI_STOP handler Xcpustop to push a standard trap frame rather than an application frame. - Make the TRAP() macro private to exception.s since it is only used there. - Move the PCPU_*() macros in asmacros.h out of the middle of the profiling macros. Reviewed by: bde Requested by: bde (4, 5) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T22:09:30.000000Z K 7 svn:log V 632 Really slam the door on mixed mode now that we don't depend on it for a working IRQ0 with APIC anymore. Previously, it was possible to have some other ATPIC IRQS "leak" through in a few edge cases. For example, on my x86 test machine, ACPI re-routes the SCI (IRQ 9) to intpin 13 on the first I/O APIC. This leaves a hole for IRQ 13 (since the APIC doesn't provide a source for IRQ 13 in that case) with the result that the ATPIC IRQ13 source was registered instead. This changes the 8259A drivers to only register their interrupt sources if none of the 16 ISA IRQs have an interrupt source already installed. MFC after: 1 week END K 10 svn:author V 6 jcamou K 8 svn:date V 27 2005-12-05T22:10:09.000000Z K 7 svn:log V 138 Fix a couple typos. PR: docs/89881 Submitted by: Seán Farley Approved by: trhodes (mentor) MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T22:11:44.000000Z K 7 svn:log V 399 Don't panic if IRQ 13 doesn't exist. On some machines (see previous commit to atpic.c) there may not be an IRQ 13. Instead, just keep going. If the INT16 interface doesn't work then we will eventually panic anyway. FWIW: We could probably just axe the support for IRQ 13 altogether at this point. The only thing we'd lose support for are 486sx systems with external 487 FPUs. MFC after: 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2005-12-05T22:14:13.000000Z K 7 svn:log V 65 correct handling of dtim for periods > 1 Obtained from: madwifi END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T22:20:23.000000Z K 7 svn:log V 57 Remove unused local variable misssed in previous commit. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T22:25:41.000000Z K 7 svn:log V 409 - Move the code to deal with handling an IPI_STOP IPI out of ipi_nmi_handler() and into a new cpustop_handler() function. Change the Xcpustop IPI_STOP handler to call this function instead of duplicating all the same logic in assembly. - EOI the local APIC for the lapic timer interrupt in C rather than assembly. - Bump the lazypmap IPI counter if COUNT_IPIS is defined in C rather than assembly. END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-12-05T22:31:55.000000Z K 7 svn:log V 196 Dont use the BUS_DMA_ALLOCNOW flag. Instead use BUS_DMA_NOWAIT and return ENOMEM to the upper layers if we run out of memory. This solves part of the trouble with running on >4GB memory systems. END K 10 svn:author V 5 wilko K 8 svn:date V 27 2005-12-05T22:32:03.000000Z K 7 svn:log V 30 s/Adolph Hitler/Adolf Hitler/ END K 10 svn:author V 5 wilko K 8 svn:date V 27 2005-12-05T22:35:37.000000Z K 7 svn:log V 47 s/Adolph Hitler/Adolf Hitler/ s/hitler/Hitler/ END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-12-05T22:37:37.000000Z K 7 svn:log V 116 FreeBSD has had endian conversion macros for a long time. Axe the custom macros in this driver. MFC After: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-12-05T22:39:09.000000Z K 7 svn:log V 835 Change the i386 code to pass the interrupt vector as a separate argument rather than embedding it in the intrframe as if_vec. This reduces diffs with amd64 somewhat. - Remove cf_vec from clockframe (it wasn't used anyway) and stop pushing dummy vector arguments for ipi_bitmap_handler() and lapic_handle_timer() since clockframe == trapframe now. - Fix ddb to handle stack traces across interrupt entry points that just have a trapframe on their stack and not a trapframe + vector. - Change intr_execute_handlers() to take a trapframe rather than an intrframe pointer. - Change lapic_handle_intr() and atpic_handle_intr() to take a vector and trapframe rather than an intrframe. - GC struct intrframe now that nothing uses it anymore. - GC CLOCK_TO_TRAPFRAME() and INTR_TO_TRAPFRAME(). Reviewed by: bde Requested by: peter END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-12-05T23:25:59.000000Z K 7 svn:log V 236 More review and adjustment for reality that should have happened 3 years ago. Document the real behavior of bus_dma_tag_create, bus_dmamap_load, and other functions. Also document their arguments and return values. MFC After: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-12-05T23:30:28.000000Z K 7 svn:log V 804 The Oxford 16C950 based CardBus Serial device that I was given some time ago appears to be based not on the typical 1.8432MHz clock, or the other more typical multiple of 8 of this (14.7456MHz), but instead it appears to be 1/2 the PCI clock rate or 16.50000MHz. I'm not 100% sure that this is right, but since I did the original entry, I'm going to go ahead and modify it. With the 14.7456MHz value, I was getting bits that were ~7.3us instead of ~8.6us like they are supposed to be. My measuring gear for today is a stupid handheld scope with two signficant digits. So I don't know if it is 33.000000/2 MHz or some other value close to 16.5MHz, but 16.5MHz works well enough for me to use a couple of different devices at 115200 baud, and is a nice even multiple of a well known clock frequency... END K 10 svn:author V 5 peter K 8 svn:date V 27 2005-12-06T02:01:06.000000Z K 7 svn:log V 134 Fix ypwhich -m. This should be MFC'ed back at least as far as RELENG_5. Submitted by: Gil Kloepfer PR: 64445 END K 10 svn:author V 3 ume K 8 svn:date V 27 2005-12-06T02:51:41.000000Z K 7 svn:log V 468 MFC: We couldn't specify the rule for filtering tunnel traffic since an IPv6 support was committed: - Stop treating `ip' and `ipv6' as special in `proto' option as they conflict with /etc/protocols. - Disuse `ipv4' in `proto' option as it is corresponding to `ipv6'. - When protocol is specified as numeric, treat it as it is even it is 41 (ipv6). - Allow zero for protocol as it is valid number of `ip'. sbin/ipfw/ipfw.8: 1.180 src/sbin/ipfw/ipfw2.c: 1.80 END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-12-06T02:58:12.000000Z K 7 svn:log V 442 Add experimental BPF Just-In-Time compiler for amd64 and i386. Use the following kernel configuration option to enable: options BPF_JITTER If you want to use bpf_filter() instead (e. g., debugging), do: sysctl net.bpf.jitter.enable=0 to turn it off. Currently BIOCSETWF and bpf_mtap2() are unsupported, and bpf_mtap() is partially supported because 1) no need, 2) avoid expensive m_copydata(9). Obtained from: WinPcap 3.1 (for i386) END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-12-06T05:27:11.000000Z K 7 svn:log V 353 Since rc.subr is a library of functions, it should not use exit every now and then. It is up to the caller to choose a proper action upon an error condition. Therefore, use return, not exit, except for some special cases. Consistently return 1 to indicate an error. Submitted by: sem (initially) Reviewed by: freebsd-rc (silence) MFC after: 2 weeks END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-06T05:30:13.000000Z K 7 svn:log V 42 Fix a lock leak in childproc_continued(). END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-06T06:02:35.000000Z K 7 svn:log V 245 o Add some pad fields into struct sigevent for future extension. (suggested by alfred@) o Reuse si_band field in struct __siginfo, add a mqd member which will be used by mqueue. o Add code SI_KERNEL to indicate a signal is queued by kernel. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-06T06:22:12.000000Z K 7 svn:log V 146 o Turn on MPSAFE flag for mqueuefs. o Reuse si_mqd field in siginfo_t, this also gives userland information about which descriptor is notified. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-12-06T06:45:39.000000Z K 7 svn:log V 105 - Micro-optimize `mov $0, %edx' -> `xor %edx, %edx'. - Correct amd64 macro style (no functional change). END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-12-06T07:22:01.000000Z K 7 svn:log V 64 s/M_WAITOK/M_NOWAIT/ while mutex is held. Pointed out by: csjp END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-12-06T07:39:36.000000Z K 7 svn:log V 165 Reduce the scope of the page queues lock in exec_map_first_page(). The vm object lock is sufficient for reading a page's PG_BUSY and busy flags. MFC after: 1 week END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-06T07:54:10.000000Z K 7 svn:log V 20 Sync with signal.h. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-12-06T09:51:10.000000Z K 7 svn:log V 284 MFC 1.17: - 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 Reported by: Daniil Kharoun PR: kern/89417 END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-12-06T09:52:54.000000Z K 7 svn:log V 31 Fix markeup. Submitted by: ru END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-12-06T10:39:14.000000Z K 7 svn:log V 185 - Mention also the COMPAT_FREEBSD5 option along with COMPAT_FREEBSD4. - Notice that 20050227 entry is also applicable to packages, not only to world. In collaboration with: osa, phk END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-12-06T10:45:49.000000Z K 7 svn:log V 1039 Optimize parallel processing of ipfw(4) rulesets eliminating the locking of the radix lookup tables. Since several rnh_lookup() can run in parallel on the same table, we can piggyback on the shared locking provided by ipfw(4). However, the single entry cache in the ip_fw_table can't be used lockless, so it is removed. This pessimizes two cases: processing of bursts of similar packets and matching one packet against the same table several times during one ipfw_chk() lookup. To optimize the processing of similar packet bursts administrator should use stateful firewall. To optimize the second problem a solution will be provided soon. Details: o Since we piggyback on the ipfw(4) locking, and the latter is per-chain, the tables are moved from the global declaration to the struct ip_fw_chain. o The struct ip_fw_table is shrunk to one entry and thus vanished. o All table manipulating functions are extended to accept the struct ip_fw_chain * argument. o All table modifing functions use IPFW_WLOCK_ASSERT(). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-12-06T11:16:11.000000Z K 7 svn:log V 142 When we drop packet due to no space in output interface output queue, also increase the ifp->if_snd.ifq_drops. PR: 72440 Submitted by: ikob END