ƒ¦o151835 165 872 130 312 221 206 282 218 197 210 202 135 178 622 156 154 146 146 146 184 179 1478 160 120 146 141 148 147 348 562 807 307 497 288 102 923 124 122 128 133 115 164 166 540 594 574 138 116 121 485 144 363 145 199 752 182 163 458 195 362 516 112 280 782 142 724 874 294 495 523 179 150 163 151 463 223 454 284 195 136 307 229 214 121 321 258 273 487 353 115 215 155 115 642 140 394 577 148 270 235 135 161 183 133 238 180 178 238 140 145 135 134 159 193 131 193 201 149 143 154 154 127 121 135 154 129 136 2854 198 1163 229 168 660 549 166 1997 450 239 138 554 587 655 1039 1308 168 980 266 238 244 239 198 375 465 464 173 222 152 130 224 454 239 109 115 132 220 147 K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-10-29T03:01:16.000000Z K 7 svn:log V 777 Remove call to txp_set_filter() from txp_attach(). txp_set_filter() needs the ifp, so you can't call it before doing if_alloc(). Also, there's really no need to call it here anyway: the code I originally ported from OpenBSD incorrectly set the station address only once at device attach time, instead of setting in txp_init(). This meant you couldn't change the address with ifconfig txp0 ether xx:xx:xx:xx:xx:xx. I added the call to txp_set_filter() in txp_init() to correct this, but forgot to remove the call from txp_attach(). Until now, it never mattered. With this fix, the txp driver tests good: txp0: <3Com 3cR990-TX-97 Etherlink with 3XP Processor> port 0xb800-0xb87f mem 0xe6800000-0xe683ffff irq 12 at device 10.0 on pci0 txp0: Ethernet address: 00:01:03:d4:91:4f END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-29T03:08:43.000000Z K 7 svn:log V 34 Kill unused variable declaration. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-29T03:27:43.000000Z K 7 svn:log V 219 Shut down the card bus bridge hardware on detach. Before we'd just free the resoruces w/o actually turning off the interrupts. This lead to interrupt storms if you were to insert a card after kldunloading the driver. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-29T03:36:00.000000Z K 7 svn:log V 128 Shutdown a little better by commenting the shutdown code and acknowledging any interrupts after we turn off the interrupt mask. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-29T03:48:24.000000Z K 7 svn:log V 113 Add Global Village lan modem. Add Billionton LNA-100B[1] Reported by: [1] Alan newsletter at acsoftware dot org END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-29T03:49:44.000000Z K 7 svn:log V 189 Add Billionton LNA-100B variation that Alan reported in arch. [1] Also add Global Village lan modem, even though I'm unsure if it works. Reported by: Alan newsletter at acsoftware dot org END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-10-29T05:00:25.000000Z K 7 svn:log V 125 Transforming "ppp-user" into just "ppp", step 2: This file has been repo-copied from src/etc/rc.d/ppp-user. (Forced commit.) END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-10-29T05:05:52.000000Z K 7 svn:log V 104 Transforming "ppp-user" into just "ppp", step 3: Install "ppp" (just repocopied) instead of "ppp-user". END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-10-29T05:08:00.000000Z K 7 svn:log V 117 Transforming "ppp-user" into just "ppp", step 4: The legacy script "/etc/netstart" will start "ppp", not "ppp-user". END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-10-29T05:12:14.000000Z K 7 svn:log V 109 Transforming "ppp-user" into just "ppp", step 5: Finally, delete the old, unfittingly named file "ppp-user". END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-10-29T05:27:32.000000Z K 7 svn:log V 43 Record renaming rc.d/ppp-user to rc.d/ppp. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-29T05:49:06.000000Z K 7 svn:log V 86 Use symbolic name rather thanhard coding the cap pointer offset for type two devices. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-29T05:52:17.000000Z K 7 svn:log V 529 MFp4: When doing lazy allocation, it turns out that we need to record the actual resource values we received from the system rather than the range we requested. Since we request a range starting at 0, we would record that number. Later, since this == 0, we'd allocate again. However, we wouldn't write the new resource into the BAR. This resulted in a resource leak as well as a BAR that couldn't access the resource at all since rman_get_start, et al, were wrong. MFC After: 1 week (assuming RELENG_6 is open for business) END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-29T06:38:13.000000Z K 7 svn:log V 61 MFC rev 1.136 and 1.137 Submitted by: tegge Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-29T06:40:41.000000Z K 7 svn:log V 59 MFC rev 1.106 - 1.110 Submitted by: tegge Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-29T06:42:25.000000Z K 7 svn:log V 51 MFC rev 1.294 Submitted by: tegge Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-29T06:43:55.000000Z K 7 svn:log V 51 MFC rev 1.158 Submitted by: tegge Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-29T06:45:38.000000Z K 7 svn:log V 51 MFC rev 1.497 Submitted by: tegge Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-29T07:00:45.000000Z K 7 svn:log V 89 Sync RELENG_6_0 with all of the FFS fixes from Tor. Submitted by: tegge Approved by: re END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-10-29T07:19:11.000000Z K 7 svn:log V 83 Forced commit to note the patch for the previous commit was Submitted by: rodrigc END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-10-29T08:15:29.000000Z K 7 svn:log V 1384 Start trying to make the float precision trig functions actually worth using under FreeBSD. Before this commit, all float precision functions except exp2f() were implemented using only float precision, apparently because Cygnus needed this in 1993 for embedded systems with slow or inefficient double precision. For FreeBSD, except possibly on systems that do floating point entirely in software (very old i386 and now arm), this just gives a more complicated implementation, many bugs, and usually worse performance for float precision than for double precision. The bugs and worse performance were particulary large in arg reduction for trig functions. We want to divide by an approximation to pi/2 which has as many as 1584 bits, so we should use the widest type that is efficient and/or easy to use, i.e., double. Use fdlibm's __kernel_rem_pio2() to do this as Sun apparently intended. Cygnus's k_rem_pio2f.c is now unused. e_rem_pio2f.c still needs to be separate from e_rem_pio2.c so that it can be optimized for float args. Similarly for long double precision. This speeds up cosf(x) on large args by a factor of about 2. Correct arg reduction on large args is still inherently very slow, so hopefully these args rarely occur in practice. There is much more efficiency to be gained by using double precision to speed up arg reduction on medium and small float args. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-10-29T08:22:09.000000Z K 7 svn:log V 64 Document that read -t timeout returns 1 if the timeout elapses. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-10-29T09:13:31.000000Z K 7 svn:log V 25 Catch up with FreeBSD 7. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-10-29T13:08:35.000000Z K 7 svn:log V 50 Document command -v and -V. Glanced at by: simon END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-29T13:40:31.000000Z K 7 svn:log V 45 Remove unused variable. Reviewed by: cognet END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-29T15:05:25.000000Z K 7 svn:log V 53 MFC rev 1.113 Submitted by: delphij Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-29T15:13:07.000000Z K 7 svn:log V 52 MFC rev 1.113 Submitted by delphij Approved by: re END K 10 svn:author V 5 krion K 8 svn:date V 27 2005-10-29T15:27:12.000000Z K 7 svn:log V 253 MFC: delete/main.c:1.27 info/main.c:1.48 Fix pkg_info(1) and pkg_delete(1) to handle properly packages which names start with a digit. PR: bin/76858 Submitted by: Matthew D. Fuller Approved by: re END K 10 svn:author V 5 krion K 8 svn:date V 27 2005-10-29T15:49:01.000000Z K 7 svn:log V 467 MFC: perform.c:1.14 test-pkg_version.sh:1.6 date: 2005/10/10 12:35:30; author: krion; state: Exp; lines: +9 -4 * pkg_version(1) exits if INDEX files is not found and -I is not specified. The result is that the package will be listed with a '?' as if it was not found within the INDEX file, so fix this behaviour. * Remove trailing spaces. PR: bin/87136 Submitted by: Sean Farley Approved by: re END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-10-29T16:34:50.000000Z K 7 svn:log V 714 Use double precision to simplify and optimize arg reduction for small and medium size args too: instead of conditionally subtracting a float 17+24, 17+17+24 or 17+17+17+24 bit approximation to pi/2, always subtract a double 33+53 bit one. The float version is now closer to the double version than to old versions of itself -- it uses the same 33+53 bit approximation as the simplest cases in the double version, and where the float version had to switch to the slow general case at |x| == 2^7*pi/2, it now switches at |x| == 2^19*pi/2 the same as the double version. This speeds up arg reduction by a factor of 2 for |x| between 3*pi/4 and 2^7*pi/4, and by a factor of 7 for |x| between 2^7*pi/4 and 2^19*pi/4. END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-10-29T17:14:11.000000Z K 7 svn:log V 214 Implement inline functions to give the complex result x+I*y from float or double args x and y. x+I*y cannot be used directly yet due to compiler bugs. Submitted by: Steve Kargl END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-10-29T18:41:35.000000Z K 7 svn:log V 400 Include disabled options in the output of 'set +o'. POSIX says the output of set +o can be used to reload previous settings, for this to work disabled options must be printed as well or otherwise options that were set in the mean time won't be turned off. To avoid an excessively long output line I formatted the output to print only six options per line. Submitted by: Jilles Tjoelker PR: 73500 END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-30T02:12:49.000000Z K 7 svn:log V 191 Fix sigevent's POSIX incompatible problem by adding member fields sigev_notify_function and sigev_notify_attributes. AIO syscalls use sigevent, so they have to be adjusted. Reviewed by: alc END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-30T02:14:37.000000Z K 7 svn:log V 7 Regen. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-30T02:56:08.000000Z K 7 svn:log V 826 Let itimer store itimerspec instead of itimerval, so I don't have to convert to or from timeval frequently. Introduce function itimer_accept() to ack a timer signal in signal acceptance code, this allows us to return more fresh overrun counter than at signal generating time. while POSIX says: "the value returned by timer_getoverrun() shall apply to the most recent expiration signal delivery or acceptance for the timer,.." I prefer returning it at acceptance time. Introduce SIGEV_THREAD_ID notification mode, it is used by thread libary to request kernel to deliver signal to a specified thread, and in turn, the thread library may use the mechanism to implement SIGEV_THREAD which is required by POSIX. Timer signal is managed by timer code, so it can not fail even if signal queue is full filled by sigqueue syscall. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-30T03:15:05.000000Z K 7 svn:log V 28 Add POSIX timer interfaces. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-30T03:16:30.000000Z K 7 svn:log V 26 Add timer_create wrapper. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-30T03:20:39.000000Z K 7 svn:log V 32 Change POSIX_TIMERS to 200112L. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-30T05:36:23.000000Z K 7 svn:log V 38 Replace loader_color with loader_logo END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-30T05:41:42.000000Z K 7 svn:log V 20 Add back some bits. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-10-30T05:41:43.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-10-30T05:41:44.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_6_0'. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2005-10-30T07:56:10.000000Z K 7 svn:log V 444 In stack_save, stop when a trap-frame is encountered. This prevents trying to access user-space stack addresses when a user fault is encountered, as occurs when GEOM KTR code is handling a page fault and is using stack_save() to capture a trace for debug purposes. It may be possible to walk beyond the trap-frame if it is a kernel fault, as db_backtrace() does, but I don't think that complexity is needed in this routine. MFC after: 3 days END K 10 svn:author V 3 des K 8 svn:date V 27 2005-10-30T10:03:11.000000Z K 7 svn:log V 501 Add some safeguards to AIOSFMT: - Return EINVAL if play_format or rec_format is set but the corresponding sample rate is 0. - Don't try to set the playback or recording format to 0. Previously, issuing an AIOSFMT ioctl with an all-zeroes snd_chan_param would trigger a KASSERT in chn_fmtchain(); I'm unsure about the effects on a kernel without INVARIANTS. After this commit, issuing AIOSFMT with an all-zeroes snd_chan_param is equivalent to issuing AIOGFMT. MFC after: 2 weeks END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-10-30T12:21:02.000000Z K 7 svn:log V 481 Fixed some comments added in rev.1.5. The log message for 1.5 said that some small (one or two ulp) inaccuracies were fixed, and a comment implied that the critical change is to switch the rounding mode to to-nearest, with a switch of the precision to extended at no extra cost. Actually, the errors are very large (ucbtest finds ones of several hundred ulps), and it is the switch of the precision that is critical. Another comment was wrong about NaNs being handled sloppily. END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-10-30T12:34:58.000000Z K 7 svn:log V 46 Fixed spelling of remquof() in its prototype. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-30T14:40:40.000000Z K 7 svn:log V 21 MFC Approved by: re END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-10-30T15:59:08.000000Z K 7 svn:log V 28 MFi386: Enable beastie.4th. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-10-30T16:31:05.000000Z K 7 svn:log V 389 SSIDs are of length 32-bytes and not NUL terminated. Use the correct length and bail immediatly if the returned length is wrong rather than attempting to set an correct value. This commit differs from the patch in the PR in the use of exit instead of return and the use of a defined value for the array. Submitted by: Daan Vreeken [PA4DAN] PR: bin/74509 END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-10-30T16:36:00.000000Z K 7 svn:log V 51 MFC: Enable beastie.4th. Approved by: re (scottl) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-10-30T17:23:01.000000Z K 7 svn:log V 267 Remove a stray return statement in the interrupt dispatch function that caused a premature exit after calling a fast interrupt handler and bypassing a much needed critical_exit() and the scheduling of the interrupt thread for non-fast handlers. In short: unbreak :-) END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-10-30T17:54:39.000000Z K 7 svn:log V 50 Catch up with FreeBSD 6. Approved by: re(scottl) END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-10-30T19:04:47.000000Z K 7 svn:log V 103 Locate __FreeBSD_cc_version's value beside __FreeBSD__'s value to make it easier to keep them in sync. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-30T19:44:40.000000Z K 7 svn:log V 655 Push the assignment of a new or updated so_qlimit from solisten() following the protocol pru_listen() call to solisten_proto(), so that it occurs under the socket lock acquisition that also sets SO_ACCEPTCONN. This requires passing the new backlog parameter to the protocol, which also allows the protocol to be aware of changes in queue limit should it wish to do something about the new queue limit. This continues a move towards the socket layer acting as a library for the protocol. Bump __FreeBSD_version due to a change in the in-kernel protocol interface. This change has been tested with IPv4 and UNIX domain sockets, but not other protocols. END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-10-30T20:47:42.000000Z K 7 svn:log V 90 Replace diagnostic printf()s by assertions. Use consistent style for similar assertions. END K 10 svn:author V 5 aaron K 8 svn:date V 27 2005-10-30T21:02:09.000000Z K 7 svn:log V 69 new committer: added my birthday to the calendar Approved by: tobez END K 10 svn:author V 6 grehan K 8 svn:date V 27 2005-10-30T21:29:59.000000Z K 7 svn:log V 362 Copy SPRG0-3 registers at boot-time and restore when calling into OpenFirmware. FreeBSD/ppc uses SPRG0 as the per-cpu data area pointer, and SPRG1-3 as temporary registers during exception handling. There have been a few instances where OpenFirmware does require these to be part of it's context, such as cd-booting an eMac. reported by: many MFC after: 3 days END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-30T23:59:01.000000Z K 7 svn:log V 99 Add thread exit handler in timer_loop to handle broken buggy code which could lead to memory leak. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-10-31T00:12:19.000000Z K 7 svn:log V 268 Pickup I/O lock in aac_get_bus_info, as this code will call aac_alloc_sync_fib(). aac_alloc_sync_fib() will assert that the I/O locks are held. This fixes a panic on system boot up when the aac(4) device's bus_generic_attach() routine is called. Reviewed by: scottl END K 10 svn:author V 6 grehan K 8 svn:date V 27 2005-10-31T03:09:38.000000Z K 7 svn:log V 420 The mediasize shouldn't be multipled by the sector size when it was in bytes to start off with. This caused the GPT geom sniffer to attempt a seek just back from the end of the 'disk', which resulted in a > 4G seek, causing gdb psim to exit since it only supports 32-bit seeks. The size of the disk should really be specified in the psim device tree, but for now do the minimal amount of work to get psim to run again. END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-10-31T04:00:20.000000Z K 7 svn:log V 17 Sort error list. END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-10-31T04:08:28.000000Z K 7 svn:log V 184 Document the fact that sendfile(2) can EOPNOTSUPP if the underlying filesystem for the file being transferred doesn't support UIO_NOCOPY. Reported by: Niki Denev END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-31T15:41:29.000000Z K 7 svn:log V 685 Normalize a significant number of kernel malloc type names: - Prefer '_' to ' ', as it results in more easily parsed results in memory monitoring tools such as vmstat. - Remove punctuation that is incompatible with using memory type names as file names, such as '/' characters. - Disambiguate some collisions by adding subsystem prefixes to some memory types. - Generally prefer lower case to upper case. - If the same type is defined in multiple architecture directories, attempt to use the same name in additional cases. Not all instances were caught in this change, so more work is required to finish this conversion. Similar changes are required for UMA zone names. END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-10-31T16:14:07.000000Z K 7 svn:log V 50 MFamd64/i386 Eliminate unneeded diagnostic code. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2005-10-31T16:52:11.000000Z K 7 svn:log V 631 New release notes: hw.pci.do_powerstate change, FreeBSD/ia64 SMP support, a kernel config for MAC added, tnt4882(4) driver added, agp(4) now supports ATI IGP chipsets, re(4): D-Link DGE-528(T) Gigabit Ethernet card support, aac(4): Adaptec 2610SA SATA-RAID controller support, ata(4): ITE IT8211F, PDC40718, and PDC40719 support, hptmv(4) update: amd64 and PAE support, gpt(8) GPT partition label support, kenv(1) and sysctl(8) -q flag added, libedit updated, rpcgen(1) now generate ANSI C code instead of K&R style, and OpenSSH 4.0p1->4.2p1. Update release notes: Fix an entry about ifconfig_ NOAUTO keyword. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-10-31T18:31:16.000000Z K 7 svn:log V 781 Some of the VIA pm and propm devices are actually the same device as the PCI-ISA bridge. Thus, when viapm0 or viapropm0 attaches, isab0 dosen't attach so there is no isa0 bus hung off of that bridge. In the non-ACPI case, legacy0 will add an isa0 anyway as a fail-safe, but ACPI assumes that any ISA bus will be enumerated via a bridge. To fix this, call isab_attach() to attach an isa0 ISA child bus device if the pm or propm device we are probing is a PCI-ISA bridge. Both drivers now have to implement the bus_if interface via the generic methods for resource allocation, etc. to work. Also, we now add 2 new ISA bus drivers that attach to viapm and viapropm devices. PR: kern/87363 Reported by: Oliver Fromme olli at secnetix dot de Tested by: glebius MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-10-31T18:43:28.000000Z K 7 svn:log V 201 Add the device ID for the VIA VT8235 south bridge. PR: kern/62438 Submitted by: FUJIMOTO Kou fujimoto at j dot dendai dot ac dot jp Tested by: Oliver Fromme olli at secnetix dot de MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-10-31T19:17:32.000000Z K 7 svn:log V 402 Check to see if the hash table is present in link_elf_lookup_symbol() before dereferencing it. Certain corrupt kernel modules might not have a valid hash table, and would cause a kernel panic when they were loaded. Instead of panic'ing, the kernel now prints out a warning that it is missing the symbol hash table. Tested by: Benjamin Close Benjamin dot Close at clearchain dot com MFC after: 1 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-31T19:59:40.000000Z K 7 svn:log V 426 Put probe-time printf of adapter speed and duplex behind bootverbose: since the link takes a bit to negotiate, the information is pretty much never available during the probe. As such, the boot output pretty much always prints N/A for speed and duplex. Since we print out the output of ifconfig during the user space boot, this early boot information is also generally redundant, and added to the noise. MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-10-31T20:15:58.000000Z K 7 svn:log V 87 Add a deprecation warning since this driver is gone in HEAD. Approved by: re (scottl) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-10-31T20:17:14.000000Z K 7 svn:log V 58 MF6: Add a deprecation warning. Approved by: re (scottl) END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-10-31T20:33:28.000000Z K 7 svn:log V 72 Rate limit filesystem full and out of inodes messages to once a second. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-10-31T20:45:37.000000Z K 7 svn:log V 59 Hook nve(4) up in i386 and amd64 NOTES. MFC after: 1 week END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-10-31T21:07:14.000000Z K 7 svn:log V 367 The -x option of pax is for creation of archives, not 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 PR: conf/88293 END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-10-31T21:09:56.000000Z K 7 svn:log V 131 Reformat socket control messages on input/output for 32bit compatibility on 64bit systems. Submitted by: ps, ups Reviewed by: jhb END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-10-31T21:25:33.000000Z K 7 svn:log V 361 Instead of a panic()ing in pmap_insert_entry() if get_pv_entry() 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. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-10-31T21:37:27.000000Z K 7 svn:log V 191 - Use callout_*() to manage the callout and make it MPSAFE. - 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 END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-10-31T21:39:50.000000Z K 7 svn:log V 102 Add a basic HPET timecounter. It has -200 quality for now so it will not get automatically selected. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-10-31T21:40:40.000000Z K 7 svn:log V 44 Tie acpi_hpet.c into the module and kernel. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-10-31T22:00:44.000000Z K 7 svn:log V 211 Switch from pax to tar for extracting cpio archives. pax requires a writable /tmp (or TMPDIR) and thus is unsuitable for this job. Tested by: Joerg Pulz PR: conf/88293 END K 10 svn:author V 3 suz K 8 svn:date V 27 2005-10-31T23:06:04.000000Z K 7 svn:log V 136 statically configured IPv6 address is properly added/deleted now Obtained from: KAME Reported in: freebsd-net@freebsd MFC after: 1 day END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-11-01T01:36:58.000000Z K 7 svn:log V 118 Add items to unmount to the front of the list so they are unmounted in reverse (thus allowing /conf to be unmounted). END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-11-01T03:14:39.000000Z K 7 svn:log V 25 Update SIGTHR's comment. END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-11-01T04:30:21.000000Z K 7 svn:log V 228 Consider the zero-copy transmission of a page that was wired by mlock(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 END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-11-01T05:48:02.000000Z K 7 svn:log V 160 Spell "--format" correctly in error message. (It hasn't been called "-F" for a very long time.) PR: bin/86915 Thanks to: Gary W. Swearingen MFC after: 3 days END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-11-01T05:53:16.000000Z K 7 svn:log V 175 Include in order to get current __FreeBSD_version in order to properly set HAVE_NL_LANGINFO. Thanks to: Andrey Chernov PR: bin/88013 MFC after: 3 days END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-11-01T06:41:05.000000Z K 7 svn:log V 389 In mode 'u', check for an error return from archive_read_open. 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. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-11-01T06:53:22.000000Z K 7 svn:log V 256 Add code to handle timer_delete(). The timer wrapper code is completely 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. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-11-01T07:05:32.000000Z K 7 svn:log V 19 Use TIMERS_UNLOCK. END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-11-01T09:24:35.000000Z K 7 svn:log V 120 Clean up one remaining 'multiple DPC thread' bogon: only bzero() one sizeof(kq_queue), not sizeof(kq_queue) * mp_ncpus. END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-11-01T09:25:19.000000Z K 7 svn:log V 61 MFC: don't bzero() too many kq_queues in ntoskrnl_libinit(). END K 10 svn:author V 5 maxim K 8 svn:date V 27 2005-11-01T10:32:42.000000Z K 7 svn:log V 21 o OpenBSD 3.8 added. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-11-01T12:36:19.000000Z K 7 svn:log V 545 Replace ktr_buffer pointer in struct ktr_header with a ktr_unused 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 END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-11-01T13:05:47.000000Z K 7 svn:log V 44 Fix some comments, eliminate a memory leak. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-11-01T14:46:37.000000Z K 7 svn:log V 297 Reuse ktr_unused field in ktr_header structure as ktr_tid; populate 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 END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-11-01T14:48:23.000000Z K 7 svn:log V 480 Add a "-H" argument to kdump, which causes kdump to print an additional 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 END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-11-01T15:57:15.000000Z K 7 svn:log V 53 Add proper debugging infrastructure for acpi_hpet.c. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-11-01T17:13:05.000000Z K 7 svn:log V 177 Push down Giant into fdfree() and remove it from two of the callers. Other callers such as some rfork() cases weren't locking Giant anyway. Reviewed by: csjp MFC after: 1 week END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2005-11-01T19:31:25.000000Z K 7 svn:log V 138 Note which options are not part of the standards. Xref locale(1) and bump document date. Reviewed by: keramida No Objections: -standards END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2005-11-01T19:36:17.000000Z K 7 svn:log V 39 Xref setlocale(3), bump document date. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-11-01T20:41:43.000000Z K 7 svn:log V 66 Move HPET debugging under ACPI_TIMER in order to save a bitfield. END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2005-11-01T21:16:39.000000Z K 7 svn:log V 87 Quick kill links to the nsmb(8) manual page, there is no such utility that I can find. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-11-01T22:11:18.000000Z K 7 svn:log V 40 Vendor import of Intel ACPI-CA 20051021 END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-11-01T22:11:18.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r151937, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-11-01T22:11:19.000000Z K 7 svn:log V 84 This commit was manufactured by cvs2svn to create tag 'acpica-vendor-sys-r20051021'. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-11-01T22:18:47.000000Z K 7 svn:log V 85 Fix few compilation problems on vendor branch. These fixes will be submitted vendor. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-11-01T22:18:47.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r151940, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-11-01T22:23:25.000000Z K 7 svn:log V 47 Unchanged files that are off the vendor branch END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-11-01T22:28:49.000000Z K 7 svn:log V 52 Fix conflicts from import of Intel ACPI-CA 20051021 END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-11-01T22:30:52.000000Z K 7 svn:log V 42 Local change: remove compilation warnings END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-11-01T22:33:32.000000Z K 7 svn:log V 41 Local change: remove unnecessary __cdecl END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-11-01T22:38:50.000000Z K 7 svn:log V 66 Update to reflect import of ACPI-CA 20051021 with includes fixups END K 10 svn:author V 3 suz K 8 svn:date V 27 2005-11-01T22:42:05.000000Z K 7 svn:log V 100 MFC 1.59 statically configured IPv6 address is properly added/deleted now Approved by: re(scottl) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-11-01T22:44:08.000000Z K 7 svn:log V 38 Catch up with ACPI-CA 20051021 import END K 10 svn:author V 3 suz K 8 svn:date V 27 2005-11-01T22:48:56.000000Z K 7 svn:log V 100 MFC 1.59 statically configured IPv6 address is properly added/deleted now Approved by: re(scottl) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-11-01T22:59:03.000000Z K 7 svn:log V 108 Throw the switch and turn on STOP_NMI on in GENERIC for amd64 and i386. Requested by: kris Ok'd by: scottl END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-11-01T23:00:24.000000Z K 7 svn:log V 58 Rate limit vnode_pager_putpages printfs to once a second. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-11-01T23:10:08.000000Z K 7 svn:log V 48 MFC: Tell gcc about FreeBSD 6. Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-11-01T23:40:10.000000Z K 7 svn:log V 59 Note that 6.0-RELEASE is about to happen. Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-11-01T23:40:38.000000Z K 7 svn:log V 59 Note that 6.0-RELEASE is about to happen. Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-11-01T23:43:49.000000Z K 7 svn:log V 32 Grrr, Nov = 11 Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-11-01T23:44:40.000000Z K 7 svn:log V 26 Nov = 11 Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-11-01T23:48:09.000000Z K 7 svn:log V 40 Welcome to 6.0-STABLE. Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-11-01T23:51:19.000000Z K 7 svn:log V 59 Bump up __FreeBSD_version for 6.0-STABLE. Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-11-02T00:01:08.000000Z K 7 svn:log V 34 MFC: FreeBSD 6.0 Approved by: re END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-11-02T02:00:46.000000Z K 7 svn:log V 41 Welcome to 6.0-RELEASE. Approved by: re END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-11-02T05:37:31.000000Z K 7 svn:log V 2760 Fixed some of the silliness related to rev.1.8. In 1.8, "double" in 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. END K 10 svn:author V 3 jdp K 8 svn:date V 27 2005-11-02T05:47:49.000000Z K 7 svn:log V 105 Fix an erroneous description of the file descriptor assignments for the "~C" command. MFC After: 1 week END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-11-02T06:45:21.000000Z K 7 svn:log V 1069 Removed dead code for handling tan[f]() on odd multiples of pi/2. This 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 { --- > { END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-11-02T08:23:28.000000Z K 7 svn:log V 136 Instead of a panic()ing in pmap_insert_entry() if get_pv_entry() fails, reclaim a pv entry by destroying a mapping to an inactive page. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2005-11-02T09:22:28.000000Z K 7 svn:log V 74 o Update list of holidays in Russia. Submitted by: osa MFC after: 1 week END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-11-02T13:06:49.000000Z K 7 svn:log V 567 Updated the comment about the optimization for tiny x (the previous 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.) END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-11-02T13:46:32.000000Z K 7 svn:log V 454 Retire MT_HEADER mbuf type and change its users to use MT_DATA. 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 END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-11-02T13:52:48.000000Z K 7 svn:log V 70 In raise(), use a shortcut to directly send signal to current thread. END K 10 svn:author V 3 bde K 8 svn:date V 27 2005-11-02T14:01:45.000000Z K 7 svn:log V 1903 Moved the optimization for tiny x from __kernel_tan[f](x) to tan[f](x) so that it can be faster for tiny x and avoided for reduced x. This improves things a little differently than for cosine and sine. We still need to reclassify x in the "kernel" functions, but we get an extra optimization for tiny x, and an overall optimization since tiny reduced x rarely happens. We also get optimizations for space and style. A large block of poorly duplicated code to fix a special case is no longer needed. This supersedes the fixes in k_sin.c revs 1.9 and 1.11 and k_sinf.c 1.8 and 1.10. Fixed wrong constant for the cutoff for "tiny" in tanf(). It was 2**-28, but should be almost the same as the cutoff in sinf() (2**-12). The incorrect cutoff protected us from the bugs fixed in k_sinf.c 1.8 and 1.10, except 4 cases of reduced args passed the cutoff and needed special handling in theory although not in practice. Now we essentially use a cutoff of 0 for the case of reduced args, so we now have 0 special args instead of 4. This change makes no difference to the results for sinf() (since it only changes the algorithm for the 4 special args and the results for those happen not to change), but it changes lots of results for sin(). Exhaustive testing is impossible for sin(), but exhaustive testing for sinf() (relative to a version with the old algorithm and a fixed cutoff) shows that the changes in the error are either reductions or from 0.5-epsilon ulps to 0.5+epsilon ulps. The new method just uses some extra terms in approximations so it tends to give more accurate results, and there are apparently no problems from having extra accuracy. On amd64 with -O1, on all float args the error range in ulps is reduced from (0.500, 0.665] to [0.335, 0.500) in 24168 cases and increased from 0.500-epsilon to 0.500+epsilon in 24 cases. Non- exhaustive testing by ucbtest shows no differences. END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-11-02T14:05:49.000000Z K 7 svn:log V 355 Vendor patch: fix the reporting of ifOperStatus. We now consider an interface up when it is running AND the link is not down (that is, it is up or unknown). If the interface is running but the link is down, we return state 'dormant', because we're waiting for an external event. Otherwise the interface is 'down'. Submitted by: csjp Reviewed by: glebius END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-11-02T14:05:49.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r151970, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-11-02T14:06:29.000000Z K 7 svn:log V 42 Remove a redundant _get_curthread() call. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-11-02T14:27:24.000000Z K 7 svn:log V 457 Rework the ng_item queueing on nodes: - Introduce a new flags NGQF_QREADER and NGQF_QWRITER, which tell how the item should be actually applied, overriding NGQF_READER/NGQF_WRITER flags. - Do not differ between pending reader or writer. Use only one flag that is raised, when there are pending items. - Schedule netgraph ISR in ng_queue_rw(), so that callers do not need to do this job. - Fix several comments. Submitted by: julian END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-11-02T15:23:47.000000Z K 7 svn:log V 490 Fix two races which happen when netgraph is restructuring: - Introduce ng_topo_mtx, a mutex to protect topology changes. - In ng_destroy_node() protect with ng_topo_mtx the process of checking and pointing at ng_deadnode. [1] - In ng_con_part2() check that our peer is not a ng_deadnode, and protect the check with ng_topo_mtx. - Add KASSERTs to ng_acquire_read/write, to make more understandible synopsis in case if called on ng_deadnode. Reported by: Roselyn Lee [1] END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-11-02T15:34:42.000000Z K 7 svn:log V 558 Fix several races between socket closure and node/hook destruction: - Backout 1.62, since it doesn't fix all possible problems. - Upon node creation, put an additional reference on node. - Add a mutex and refcounter to struct ngsock. Netgraph node, control socket and data socket all count as references. - Introduce ng_socket_free_priv() which removes one reference from ngsock, and frees it when all references has gone. - No direct pointers between pcbs and node, all pointing is done via struct ngsock and protected with mutex. END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-11-02T16:20:36.000000Z K 7 svn:log V 944 Mandatory mbuf cluster reference counting and groundwork for UMA based jumbo 9k and jumbo 16k cluster support. All mbuf's with external storage attached are mandatory reference counted. For clusters and jumbo clusters UMA provides the refcnt storage directly. It does not have to be separatly allocated. Any other type of external storage gets its own refcnt allocated from an UMA mbuf refcnt zone instead of normal kernel malloc. The refcount API MEXT_ADD_REF() and MEXT_REM_REF() is no longer publically accessible. The proper m_* functions have to be used. mb_ctor_clust() and mb_dtor_clust() both handle normal 2K as well as 9k and 16k clusters. Clusters and jumbo clusters may be obtained without attaching it immideatly to an mbuf. This is for high performance cluster allocation in network drivers where mbufs are attached after the cluster has been filled. Tested by: rwatson Sponsored by: TCP/IP Optimizations Fundraise 2005 END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-11-02T18:01:04.000000Z K 7 svn:log V 1212 Tests with my dual Opteron system have shown that it's possible for code to start out on one CPU when thunking into Windows mode in ctxsw_utow(), and then be pre-empted and migrated to another CPU before thunking back to UNIX mode in ctxsw_wtou(). This is bad, because then we can end up looking at the wrong 'thread environment block' when trying to come back to UNIX mode. To avoid this, we now pin ourselves to the current CPU when thunking into Windows code. Few other cleanups, since I'm here: - Get rid of the ndis_isr(), ndis_enable_interrupt() and ndis_disable_interrupt() wrappers from kern_ndis.c and just invoke the miniport's methods directly in the interrupt handling routines in subr_ndis.c. We may as well lose the function call overhead, since we don't need to export these things outside of ndis.ko now anyway. - Remove call to ndis_enable_interrupt() from ndis_init() in if_ndis.c. We don't need to do it there anyway (the miniport init routine handles it, if needed). - Fix the logic in NdisWriteErrorLogEntry() a little. - Change some NDIS_STATUS_xxx codes in subr_ntoskrnl.c into STATUS_xxx codes. - Handle kthread_create() failure correctly in PsCreateSystemThread(). END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2005-11-02T18:04:29.000000Z K 7 svn:log V 74 MFC: pin ourselves to the current CPU when thunking, other minor cleanups END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-11-02T20:11:47.000000Z K 7 svn:log V 887 Change the x86 code to allocate IDT vectors on-demand when an interrupt source is first enabled similar to how intr_event's now allocate ithreads on-demand. Previously, we would map IDT vectors 1:1 to IRQs. Since we only have 191 available IDT vectors for I/O interrupts, this limited us to only supporting IRQs 0-190 corresponding to the first 190 I/O APIC intpins. On many machines, however, each PCI-X bus has its own APIC even though it only has 1 or 2 devices, thus, we were reserving between 24 and 32 IRQs just for 1 or 2 devices and thus 24 or 32 IDT vectors. With this change, a machine with 100 IRQs but only 5 in use will only use up 5 IDT vectors. Also, this change provides an API (apic_alloc_vector() and apic_free_vector()) that will allow a future MSI interrupt source driver to request IDT vectors for use by MSI interrupts on x86 machines. Tested on: amd64, i386 END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-11-02T21:18:07.000000Z K 7 svn:log V 174 Calling setrlimit from 32bit apps could potentially increase certain limits beyond what should be capiable in a 32bit process, so we must fixup the limits. Reviewed by: jhb END K 10 svn:author V 5 wilko K 8 svn:date V 27 2005-11-02T22:18:47.000000Z K 7 svn:log V 143 Small changes in the AlphaStation 200 and PC14 area. PC164 SRM does not work with 53C896 SCSI chips. Submitted by: Owen Mann END K 10 svn:author V 5 wilko K 8 svn:date V 27 2005-11-02T22:21:50.000000Z K 7 svn:log V 149 MFC: Small changes in the AlphaStation 200 and PC14 area. PC164 SRM does not work with 53C896 SCSI chips. Submitted by: Owen Mann END K 10 svn:author V 5 wilko K 8 svn:date V 27 2005-11-02T22:23:27.000000Z K 7 svn:log V 144 Small changes in the AlphaStation 200 and PC164 area. PC164 SRM does not work with 53C896 SCSI chips. Submitted by: Owen Mann END K 10 svn:author V 6 jcamou K 8 svn:date V 27 2005-11-03T00:15:19.000000Z K 7 svn:log V 102 Add `local' and `return' to the list of built-ins. Submitted by: garys Approved by: trhodes (mentor) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2005-11-03T00:23:13.000000Z K 7 svn:log V 277 It had been noticed disc2 was overflowing earlier but committing the fix slipped through a crack. Remove the apache and php packages under the assumption someone installing a Web server has network access and doesn't *need* the packages on disc2. This will be insta-MFCed... END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2005-11-03T00:34:05.000000Z K 7 svn:log V 367 MFC v1.7: > date: 2005/11/03 00:23:13; author: kensmith; state: Exp; lines: +1 -6 > It had been noticed disc2 was overflowing earlier but committing the > fix slipped through a crack. Remove the apache and php packages under > the assumption someone installing a Web server has network access and > doesn't *need* the packages on disc2. Approved by: re (scottl) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2005-11-03T00:35:25.000000Z K 7 svn:log V 366 MFC v1.7 > date: 2005/11/03 00:23:13; author: kensmith; state: Exp; lines: +1 -6 > It had been noticed disc2 was overflowing earlier but committing the > fix slipped through a crack. Remove the apache and php packages under > the assumption someone installing a Web server has network access and > doesn't *need* the packages on disc2. Approved by: re (scottl) END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-11-03T00:35:26.000000Z K 7 svn:log V 77 This commit was manufactured by cvs2svn to create tag 'RELENG_6_0_0_RELEASE'. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2005-11-03T00:56:43.000000Z K 7 svn:log V 125 List IFT_BRIDGE as a valid type so that arp entries can be properly deleted. Submitted by: Michal Mertl END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-11-03T01:34:08.000000Z K 7 svn:log V 56 Add thread_find() function to search a thread by lwpid. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-11-03T01:38:49.000000Z K 7 svn:log V 34 Oops, don't change tdsignal call. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-11-03T03:49:57.000000Z K 7 svn:log V 127 Suggest the user to use 'diff -urN' instead of 'diff -crN'. Submitted by: Jimmie James PR: docs/88427 END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-11-03T04:49:16.000000Z K 7 svn:log V 357 Cleanup some signal interfaces. Now the tdsignal function accepts both proc pointer and thread pointer, if thread pointer is NULL, tdsignal automatically finds a thread, otherwise it sends signal to given thread. Add utility function psignal_event to send a realtime sigevent to a process according to the delivery requirement specified in struct sigevent. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-11-03T05:25:26.000000Z K 7 svn:log V 142 Support sending realtime signal information via signal queue, realtime signal memory is pre-allocated, so kernel can always notify user code. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-11-03T07:26:54.000000Z K 7 svn:log V 18 Fix .Dd argument. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-11-03T07:27:50.000000Z K 7 svn:log V 24 Be cross-arch friendly. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-11-03T07:28:46.000000Z K 7 svn:log V 41 The default fill byte is 0xf6, not 0xf5. END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-11-03T07:31:06.000000Z K 7 svn:log V 128 Fix for a race between the thread transmitting the request and the thread processing the reply. Submitted by: Mohan Srinivasan END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-11-03T07:35:36.000000Z K 7 svn:log V 56 Consistently use OPT_* macros to test/set boot options. END