summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate __RMAN_RESOURCE_VISIBLE hack entirely by moving the structphk2005-10-062-29/+27
| | | | resource_ to subr_rman.c where it belongs.
* o Use firmware extended scan command; this one doesn't crash when scanningdamien2005-10-062-21/+29
| | | | | | | | | | the 5GHz band. o Enable 802.11a channels scanning for 2915ABG adapters. o Fix a typo (negociated->negotiated). With hints from NetBSD. MFC after: 2 days
* Make sure that the worker thread knows the type early enough tophk2005-10-061-6/+5
| | | | | | grab Giant for vnode backing. Found by: pho & tegge
* Backout strtok() addition to libkern, strsep() is enough and strtok()pjd2005-10-063-101/+0
| | | | | | is not safe. Discussed with: stefanf, njl
* - Use strsep() instead of strtok().pjd2005-10-061-7/+6
| | | | | | | - strdup() uses M_WAITOK, so we don't need to check it's return value against NULL. MFC after: 2 weeks
* Fix another edge case I just noticed when committing the previous changes:jhb2005-10-062-0/+6
| | | | | | | If bus_setup_intr() fails, cleanup the ifnet setup in vx_attach() by calling ether_ifdetach() and if_free(). MFC after: 1 week
* Rototill vx(4), add locking, and mark MPSAFE:jhb2005-10-064-233/+287
| | | | | | | | | | | | | | | | | | - Rename vxfoo() functions to vx_foo() to improve readability and consistency with other drivers. - Prefix most the softc members with 'vx_' (the other members already had the prefix). - Switch to using callout_init_mtx() and callout_*() rather than timeout() and untimeout(). - Add some missing calls to if_free() in some failure cases in vx_attach(). - Use if_printf() and remove the unit number from the softc. - Remove uses of the 'register' keyword and spls. - Add locked variants of vx_init() and vx_start(). - Add a mutex to the softc and lock it in various appropriate places. - Setup the interrupt handler last during attach. Tested by: imp MFC after: 1 week
* Eliminate need for __RMAN_RESOURCE_VISIBLEphk2005-10-061-6/+4
| | | | Reviewed by: marcel@
* Add support for setting the SG list segment size.sos2005-10-063-11/+19
| | | | | | Use this for the SiI3112 workaround to get rid of the "oversized DMA" errors. MFC to 6.0 candidate.
* Export PAGE_SIZE from genassym.c, and include assym.s in bcopy_page.S,cognet2005-10-062-1/+5
| | | | instead of <machine/param.h>.
* Add boot.nfsroot.options loader tunable.pjd2005-10-061-0/+30
| | | | | | | | | | | | | | | | | It allows to specify options for NFS root file system. Currently supported options are: soft, intr, conn, lockd. I'm adding this functionality mostly for 'lockd' option, which is only honored when performing the initial mount and will be silently ignored if used while updating the mount options. This will allow to use flock(2) without the need of using varmfs or rpc.lockd and friends. Example of use: boot.nfsroot.options="intr,lockd" MFC after: 2 weeks
* Add strtok() and strtok_r() function to libkern.pjd2005-10-063-0/+101
| | | | MFC after: 2 weeks
* Fix a nasty typo. Change:pjd2005-10-061-1/+1
| | | | | | | | | | | | if (foo); bar(); to: if (foo) bar(); Really, really nasty bug and a very nice catch of mine. Unfortunately, I'll not become a hero of the day, because the code is commented out.
* Fixing a boot time panic(when if_fwip is compiled into kernel) by renamingavatar2005-10-061-3/+3
| | | | | | | | | module name to something that wouldn't conflict with sys/dev/firewire/firewire.c. Submitted by: Cai, Quanqing <caiquanqing at gmail dot com> PR: kern/82727 MFC after: 3 days
* Fix KASSERT function name in ether_output, use __func__ while I am here.thompsa2005-10-061-2/+2
|
* Make param.h includable again from assembler.imp2005-10-051-0/+4
|
* Include forgotten rtl80x9 file for ed.imp2005-10-051-0/+1
|
* - Locking improvements.netchild2005-10-053-22/+47
| | | | | | | | | | | | | | | | | | | | - Don't keep the SPDIF state in the driver private struct since it can be overriden by hand with pciconf(8), query it when needed instead. Regarding the locking I let Ariff explain it himself: ---snip--- About the locking, that is what I'm intended to do since the beginning. The reason I'm not putting that along since my first patchset was because several people especially from amd46 camp reported that it cause lots of LORs, which is weird considering that I've never encounter such in a pretty much strict locking environment (i386). However, since our previous discussion with Pyun YongHyeon about strict locking, I've decided to bring it back for all the affected drivers, not just for es137x. It turns out that the root of the problem was within dsp.c during device open, which has been fixed since dsp.c revision 1.84. ---snip--- Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>
* Add a comment regarding problems with NForce 2 mainboards and add disablednetchild2005-10-051-0/+5
| | | | | | | | | | | code which may help. People with a ich compatible soundcard which want to help out should change the "#if 1" to a "#if 0" and try if the soundcard still works. Reports about working or not-working soundcards with this change to multimedia@ please. PR: 73987
* Don't use the builtin vaalist for icc.netchild2005-10-051-6/+3
| | | | | Submitted by: Igor Sysoev <is@rambler-co.ru> MFC after: 3 days
* - Don't pollute opt_global.h with DEVICE_POLLING and introduceglebius2005-10-0522-3/+75
| | | | | | | | | opt_device_polling.h - Include opt_device_polling.h into appropriate files. - Embrace with HAVE_KERNEL_OPTION_HEADERS the include in the files that can be compiled as loadable modules. Reviewed by: bde
* - Don't include opt_global.h, it is always included implicitly.glebius2005-10-052-2/+3
| | | | - Include opt_device_polling.h
* Define HAVE_KERNEL_OPTION_HEADERS when building kernel and when buildingglebius2005-10-052-2/+2
| | | | | | | | | | modules along with kernel. After this change it is possible to embrace opt_*.h includes with ifdef HAVE_KERNEL_OPTION_HEADERS. And thus, avoid editing a lot of Makefiles in modules directory each time we introduce a new opt_xxx.h. Requested by: bde
* Add if_ed_rtl80x9.cimp2005-10-051-1/+1
|
* Remove debug that crept in..imp2005-10-051-4/+0
|
* MFp4:imp2005-10-0510-67/+591
| | | | | | | | | | o Add support for Tamarack TC5299J + MII found on SMC 8041TX V.2 and corega PCCCCTXD o Add support for ISA/PCI RTL80[12]9 chips o Improve support for the ax88790 based o minor code movement Submitted by: (#2) David Madole
* Don't set segment registers via ptrace yet. Its not ready.peter2005-10-041-0/+4
|
* When data passed into devctl_notify is NULL, don't print (null). Insteadimp2005-10-041-2/+6
| | | | | | | don't print anything at all. # this fixes a problem that I noticed with devd.pipe not terminating lines # with \n correctly sometimes.
* Remove a never reached RET.cognet2005-10-041-1/+0
|
* strd needs the destination to be double-word aligned, but the pointer passedcognet2005-10-041-6/+0
| | | | | to savectx isn't always, so always use stmia, savectx isn't called enough to need that kind of optimization.
* When bridging is enabled and an ARP request is recieved on a member interface,thompsa2005-10-041-1/+1
| | | | | | | | | | | | | | | | | the arp code will search all local interfaces for a match. This triggers a kernel log if the bridge has been assigned an address. arp: ac:de:48:18:83:3d is using my IP address 192.168.0.142! bridge0: flags=8041<UP,RUNNING,MULTICAST> mtu 1500 inet 192.168.0.142 netmask 0xffffff00 ether ac:de:48:18:83:3d Silence this warning for 6.0 to stop unnecessary bug reports, the code will need to be reworked. Approved by: mlaier (mentor) MFC after: 3 days
* Correct brainfart in SO_BINTIME test.andre2005-10-041-1/+1
| | | | | Pointed out by: nate Pointy hat to: andre
* Make SO_BINTIME timestamps available on raw_ip sockets.andre2005-10-041-1/+1
| | | | Sponsored by: TCP/IP Optimization Fundraise 2005
* Re-order MAC and DAC checks in shmget() in order to give precedence torwatson2005-10-041-2/+4
| | | | | | | | the MAC result, as well as avoid losing the DAC check result when MAC is enabled. MFC after: 3 days Reported by: Patrick LeBlanc <Patrick dot LeBlanc at sparta dot com>
* dump_avail has nothing to do with ARM_USE_SMALL_ALLOC, so move itscognet2005-10-041-1/+1
| | | | declaration out of the #ifdef.
* Use FILEDESC_UNLOCK(fdp) after FILE_UNLOCK(p), not before to avoid LOR.rik2005-10-041-1/+3
| | | | | | | | Slightly discussed on current@. LOR #055 MFC after: 14 days
* Protect PID initializations for statistics by the bpf descriptorcsjp2005-10-041-2/+6
| | | | | | | locks. Also while we are here, protect the bpf descriptor during knlist_remove{add} operations. Discussed with: rwatson
* Update the vnode's access time after an mmap operation on it.dds2005-10-041-0/+12
| | | | | | | | | | | | Before this change a copy operation with cp(1) would not update the file access times. According to the POSIX mmap(2) documentation: the st_atime field of the mapped file may be marked for update at any time between the mmap() call and the corresponding munmap() call. The initial read or write reference to a mapped region shall cause the file's st_atime field to be marked for update if it has not already been marked for update.
* Use the correct object's backing_object_offset while calculating offsets.csjp2005-10-041-1/+4
| | | | | | | | While we are here, add a note that we need to lock the object before walking the backing object list. Pointed out by: alc Discussed with: rwatson
* Remove duplicate entry for DDB.cognet2005-10-042-2/+0
|
* Really detect if DDB is enabled.cognet2005-10-041-1/+4
| | | | Remove kernel.tramp if it exists on make clean.
* Make arm/disassem.c depends on DDBcognet2005-10-041-3/+3
| | | | make arm/in_cksum.c and arm/in_cksum_asm.S depend on INET.
* Fix build when DDB isn't defined.cognet2005-10-041-0/+2
|
* Standard Giant push down operations for the Mandatory Access Control (MAC)csjp2005-10-043-102/+81
| | | | | | | | | | | | | | | | | | | | | | framework. This makes Giant protection around MAC operations which inter- act with VFS conditional, based on the MPSAFE status of the file system. Affected the following syscalls: o __mac_get_fd o __mac_get_file o __mac_get_link o __mac_set_fd o __mac_set_file o __mac_set_link -Drop Giant all together in __mac_set_proc because the mac_cred_mmapped_drop_perms_recurse routine no longer requires it. -Move conditional Giant aquisitions to after label allocation routines. -Move the conditional release of Giant to before label de-allocation routines. Discussed with: rwatson
* Conditionally pickup Giant in mac_cred_mmapped_drop_perms_recurse socsjp2005-10-041-2/+6
| | | | | | | we can drop it all together in __mac_set_proc. Reviewed by: alc Discussed with: rwatson
* Rename net.isr.enable to net.isr.dispatch.rwatson2005-10-041-5/+5
| | | | | | | | No compatibility code is provided, as this will be the production name as of 6.0. MFC after: 3 days Requested by: scottl
* For some utterly bizarre reason, sparc64 coerces PAGE_SIZE to be a longscottl2005-10-041-2/+3
| | | | | | instead of an int. No other FreeBSD architecture does this. Patch over this problem in the lmc driver. While I'm here, correct a mistake with DEVICE_POLLING.
* Oops, left a compile option enabled that should not be enabled.scottl2005-10-041-1/+1
|
* Add missing word to comment.truckman2005-10-041-1/+1
|
* Bring in the good version of this file.cognet2005-10-031-44/+2
|
OpenPOWER on IntegriCloud