summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary Dlink de650 entryimp2005-09-241-1/+0
|
* The DLink DE650 has the same ID as Linksys EthernetCard, so we don'timp2005-09-241-1/+0
| | | | need a sperate entry for it.
* Try to avoid crashes during kernel startup by limiting the # of EISAwilko2005-09-241-0/+3
| | | | | | | | | | | slots to probe. Problems have been reported in this area, lets hope this bandaid helps. !! Owners of EISA-equipped Alpha machines are requested to at least !! boot-test a 6-BETA build and report back to the Alpha list. Thanks! Approved by: re (scottl) Suggested by: ticso
* This part of the struct isn't needed on FreeBSD:netchild2005-09-241-0/+2
| | | | | | | | | | ---snip--- FYI this bit isn't needed for FreeBSD - I think it came from either OpenBSD or NetBSD where arc4random() wasn't available during cold boot. ---snip--- Explained by: iedowse
* Make rule zero really magical, that way we don't have to do anythingphk2005-09-243-153/+99
| | | | | | | | | | | | | | | | | | when we mount and get zero cost if no rules are used in a mountpoint. Add code to deref rules on unmount. Switch from SLIST to TAILQ. Drop SYSINIT, use SX_SYSINIT and static initializer of TAILQ instead. Drop goto, a break will do. Reduce double pointers to single pointers. Combine reaping and destroying rulesets. Avoid memory leaks in a some error cases.
* Remove obsolete includeimp2005-09-231-2/+0
|
* Restore a historical ufs_inactive behavior that has been changeddelphij2005-09-231-1/+1
| | | | | | | | | | | | | | | | | | | in rev. 1.40 of ufs_inode.c, which allows an inode being truncated even when the filesystem itself is marked RDONLY. A subsequent call of UFS_TRUNCATE (ffs_truncate) would panic the system as it asserts that it can only be called when the filesystem is mounted read-write (same changeset, rev. 1.74 of sys/ufs/ffs/ffs_inode.c). Because ffs_mount() already takes care of sync'ing the filesystem to disk before being downgraded to readonly, it appears to be more desirable that we should not permit this sort of writes to disk. This change would fix a panic that occours when read-only mounted a corrupted filesystem and doing some file operations. MT6/5/4 candidate Reviewed by: mckusick
* Canonicalize the UNIX domain socket copyright layout: original holdersrwatson2005-09-231-2/+3
| | | | | | before more recent holders. MFC after: 3 days
* For reasons of consistency (and necessity), assert an exclusive vnoderwatson2005-09-231-0/+1
| | | | | | | lock on the fifo vnode in fifo_open(): we rely on the vnode lock to serialize access to v_fifoinfo. MFC after: 3 days
* Fix commentemax2005-09-221-1/+1
|
* Forgot to commit ata-card fixes last night. Fix gleb's attempt to doimp2005-09-221-4/+7
| | | | | the right thing by merging in the changes I neglected to commit last night.
* Fix build.glebius2005-09-221-9/+4
|
* Fix the "fpudna: fpcurthread == curthread XXX times" problem.ups2005-09-221-0/+1
| | | | | | Tested by: kris@ Reviewed by: peter@ MFC after: 3 days
* Don't pretend to be thread0 when calling sync().ups2005-09-221-2/+2
| | | | | | | | | It confuses the lock manager since in some places thread0 is then used for vnode locking while curthread is used for vnode unlocking. Found by: Yahoo! Reviewed by: ps@,jhb@ MFC after: 3 days
* Cause all flags passed by boot2 to set the respective loader(8)ru2005-09-223-1/+12
| | | | | boot_* variable. The end effect is that all flags from boot2 are now passed to the kernel.
* Add loader(8) variables for RB_DFLTROOT, RB_MUTE, and RB_PAUSE:ru2005-09-2210-15/+90
| | | | "boot_dfltroot", "boot_mute", and "boot_pause" respectively.
* Remove compat layer for OLDCARD compatibility. All instances of itimp2005-09-222-39/+0
| | | | are now gone from the tree.
* - RBX_MASK wasn't updated when RB_PAUSE was changed from 0x40000ru2005-09-222-4/+4
| | | | | | to 0x100000 in rev. 1.67. - NOPT wasn't updated (decremented) in previous revision.
* Add fi_sx, an sx lock to serialize I/O operations on the socket pairrwatson2005-09-221-3/+16
| | | | | | | | | | | | | | | | | | | | underlying the POSIX fifo implementation. In 6.x/7.x, fifo access is moved from the VFS layer, where it was serialized using the vnode lock, to the file descriptor layer, where access is protected by a reference count but not serialized. This exposed socket buffer locking to high levels of parallelism in specific fifo workloads, such as make -j 32, which expose as yet unresolved socket buffer bugs. fi_sx re-adds serialization about the read and write routines, although not paths that simply test socket buffer mbuf queue state, such as the poll and kqueue methods. This restores the extra locking cost previously present in some cases, but is an effective workaround for the instability that has been experienced. This workaround should be removed once the bug in socket buffer handling has been fixed. Reported by: kris, jhb, Julien Gabel <jpeg at thilelli dot net>, Peter Holm <peter at holm dot cc>, others MFC after: 3 days
* 'PC Card' instead of other variantsimp2005-09-226-12/+12
|
* Eliminate dead codeimp2005-09-221-6/+0
|
* PC Card instead of other variantsimp2005-09-222-5/+5
|
* Finish last commit: actually remove compat methods from bt3c_pccard_methodsimp2005-09-221-7/+3
|
* Remove broken OLDCARD compat shims.imp2005-09-221-16/+4
| | | | | "PC Card" is the correct spelling. "PC-Card" isn't, per the PCMCIA standard.
* MFp4: save mac addr hint, eliminage OLDCARD shimsimp2005-09-222-35/+11
|
* Use the AHC_DISABLE_PCI_PERR flag to silence parity error reporting ongibbs2005-09-221-8/+15
| | | | | | chips where setting the FAILDIS bit is not effective. While here, try again to make it clear that reported parity errors indicate a failure of some PCI device *other than* the aic7xxx controller.
* Remove OLDCARD shimsimp2005-09-221-33/+17
|
* Enhance diagnostic printfs for the chains of free lists used togibbs2005-09-221-1/+3
| | | | avoid SCB ID collissions to non-packetized targets.
* Correct bug that caused the completed "recovery" scb to have itsgibbs2005-09-222-2/+4
| | | | | | timer reset rather than the timer of an SCB still pending on the controller after recovery completed. This should correct timeout loops seen in the field.
* Set allow_memio to 1 if fetching the allow_memio hint fails. Thisgibbs2005-09-221-0/+1
| | | | | is the default behavior according the the bootverbose printf in the failure case.
* MFp4: Remove OLDCARD shimsimp2005-09-221-27/+13
|
* MFp4: trivial KNF nitsimp2005-09-221-6/+1
|
* MFp4: KNF (mostly remove K&R function definitions). Fix some spaces leftimp2005-09-221-176/+82
| | | | | | | over from de__Ping. # Didn't fix the -Exxxx return statements that appaer to be linuxisms # (and wrong) since I don't have hardware to test with.
* Fix an alignment panic my preserving the 2byte padding (ETHER_ALIGN) on ourthompsa2005-09-221-1/+1
| | | | | | | | | copied mbuf, which keeps the IP header 32-bit aligned. This copied mbuf is reinjected back into ether_input and off to the IP routines. Reported and tested by: Peter van Dijk Approved by: mlaier (mentor) MFC after: 3 days
* Temporarily disable nice threshold detection code, as it can starvedavidxu2005-09-221-1/+3
| | | | | | | | a thread holding critical resource, e.g mutex or other implicit synchronous flags. Give thread which exceeds nice threshold a minimum time slice. PR: kern/86087
* Better descriptions for the Jack of Diamonds cards.imp2005-09-211-5/+5
|
* Remove OLDCARD shimsimp2005-09-213-67/+22
|
* Don't confuse the tuple code and the tuple length. Ooops. Since mostimp2005-09-211-1/+1
| | | | CIS are tiny, this likely hasn't bit anybody yet...
* Use correct VFS locking rather than unconditionally grabbing Giant aroundjhb2005-09-211-12/+8
| | | | | | | namei() calls in kern_alternate_path(). Reviewed by: csjp MFC after: 1 week
* Split power state control into two variables. hw.pci.do_powerstateimp2005-09-211-16/+18
| | | | | | | | | | | | | has been removed. It has been replaced by hw.pci.do_power_nodriver and hw.pci.do_power_resume. The former defaults to 0 while the latter defaults to 1. When do_powerstate was set to 0, it broke suspend/resume for a lot of people as an unintended consequence. This change will only affect the areas that were intended to affect. This change will have no effect on servers, but will help laptops quite a bit. MFC After: 3 days.
* Add COMPAT_FREEBSD5 option. This should have been done back when Ikensmith2005-09-211-0/+3
| | | | | | | added it to GENERIC... Pointed out by: jhb Pointy hat: kensmith
* Pass 'curthread' into VFS_STATFS() from acctwatch(), rather than passingrwatson2005-09-211-2/+2
| | | | | | | | NULL. The NFS client expects that a thread will always be present for a VOP so that it can check for signal conditions, and will dereference a NULL pointer if one isn't present. MFC after: 3 days
* Make sure we have a bufobj before calling bstrategy().cognet2005-09-211-1/+3
| | | | | | | I'm not sure this is the right thing to do, but at least I don't panic anymore when swapping on a NFS file without using md(4). X-MFC after: proper review
* Several fixes to rt_setgate(), that fix problems with route changing:glebius2005-09-211-35/+30
| | | | | | | | | | | | | | | - Rearrange code so that in a case of failure the affected route is not changed. Otherwise, a bogus rtentry will be left and later rt_check() can recurse on its lock. [1] - Remove comment about protocol cloning. - Fix two places where rtentry mutex was recursed on, because accessed via two different pointers, that were actually pointing to the same rtentry in some cases. [1] - Return EADDRINUSE instead of bogus EDQUOT, in case when gateway uses the same route. [2] Reported & tested by: ps, Andrej Zverev <az inec.ru> [1] PR: kern/64090 [2]
* Fix an unaligned I/O memory access in the event that a SCB times out.marcel2005-09-211-3/+9
| | | | | | | | The FXP_SCR_FLOWCONTROL registers is at offset 0x19, but 2 bytes wide. It cannot be read as a word without causing a panic on architectures that enforce strict alignment. MFC after: 3 days
* Use the correct minor number for the pccardX.cis device.imp2005-09-201-3/+7
| | | | | | | Don't destroy a NULL device. This should fix the panics on boot people are seeing on systems with more than one pccard slot.
* Remove unused (but initialized) variable 'objsize' from vm_mmap()peter2005-09-201-2/+1
|
* Remove OLDCARD support by removing compat shimsimp2005-09-204-93/+34
|
* Better use of gone.imp2005-09-201-9/+5
|
* Remove oldcard support by removing the compat shims.imp2005-09-201-21/+5
|
OpenPOWER on IntegriCloud