summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* o Lock accesses to the free queue(s) in vm_page_zero_idle().alc2002-07-071-0/+4
|
* Make NEWCARD the default pccard/cardbus system.imp2002-07-072-4/+10
|
* Make building with ficl work. Unfortunately booting with it doesn't.jake2002-07-072-5/+10
|
* Build ficl on sparc64 fwiw. It doesn't work.jake2002-07-071-2/+0
|
* One #include <sys/lock.h> is enough.mux2002-07-072-2/+0
| | | | Submitted by: Olivier Houchard <cognet@ci0.org>
* - Use 'options DEBUG_VFS_LOCKS' instead of the DEBUG_ALL_VFS_LOCKSjeff2002-07-071-5/+7
| | | | environment variable to enable the lock verifiction code.
* - Don't hold the vn lock while calling VOP_CLOSE in vclean().jeff2002-07-071-6/+10
|
* o Traverse the object's memq rather than repeatedly calling vm_page_lookup()alc2002-07-071-5/+2
| | | | in vm_object_split().
* - BUF_REFCNT() seems to be the preferred method for verifying a locked buf.jeff2002-07-071-3/+9
| | | | | | Tell vop_strategy_pre() to use this instead. - Ignore B_CLUSTER bufs. Their components are locked but they don't really exist so they don't have to be. This isn't ideal but it is safe.
* Add two asserts that prove & document getblk and geteblk's behavior ofjeff2002-07-071-0/+2
| | | | returning locked bufs.
* - Hold a lock on the vnode acquired from the file table across the call tojeff2002-07-061-3/+14
| | | | | | vm_mmap() as well as the GETATTR etc. - If the handle is a vnode in vm_mmap() assert that it is locked. - Wiggle Giant around a little to account for the extra vnode operation.
* Fix a mistake in my last commit. Don't grab an extra reference to the objectjeff2002-07-062-4/+1
| | | | in bp->b_object.
* Cleanup after my de-__P (remove leading whitespace before prototype args).alfred2002-07-061-72/+101
| | | | | | Add newlines after function return types in function declarations. Approved by: wpaul (a long time ago)
* Cleanup after my de-__P (remove leading whitespace before prototype args).alfred2002-07-061-84/+120
| | | | | | Add newlines after function return types in function declarations. Approved by: wpaul (a long time ago)
* Fix wrong use of ACPI_NO_UNIT_LIMIT which is for as_maxunits, not as_units.iwasaki2002-07-061-2/+2
|
* Fixup uses of GETVOBJECT.jeff2002-07-063-15/+17
| | | | | | | | | | | - Cache a pointer to the vnode's object in the buf. - Hold a reference to that object in addition to the vnode's reference just to be consistent. - Cleanup code that got the object indirectly through the vp and VOP calls. This fixes at least one case where we were calling GETVOBJECT without a lock. It also avoids an expensive layered call at the cost of another pointer in struct buf.
* make this repect ps_sigintr if there is a pre-existing signaljulian2002-07-061-1/+0
| | | | | | or suspension request. Submitted by: David Xu
* Clean up execve locking:jeff2002-07-064-5/+23
| | | | | | - Grab the vnode object early in exec when we still have the vnode lock. - Cache the object in the image_params. - Make use of the cached object in imgact_*.c
* - Disable original vop_strategy lock specification.jeff2002-07-061-1/+2
| | | | | | | | - Switch to the new vop_strategy_pre for lock validation. VOP_STRATEGY requires only that the buf is locked UNLESS the block numbers need to be translated. There may be other reasons, but as long as the underlying layer uses a VOP to perform the operations they will be caught later.
* - Add vop_strategy_pre to validate VOP_STRATEGY locking.jeff2002-07-062-0/+17
| | | | | | | | | - Disable original vop_strategy lock specification. - Switch to the new vop_strategy_pre for lock validation. VOP_STRATEGY requires only that the buf is locked UNLESS the block numbers need to be translated. There may be other reasons, but as long as the underlying layer uses a VOP to perform the operations they will be caught later.
* Use the new #! directive for vop_rename. Leave the old lock specificationjeff2002-07-061-4/+5
| | | | intact but disabled.
* Add "vop_rename_pre" to do pre rename lock verification. This is enabled onlyjeff2002-07-062-1/+22
| | | | with DEBUG_VFS_LOCKS.
* Add a new configuration directive that inserts calls to debugging functionsjeff2002-07-061-1/+28
| | | | | | | | | | | | | | | | in the VOP inlines. This is intended to replace the simple locking specifications for calls that have more complicated behavior such as rename and lookup. The syntax of the new entries is: #! name pre/post function If the function is marked 'pre' it is executed prior to calling the VOP and takes a pointer to a struct vop_{name}_args as it's only parameter. If the function is marked 'post' it is executed after the VOP call and takes a pointer to a struct vop_{name}_args as it's first parameter and the integer return value from the vop as the second paramter.
* Make space for compilations.obrien2002-07-061-0/+1
|
* Fix at least one of the things wrong with signalsjulian2002-07-061-6/+9
| | | | | | ^Z should work a lot better now. Submitted by: peter@freebsd.org
* Remove the advertising clause from the Duke BSD copyright on thegallatin2002-07-063-12/+3
| | | | | | | zero-copy files Requested by: rwatson Approved by: Jeff Chase (my old boss at Duke)
* Remove bogus vm_page_wakeup() in vm_page_cowfault() that will cause panicsgallatin2002-07-051-1/+0
| | | | | | | in the zero-copy send path if a process attempts to write to a page which is still in flight. reviewed by: ken
* Implement the last 2-3 missing instructions for ipfw,luigi2002-07-052-36/+111
| | | | | | | | | | | | | | | | now it should support all the instructions of the old ipfw. Fix some bugs in the user interface, /sbin/ipfw. Please check this code against your rulesets, so i can fix the remaining bugs (if any, i think they will be mostly in /sbin/ipfw). Once we have done a bit of testing, this code is ready to be MFC'ed, together with a bunch of other changes (glue to ipfw, and also the removal of some global variables) which have been in -current for a couple of weeks now. MFC after: 7 days
* Fix a lock order reversal in uma_zdestroy. The uma_mtx needs to be held acrossjeff2002-07-051-4/+4
| | | | | | calls to zone_drain(). Noticed by: scottl
* dd %i as an alias for %d for greater compatibility with our *BSD bretherenimp2002-07-051-0/+1
| | | | | Obtained from: NetBSD Reviewed by: jake, rwatson, bosko
* Add bmtphy.cbenno2002-07-051-0/+1
|
* regeneratebenno2002-07-051-3/+9
|
* Add a driver for the Broadcom BCM52xx "mini-theta" PHY. This includes thebenno2002-07-053-0/+483
| | | | | | | | | | | | | internal PHY on the 3COM 3C905B and 3C905C parts, however I've rigged it so that xlphy (aka exphy) takes precedence for the time being. If people try this with their xl cards and decide that it's a better choice, we can switch this later. This is the PHY used in various iMacs and possibly other GMAC-equipped Macintoshes with 10/100 PHYs (the ones with 10/100/1000 appear to use brgphy). Obtained from: NetBSD
* Use 3C905C instead of 3c905Cphy as the identifier for the Broadcom PHY usedbenno2002-07-052-3/+3
| | | | | | in the 3C905C. This is mainly cosmetic. I'm doing this mainly so we share the same identifier as NetBSD.
* o Lock accesses to the free page queues in contigmalloc1().alc2002-07-051-0/+2
|
* Cleanups for vnode lock debugging.jeff2002-07-051-4/+6
| | | | | | - Tell IS_LOCKING_VFS to ignore block and character devices. specfs vnodes aren't locked for io and they just generate lots of false positives. - Add newlines to the badlock prints.
* Remove unnecessary includes.jeff2002-07-052-4/+0
|
* Include systm.h before vnode.h so Debugger() and printf() are available whenjeff2002-07-051-1/+1
| | | | full vnode lock debugging is enabled.
* Back out proc part of last commit. UMA manages the thread cache only, andpeter2002-07-052-16/+44
| | | | | | | | | we just have to deal with the kstack when told to. We do not have a UMA-managed cache for the proc struct and its associated upage yet. So, go back to the old lazy mechanism. Note that if UMA destroys pages that used to contain proc structures, we'll lose the corresponding upage forever. (zones never did this - once a page was allocated, it stayed attached to the proc zone forever)
* Copy from sparc64/pmap.c rev 1.64 (Retrofit changes from i386/pmap.cpeter2002-07-051-23/+9
| | | | | rev 1.328-1.331.) but for uarea only. We still have our own broken kstack code here.
* Take a shot at implementing changes from i386/pmap.c rev 1.328-1.331.peter2002-07-051-49/+22
|
* Turn on BPF_ALIGN for all non-i386 platforms, instead of having anpeter2002-07-051-1/+1
| | | | | ifdef list that currently lists all the non-i386 platforms that bpf currently works on.
* Disable hardware checksum offloading of IP fragments in the bgejdp2002-07-041-1/+1
| | | | | | | | | | driver. I tried a few obvious experiments, but was unable to make the 3c996B-T generate correct UDP checksums for transmitted fragmented packets. I'm not so sure the device is even capable of it. This fixes NFS over UDP. MFC after: 1 day
* o Resurrect vm_page_lock_queues(), vm_page_unlock_queues(), and the freealc2002-07-043-5/+29
| | | | | | queue lock (revision 1.33 of vm/vm_page.c removed them). o Make the free queue lock a spin lock because it's sometimes acquired inside of a critical section.
* Diff reduction (microoptimization) with another WIP. Move the framepeter2002-07-042-4/+10
| | | | calculation in get_ptbase() to a little later on.
* A small cleanup.julian2002-07-041-1/+0
|
* Don;t call teh thread setup routines from here..julian2002-07-041-1/+0
| | | | they are already called when uma calls thread_init()
* Retrofit changes from i386/pmap.c rev 1.328-1.331.peter2002-07-041-43/+31
| | | | | XXX should really replace the pmap_{new,swapin,swapout,dispose}_{proc,thread} functions with the much cleaner sparc64 versions.
* Don't free pages we never allocated..julian2002-07-042-14/+4
| | | | My eyes openned by: Matt
* Slight restatement of the code and remove some unused variables.julian2002-07-042-22/+16
|
OpenPOWER on IntegriCloud