summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add support for packages as the first element of _PRW. This may allownjl2004-04-092-26/+64
| | | | | | some machines to enable wake events for more devices although I haven't seen a system yet that uses this form. Also, introduce acpi_GetReference() which retrieves an object reference from various types.
* Ooops, removed this acknowledgement bogusly.imp2004-04-091-0/+4
| | | | Eagle Eyes: bde
* Lock down the netatalk AARP code, which is responsible for appletalkrwatson2004-04-091-11/+30
| | | | | | | address discovery and caching (similar to inet ARP). Use a single global mutex, aarptab_mtx, to protect the table. Remove spl/spx. Tested by: Bob Bishop <rb@gid.co.uk>
* The demise of vm_pager_map_page() in revision 1.93 of vm/vm_pager.c permitsalc2004-04-083-6/+2
| | | | | | the reduction of the pager map's size by 8M bytes. In other words, eight megabytes of largely wasted KVA are returned to the kernel map for use elsewhere.
* Readd -Werror flag to compilation pf.c after the compiler warnings have beenmlaier2004-04-081-1/+1
| | | | | | | shut up. Tested by: LINT(i386) Approved by: bms(mentor)
* Unify on version 1 to be similar to the rest of the tree. After 5-stablenjl2004-04-084-4/+4
| | | | branches, increment version on any API change visible to other modules.
* Fix a regression in my change which sends headers along with data; asilby2004-04-081-2/+8
| | | | | | | | side effect of that change caused headers to not be sent if a 0 byte file was passed to sendfile. This change fixes that behavior, allowing sendfile to send out the headers even with a 0 byte file again. Noticed by: Dirk Engling
* Do not assume that the initial thread (i.e. the thread with the IDmarcel2004-04-081-6/+9
| | | | | | | | equal to the process ID) is still present when we dump a core. It already may have been destroyed. In that case we would end up dereferencing a NULL pointer, so specifically test for that as well. Reported & tested by: Dan Nelson <dnelson@allantgroup.com>
* Add whitespace before comment blocks. (reported by njl)cperciva2004-04-081-16/+13
| | | | | | | | | Remove spurious whitespace, add indent protection, fix punctuation, remove initialization of static variables to zero, put wakeup_ctr and wakeup_needed in the correct order. (reported by bde) This doesn't fix all the style bugs I introduced, but the remaining style bugs make it easier for me to understand what I did here.
* Back out last bad commit (again!)imp2004-04-071-12/+1
|
* Remove advertising clause from University of California Regent'simp2004-04-07316-1277/+16
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* Implement an ACPI-aware pci_set_powerstate() method for PCI busses thatjhb2004-04-071-15/+45
| | | | | | | | | are enumerated in the ACPI device tree. In addition to the normal PCI powerstate functionality, the ACPI _PSx methods are executed and ACPI PowerResources are switched on and off via the acpi_pwr_switch_consumer() function. Glanced at by: imp, njl
* In ndis_convert_res(), initialize the head of our temporary listwpaul2004-04-071-1/+2
| | | | | | | before calling BUS_GET_RESOURCE_LIST(). Previously, the list head would only be initialized if BUS_GET_RESOURCE_LIST() succeeded; it needs to be initialized unconditionally so that the list cleanup code won't trip over potential stack garbage.
* Add new ID for Intel 82562ET (ICH5/ICH5R) Pro/100 VE Ethernet.imp2004-04-071-0/+1
| | | | | Submitted by: Stefan Bethke PR: 61320
* Record where half the bits in this file came from (from ufs_readwrite.c).bde2004-04-071-0/+2
| | | | | Damage to history from moving bits was especially large since a repo copy is not feasible for partial files.
* Fixed a bug in previous revision: compute the payload checksum beforeru2004-04-071-8/+8
| | | | | | | | | | | | | | we convert ip_len into a network byte order; in_delayed_cksum() still expects it in host byte order. The symtom was the ``in_cksum_skip: out of data by %d'' complaints from the kernel. To add to the previous commit log. These fixes make tcpdump(1) happy by not complaining about UDP/TCP checksum being bad for looped back IP multicast when multicast router is deactivated. Reported by: Vsevolod Lobko
* Fix filt_timer* races: Finish initializing a knote before we pass it tocperciva2004-04-071-2/+2
| | | | | | | | a callout, and use the new callout_drain API to make sure that a callout has finished before we deallocate memory it is using. PR: kern/64121 Discussed with: gallatin
* The bs driver was replaced with the ct(pc98) driver. takahashi-sanimp2004-04-0714-5633/+0
| | | | (nyan) says this driver is now obsolete and can be removed.
* Last change was a bogusimp2004-04-071-12/+1
|
* Remove advertising clause from University of California Regent'simp2004-04-0790-385/+12
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* Remove advertising clause from University of California Regent's license,imp2004-04-0795-385/+0
| | | | | | per letter dated July 22, 1999. Approved by: core
* Remove advertising clause from University of California Regent'simp2004-04-0721-84/+0
| | | | | | | | | license, per letter dated July 22, 1999 and irc message from Robert Watson saying that clause 3 can be removed from those files with an NAI copyright that also have only a University of California copyrights. Approved by: core, rwatson
* Update to include both the L1 and L2 TLB stats, as well as the seperatepeter2004-04-071-5/+55
| | | | | 2M/4M page TLB vs 4K page TLB stats. This also applies to the i386 platform, as does the cpu features fixes.
* MFi386: move rss() from db_interface.c to cpufunc.hpeter2004-04-072-12/+8
|
* Unbreak FAST_IPSEC build on 64 bit archs with INVARIANTS.pjd2004-04-071-1/+1
| | | | Approved by: sam
* Introduce a callout_drain() function. This acts in the same manner ascperciva2004-04-062-1/+93
| | | | | | | | | | | callout_stop(), except that if the callout being stopped is currently in progress, it blocks attempts to reset the callout and waits until the callout is completed before it returns. This makes it possible to clean up callout-using code safely, e.g., without potentially freeing memory which is still being used by a callout. Reviewed by: mux, gallatin, rwatson, jhb
* Better checks to make sure that we get good alignment. This code is aimp2004-04-061-7/+6
| | | | | bit of a bandaide until I get better pci bus code committed to head from my p4 tree.
* Fix mis-merge from p4 by adding line getting sc.imp2004-04-061-2/+9
| | | | Attempt to deal with larger memory allocation better.
* Remove advertising clause from University of California Regent's license,imp2004-04-0624-96/+0
| | | | | | per letter dated July 22, 1999. Approved by: core
* MFP4: Power up with OE disabled. Similar patches went into NetBSD aimp2004-04-061-1/+6
| | | | | while ago, and it does seem to help at least one card I have and has been in my p4 tree for many months.
* Use the correct flag for mbuf allocations (M_DONTWAIT, not M_NOWAIT).iedowse2004-04-061-2/+2
|
* Fix a paste-o from the buf_prewrite() cleanup commit and check for thejhb2004-04-061-1/+1
| | | | | | | MNTK_SUSPEND flag on the correct vnode pointer in softdep_disk_prewrite(). Reviewed by: phk Tested by: kensmith
* Associate a simple count of waiters with each condition variable. Thejhb2004-04-062-3/+18
| | | | | | | | | | | | | count is protected by the mutex that protects the condition, so the count does not require any extra locking or atomic operations. It serves as an optimization to avoid calling into the sleepqueue code at all if there are no waiters. Note that the count can get temporarily out of sync when threads sleeping on a condition variable time out or are aborted. However, it doesn't hurt to call the sleepqueue code for either a signal or a broadcast when there are no waiters, and the count is never out of sync in the opposite direction unless we have more than INT_MAX sleeping threads.
* Add a new kernel option MUTEX_WAKE_ALL that changes the mutex unlock codejhb2004-04-062-0/+11
| | | | | | | | | | | | | to awaken all waiters when a contested mutex is released instead of just the highest priority waiter. If the various threads are awakened in sequence then each thread may acquire and release the lock in question without contention resulting in fewer expensive unlock and lock operations. This old behavior of waking just the highest priority is still used if this option is specified. Making the algorithm conditional on a kernel option will allows us to benchmark both cases later and determine which one should be used by default. Requested by: tanimura-san
* Sort function prototypes.jhb2004-04-061-3/+3
|
* Rename turnstile_wakeup() to turnstile_broadcast() to make the namingjhb2004-04-062-5/+5
| | | | | | more consistent with other APIs. sleepq and cv's use signal/broadcast, and msleep uses wakeup_one/wakeup. Prior to this turnstiles were using a signal/wakeup mixture.
* Enable the memory arbiter before turning off the PXE restart. Thisps2004-04-061-4/+4
| | | | | | | prevents NMI's from happening when resetting the chip on some hardware I have seen. Mis-behaving box made available by: John Cagle <john.cagle@hp.com>
* Make pf* modules respect NOINET6 from make.conf(5) in order to build themmlaier2004-04-063-0/+12
| | | | | | | for INET6-less kernel. Requested by: many Approved by: bms(mentor)
* MFi386: Enable the cy driver.nyan2004-04-061-2/+2
|
* Actually fix the TX performance with polling(4) enabledru2004-04-062-2/+2
| | | | | | | by increasing the TX list size from 64 to 128, which is adequate for HZ=1000. Submitted by: Vsevolod Lobko
* Fixed misspelling of IPPORT_MAX as USHRT_MAX. Don't include <sys/limits.h>bde2004-04-061-9/+9
| | | | | | | | | to implement this mistake. Fixed some nearby style bugs (initialization in declaration, misformatting of this initialization, missing blank line after the declaration, and comparision of the non-boolean result of the initialization with 0 using "!". In KNF, "!" is not even used to compare booleans with 0).
* Removed some less than useful comments:bde2004-04-062-136/+0
| | | | | | | | | - don't say what a small subset of the options includes are for. - don't mark up functions which use all their args with /* ARGSUSED */. The markup should have been removed when the unused retval parameter was removed. - don't comment on what routine suser() checks do. Removed nearby excessive vertical whitespace.
* Oops, fixed insertion sort error in the fix for an insertion sort error.bde2004-04-061-9/+8
| | | | | | | | | | | | While here, begin fixing dependencies of <sys/mount.h> on normal namespace pollution (__BSD_VISIBLE) by not using u_int in the prototype for nmount(2), although it is used in the man page. While there, begin cleaning up another set of prototypes: - use u_int in the prototype for the kernel part of nmount(). - consistently don't use parameter names in prototypes in the "exported vnode operations" set of prototypes, although style(9) says to use names in the kernel.
* Fixed unsorting of prototypes in previous commit and 1.134.bde2004-04-061-2/+2
|
* - Improved the TX performance with polling(4) by only checking theru2004-04-062-16/+11
| | | | | | | | | | | | | status registers for error conditions and updating statistics when there are cycles left (inspired by the nge(4) driver). - Removed the TX list counter and the producer/consumer gap; it's enough to just ensure we don't reuse the last (free) descriptor, as the chip may not have read its next pointer yet. If we reuse it, the TX may stall under a heavy TX load with polling enabled. - Dropped code to recharge the watchdog timer, it's pointless; the watchdog routine will re-init the chip and both RX and TX lists.
* Eliminate vm_pager_map_page() and vm_pager_unmap_page() and their uses.alc2004-04-063-32/+12
| | | | Use sf_buf_alloc() and sf_buf_free() instead.
* Add imperfect comments identifying the function of various nfs socketrwatson2004-04-061-6/+6
| | | | condition flags. Corrections, if appropriate, welcome.
* Remove avail_end. As of yesterday, it is unused.alc2004-04-062-3/+0
|
* Remove advertising clause from University of California Regent's license,imp2004-04-0510-40/+0
| | | | | | per letter dated July 22, 1999 and email from Peter Wemm. Approved by: core, peter
* Remove advertising clause from University of California Regent's license,imp2004-04-059-36/+0
| | | | | | per letter dated July 22, 1999. Approved by: core
OpenPOWER on IntegriCloud