summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Change default key allocation method to do the right thing forsam2005-07-091-1/+18
| | | | | | | | | legacy parts (i.e. those that have 4 global key slots). We blindly assign unicast keys to key slot 0. Devices that need alternate allocation logic must override this method. Reviewed by: avatar Approved by: re (scottl)
* Repair this:cracauer2005-07-091-0/+1
| | | | | | | | | ext2fs fails to set the device in the stat(2) system call. Subsequently, that makes fts(3) fail, which goes as far as make ls(1) fail (which uses fts) on ext2fs. Approved by: re (Robert Watson <rwatson@FreeBSD.org>)
* sys/dev/hwpmc/hwpmc_{amd,piv,ppro}.c:jkoshy2005-07-096-36/+46
| | | | | | | | | | | | | | | | | | - Update driver interrupt statistics correctly. sys/sys/pmc.h, sys/dev/hwpmc/hwpmc_mod.c: - Fix a bug affecting debug printfs. - Move the 'stalled' flag from being in a bit in the 'pm_flags' field of a 'struct pmc' to a field of its own in the same structure. This flag is updated from the NMI handler and keeping it separate makes it easier to avoid races with other parts of the code. sys/dev/hwpmc/hwpmc_logging.c: - Do arithmetic with 'uintptr_t' types rather that casting to and from 'char *'. Approved by: re (scottl)
* Have the NMI handler call the C language trap() routine and directlyjkoshy2005-07-091-2/+27
| | | | | | | | | | exit via 'doreti_exit'. Since the NMI interrupt may be taken at any time, including when the processor has masked external interrupts, it is not safe to call ast() as is done for normal interrupts. Approved by: re (scottl)
* Use m_length (m, NULL) instead of m->m_pkthdr.len.rik2005-07-093-3/+3
| | | | | Problems reported by: strijar at urai dot ru Approved by: re (scottl)
* Lost cx_mpsafenet check.rik2005-07-091-2/+3
| | | | | Pointy hat: me Approved by: re (scottl)
* Lost t_oproc() callback assignment.rik2005-07-091-0/+1
| | | | | Pointyhats: phk (who lost it), me (who didn't notice that) Approved by: re (scottl)
* Lost CX_UNLOCK().rik2005-07-091-0/+4
| | | | | Pointy hat: me Approved by: re (scottl)
* Protect from partially initialized channels.rik2005-07-093-0/+6
| | | | Approved by: re (scottl)
* Regrab dvp only when ISDOTDOT.tanimura2005-07-091-1/+2
| | | | Approved by: re (scottl)
* Space & alignment nits.rik2005-07-093-21/+20
| | | | Approved by: re (scottl)
* Some cleanups and tweaks to some of the atomic.h files in preparation forjhb2005-07-093-253/+234
| | | | | | | | | | | | | | | further changes and fixes in the future: - Use aliases via macros rather than duplicated inlines wherever possible. - Move all the aliases to the bottom of these files and the inline functions to the top. - Add various comments. - On alpha, drop atomic_{load_acq,store_rel}_{8,char,16,short}(). - On i386 and amd64, don't duplicate the extern declarations for functions in the two non-inline cases (KLD_MODULE and compiler doesn't do inlines), instead, consolidate those two cases. - Some whitespace fixes. Approved by: re (scottl)
* Add Giant around linux_getcwd_common() in linux_getcwd().jhb2005-07-091-0/+2
| | | | Approved by: re (scottl)
* Add missing locking to linux_connect() so that it can be marked MP safe:jhb2005-07-091-8/+15
| | | | | | | | | - Conditionally grab Giant around the EISCONN hack at the end based on debug.mpsafenet. - Protect access to so_emuldata via SOCK_LOCK. Reviewed by: rwatson Approved by: re (scottl)
* Document that SOCK_LOCK is used to protect so_emuldata.jhb2005-07-091-1/+1
| | | | Approved by: re (scottl)
* The nsegs parameter to bus_dmamap_load_mbuf_sg is not required togrehan2005-07-091-0/+2
| | | | | | | | | be set to 0 on input. This caused a panic in an an MP test version of the GEM driver from Marius, and from inspection of other PCI drivers, the same problem would happen there. Fix by explicitly setting to 0. Approved by: re
* Fix the build. The SMC_8020BT define doesn't exist yet.scottl2005-07-091-0/+2
| | | | Approved by: re (implicit)
* Noticed that NetBSD's sm driver has the PSION GOLDCARD listed, so listimp2005-07-091-3/+2
| | | | | | | | | | | that since I can't test it directly. The driver also lists the EM1144 as being supported, but in reality it isn't. The EM1144-T, {XJ,CC}{3288,3336} have the SMC chips in them, but aren't conformant MFC cards, so they need their own driver. Also, it does little harm to list the 8020BT, so remove #if 0. Approved by: re (scottl)
* correct check for high priority wme trafficsam2005-07-081-1/+1
| | | | | | Noticed by: Ralf Assmann Reviewed by: apatti Approved by: re (scottl)
* Add CANCEL command which allows to remove one request from the queue orpjd2005-07-082-4/+53
| | | | | | | | all requests from the queue if request number is not given. Bump version number. Approved by: re (scottl)
* oops ... forgot to declare sc in my previous commit. unbreak build.damien2005-07-081-0/+1
| | | | Approved by: re (scottl)
* fix allocation of rx dma buffers. buffers must be contiguous.damien2005-07-081-2/+2
| | | | Approved by: re (scottl)
* Make sure that all the necessary USB endpoints are found during devicedamien2005-07-082-2/+7
| | | | | | | attachment. Reviewed by: silby (mentor) Approved by: re (scottl)
* ral_init() takes a struct ral_softc as parameter not a struct ifnet.damien2005-07-082-2/+2
| | | | | | | Fixes a panic that occured when setting the interface parameters while the interface was associated. Approved by: re (scottl)
* Use implicit type cast for ->k_lock to fix compilation of ndisrik2005-07-081-3/+3
| | | | | | | | | | | as a part of the GENERIC kernel with INVARIANT* and WITNESS* turned off. (For non GENERIC kernel KTR and MUTEX_PROFILING should be also off). Submitted by: Eygene A. Ryabinkin <rea at rea dot mbslab dot kiae dot ru> Approved by: re (scottl) PR: 81767
* fix another instance of the MORE_DATA bit handling for frames on thesam2005-07-081-2/+1
| | | | | | | power save queue (missed in previous commit) Submitted by: Bruno Randolf Approved by: re (scottl)
* reclaim node reference when ieee80211_encap failssam2005-07-083-4/+13
| | | | | Reviewed by: avatar Approved by: re (scottl)
* update ural idssam2005-07-082-2/+34
| | | | | | Reviewed by: damien Approved by: re (scottl) Obtained from: openbsd
* Regen.jhb2005-07-085-6/+6
| | | | Approved by: re (scottl)
* Mark second instance of lchown() MP safe just like the first.jhb2005-07-081-1/+1
| | | | Approved by: re (scottl)
* ALTQify ste(4).mlaier2005-07-081-6/+8
| | | | | Requested and tested by: <nike_d at cytexbg dot com> Approved by: re (scottl)
* Lock Giant around a call to userland_sysctl() in ibcs2_sysi86().jhb2005-07-071-2/+7
| | | | Approved by: re (scottl)
* Remove an extra call to read() in ibcs2_read() that can never be reached.jhb2005-07-071-2/+0
| | | | | | (It's already called a few lines earlier.) Approved by: re (scottl)
* Conditionally acquire Giant around the ISC and Xenix system calls basedjhb2005-07-072-10/+24
| | | | | | | on the SYF_MPSAFE flag in the wrapper system calls for the ISC and Xenix system call vectors. Approved by: re (scottl)
* Lock Giant in svr4_add_socket() so that the various svr4_*stat() callsjhb2005-07-071-0/+6
| | | | | | | can be marked MP safe as this is the only part of them that is not already MP safe. Approved by: re (scottl)
* Remove an unused syscallarg() macro leftover from this code's origins injhb2005-07-071-2/+0
| | | | | | NetBSD. Approved by: re (scottl)
* Rototill this file so that it actually compiles. It doesn't do anythingjhb2005-07-071-144/+135
| | | | | | | | | in the build still due to some #undef's in svr4.h, but if you hack around that and add some missing entries to syscalls.master, then this file will now compile. The changes involved proc -> thread, using FreeBSD syscall names instead of NetBSD, and axeing syscallarg() and retval arguments. Approved by: re (scottl)
* Fix the computation of uptime for linux_sysinfo(). Before it was returningjhb2005-07-071-15/+3
| | | | | | the uptime in seconds mod 60 which wasn't very useful. Approved by: re (scottl)
* - Remove spl's from osf1_usleep_thread().jhb2005-07-071-8/+4
| | | | | | | - Fix the calculation of the 'slept' timeval returned by osf1_usleep_thread() which has been broken since 1.1. Approved by: re (scottl)
* Regenerate.jhb2005-07-079-17/+51
| | | | Approved by: re (scottl)
* - Add two new system calls: preadv() and pwritev() which are like readv()jhb2005-07-076-171/+249
| | | | | | | | | | | | | | | | | and writev() except that they take an additional offset argument and do not change the current file position. In SAT speak: preadv:readv::pread:read and pwritev:writev::pwrite:write. - Try to reduce code duplication some by merging most of the old kern_foov() and dofilefoo() functions into new dofilefoo() functions that are called by kern_foov() and kern_pfoov(). The non-v functions now all generate a simple uio on the stack from the passed in arguments and then call kern_foov(). For example, read() now just builds a uio and calls kern_readv() and pwrite() just builds a uio and calls kern_pwritev(). PR: kern/80362 Submitted by: Marc Olzheim marcolz at stack dot nl (1) Approved by: re (scottl) MFC after: 1 week
* - Since we don't hold a usecount in pfs_exit we have to get a holdcntjeff2005-07-071-0/+4
| | | | | | | prior to calling vgone() to prevent any races. Sponsored by: Isilon Systems, Inc. Approved by: re (vfs blanket)
* reclaim mbuf when ieee80211_crypto_encap failssam2005-07-074-4/+12
| | | | | Approved by: re (scottl) Obtained from: netbsd
* Fix ifnet fallout in if_ti.scottl2005-07-072-16/+14
| | | | | Reviewed by: brooks Approved by: re
* only invoke ath_rate_tx_complete to update rate control state when thesam2005-07-072-1/+5
| | | | | | | | | | frame being sent is to be ack'd and hasn't been filtered by the h/w; this insures we don't pass in tx descriptors that have no meaningful state (e.g. mcast/bcast frames are not acked and so have no tx retry counts) Approved by: re (scottl) Obtained from: Atheros
* Add support for Farallon EtherMAC PC Card.imp2005-07-064-66/+65
| | | | | | | | | Move ethernet MAC address setting into pccard attachment Fix panic from IFP2ENADDR() use prior to if_alloc Remove OLDCARD compat support. This should work still on oldcard, however. sn_attach now requires that the resources be activated now, so adjust. Approved by: re (scottl)
* Add device entry for a Farallon EtherMac PC Card that I won on ebay. Thisimp2005-07-061-0/+1
| | | | | | one is supported by the sn driver. Approved by: re (scottl)
* add "pureg" mode for ap operation: reject association requests fromsam2005-07-064-2/+23
| | | | | | | 11b-only stations when operating in 11g Reviewed by: avatar Approved by: re (scottl)
* Fix handling of data frames queued for a station in power save mode:sam2005-07-063-6/+7
| | | | | | | | | | don't mark the MORE_DATA bit when taking it off the ps queue, there's no 802.11 header then; we must wait to do this at encap time so mark the mbuf instead. Reviewed by: avatar Approved by: re (scottl) Obtained from: Atheros
* Fix race condition in handling node reference counts for authenticatingsam2005-07-063-2/+32
| | | | | | | | | stations in ap mode. Track when a node's first auth frame is received and use this to decide whether or not to bump the refcnt. This insures we only ever bump the refcnt once. Reviewed by: avatar Approved by: re (scottl)
OpenPOWER on IntegriCloud