summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add comments and slightly rearrange the thread stack assignment codejulian2002-07-032-18/+38
| | | | to try make it less obscure.
* Remove vestiges of old code...julian2002-07-032-42/+24
| | | | | | These functions are always called on new memory so they can not already be set up, so don't bother testing for that. (This was left over from before we used UMA (which is cool))
* o Make the reservation of KVA space for kernel map entries a functionalc2002-07-031-1/+2
| | | | | | | | of the KVA space's size in addition to the amount of physical memory and reduce it by a factor of two. Under the old formula, our reservation amounted to one kernel map entry per virtual page in the KVA space on a 4GB i386.
* Remove trailing whitespaces.maxim2002-07-031-2/+2
| | | | Approved by: luigi
* o Strict interface names comparison. The old code assumed "fxp1" == "fxp11".maxim2002-07-031-3/+3
| | | | | | | | o Use an appropriate constant for interface name buffer. Reviewed by: luigi Approved by: luigi MFC after: 1 month
* Move vfs_rootmountalloc() in vfs_mount.c and remove lite2_vfs_mountroot()mux2002-07-032-71/+44
| | | | which was #if 0'd and is not likely to be used now.
* Try clean up some of the mess that resulted from layers and layersjulian2002-07-032-59/+32
| | | | | | of p4 merges from -current as things started getting different. Corroborated by: Similar patches just mailed by BDE.
* Remove an unused argument in vfs_mountroot().mux2002-07-033-3/+3
|
* Add missing kernal tunables to loader.conf.mini2002-07-031-0/+16
| | | | | PR: i386/39085 Submitted by: David Yeske <dyeske@yahoo.com>
* White space commit.julian2002-07-031-10/+10
| | | | | I'm working on this file but I wanted to make the whitespece commit separatly.
* Hold the sched lock across call to forward_signal() in tdsignal() togallatin2002-07-031-1/+4
| | | | | | keep SMP systems from panic'ing when ^C'ing an app suggested by julian
* Add mtx_ prefixes to the fields used for mutex profiling, and fix a bugdes2002-07-033-25/+27
| | | | | | | where the profiling code would report the release point instead of the acquisition point. Requested by: bde
OpenPOWER on IntegriCloud