aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup after my de-__P (remove leading whitespace before prototype args).Alfred Perlstein2002-07-061-72/+101
| | | | | | | | | Add newlines after function return types in function declarations. Approved by: wpaul (a long time ago) Notes: svn path=/head/; revision=99498
* Cleanup after my de-__P (remove leading whitespace before prototype args).Alfred Perlstein2002-07-061-84/+120
| | | | | | | | | Add newlines after function return types in function declarations. Approved by: wpaul (a long time ago) Notes: svn path=/head/; revision=99497
* Fix wrong use of ACPI_NO_UNIT_LIMIT which is for as_maxunits, not as_units.Mitsuru IWASAKI2002-07-061-2/+2
| | | | Notes: svn path=/head/; revision=99492
* Fixup uses of GETVOBJECT.Jeff Roberson2002-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. Notes: svn path=/head/; revision=99489
* make this repect ps_sigintr if there is a pre-existing signalJulian Elischer2002-07-061-1/+0
| | | | | | | | | or suspension request. Submitted by: David Xu Notes: svn path=/head/; revision=99488
* Clean up execve locking:Jeff Roberson2002-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 Notes: svn path=/head/; revision=99487
* - Disable original vop_strategy lock specification.Jeff Roberson2002-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. Notes: svn path=/head/; revision=99486
* - Add vop_strategy_pre to validate VOP_STRATEGY locking.Jeff Roberson2002-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. Notes: svn path=/head/; revision=99485
* Use the new #! directive for vop_rename. Leave the old lock specificationJeff Roberson2002-07-061-4/+5
| | | | | | | intact but disabled. Notes: svn path=/head/; revision=99484
* Add "vop_rename_pre" to do pre rename lock verification. This is enabled onlyJeff Roberson2002-07-062-1/+22
| | | | | | | with DEBUG_VFS_LOCKS. Notes: svn path=/head/; revision=99483
* Add a new configuration directive that inserts calls to debugging functionsJeff Roberson2002-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. Notes: svn path=/head/; revision=99482
* Make space for compilations.David E. O'Brien2002-07-061-0/+1
| | | | Notes: svn path=/head/; revision=99481
* Fix at least one of the things wrong with signalsJulian Elischer2002-07-061-6/+9
| | | | | | | | | ^Z should work a lot better now. Submitted by: peter@freebsd.org Notes: svn path=/head/; revision=99480
* Remove the advertising clause from the Duke BSD copyright on theAndrew Gallatin2002-07-063-12/+3
| | | | | | | | | | zero-copy files Requested by: rwatson Approved by: Jeff Chase (my old boss at Duke) Notes: svn path=/head/; revision=99479
* Remove bogus vm_page_wakeup() in vm_page_cowfault() that will cause panicsAndrew Gallatin2002-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 Notes: svn path=/head/; revision=99476
* Implement the last 2-3 missing instructions for ipfw,Luigi Rizzo2002-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 Notes: svn path=/head/; revision=99475
* Fix a lock order reversal in uma_zdestroy. The uma_mtx needs to be held acrossJeff Roberson2002-07-051-4/+4
| | | | | | | | | calls to zone_drain(). Noticed by: scottl Notes: svn path=/head/; revision=99472
* dd %i as an alias for %d for greater compatibility with our *BSD bretherenWarner Losh2002-07-051-0/+1
| | | | | | | | Obtained from: NetBSD Reviewed by: jake, rwatson, bosko Notes: svn path=/head/; revision=99459
* Add bmtphy.cBenno Rice2002-07-051-0/+1
| | | | Notes: svn path=/head/; revision=99443
* regenerateBenno Rice2002-07-051-3/+9
| | | | Notes: svn path=/head/; revision=99441
* Add a driver for the Broadcom BCM52xx "mini-theta" PHY. This includes theBenno Rice2002-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 Notes: svn path=/head/; revision=99440
* Use 3C905C instead of 3c905Cphy as the identifier for the Broadcom PHY usedBenno Rice2002-07-052-3/+3
| | | | | | | | | in the 3C905C. This is mainly cosmetic. I'm doing this mainly so we share the same identifier as NetBSD. Notes: svn path=/head/; revision=99439
* o Lock accesses to the free page queues in contigmalloc1().Alan Cox2002-07-051-0/+2
| | | | Notes: svn path=/head/; revision=99427
* Cleanups for vnode lock debugging.Jeff Roberson2002-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. Notes: svn path=/head/; revision=99426
* Remove unnecessary includes.Jeff Roberson2002-07-052-4/+0
| | | | Notes: svn path=/head/; revision=99424
* Include systm.h before vnode.h so Debugger() and printf() are available whenJeff Roberson2002-07-051-1/+1
| | | | | | | full vnode lock debugging is enabled. Notes: svn path=/head/; revision=99423
* Back out proc part of last commit. UMA manages the thread cache only, andPeter Wemm2002-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) Notes: svn path=/head/; revision=99422
* Copy from sparc64/pmap.c rev 1.64 (Retrofit changes from i386/pmap.cPeter Wemm2002-07-051-23/+9
| | | | | | | | rev 1.328-1.331.) but for uarea only. We still have our own broken kstack code here. Notes: svn path=/head/; revision=99421
* Take a shot at implementing changes from i386/pmap.c rev 1.328-1.331.Peter Wemm2002-07-051-49/+22
| | | | Notes: svn path=/head/; revision=99420
* Turn on BPF_ALIGN for all non-i386 platforms, instead of having anPeter Wemm2002-07-051-1/+1
| | | | | | | | ifdef list that currently lists all the non-i386 platforms that bpf currently works on. Notes: svn path=/head/; revision=99419
* Disable hardware checksum offloading of IP fragments in the bgeJohn Polstra2002-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 Notes: svn path=/head/; revision=99417
* o Resurrect vm_page_lock_queues(), vm_page_unlock_queues(), and the freeAlan Cox2002-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. Notes: svn path=/head/; revision=99416
* Diff reduction (microoptimization) with another WIP. Move the framePeter Wemm2002-07-042-4/+10
| | | | | | | calculation in get_ptbase() to a little later on. Notes: svn path=/head/; revision=99415
* A small cleanup.Julian Elischer2002-07-041-1/+0
| | | | Notes: svn path=/head/; revision=99408
* Don;t call teh thread setup routines from here..Julian Elischer2002-07-041-1/+0
| | | | | | | they are already called when uma calls thread_init() Notes: svn path=/head/; revision=99407
* Retrofit changes from i386/pmap.c rev 1.328-1.331.Peter Wemm2002-07-041-43/+31
| | | | | | | | XXX should really replace the pmap_{new,swapin,swapout,dispose}_{proc,thread} functions with the much cleaner sparc64 versions. Notes: svn path=/head/; revision=99399
* Don't free pages we never allocated..Julian Elischer2002-07-042-14/+4
| | | | | | | My eyes openned by: Matt Notes: svn path=/head/; revision=99398
* Slight restatement of the code and remove some unused variables.Julian Elischer2002-07-042-22/+16
| | | | Notes: svn path=/head/; revision=99397
* Add comments and slightly rearrange the thread stack assignment codeJulian Elischer2002-07-032-18/+38
| | | | | | | to try make it less obscure. Notes: svn path=/head/; revision=99381
* Remove vestiges of old code...Julian Elischer2002-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)) Notes: svn path=/head/; revision=99380
* o Make the reservation of KVA space for kernel map entries a functionAlan Cox2002-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. Notes: svn path=/head/; revision=99374
* Remove trailing whitespaces.Maxim Konovalov2002-07-031-2/+2
| | | | | | | Approved by: luigi Notes: svn path=/head/; revision=99340
* o Strict interface names comparison. The old code assumed "fxp1" == "fxp11".Maxim Konovalov2002-07-031-3/+3
| | | | | | | | | | | o Use an appropriate constant for interface name buffer. Reviewed by: luigi Approved by: luigi MFC after: 1 month Notes: svn path=/head/; revision=99339
* Move vfs_rootmountalloc() in vfs_mount.c and remove lite2_vfs_mountroot()Maxime Henrion2002-07-032-71/+44
| | | | | | | which was #if 0'd and is not likely to be used now. Notes: svn path=/head/; revision=99338
* Try clean up some of the mess that resulted from layers and layersJulian Elischer2002-07-032-59/+32
| | | | | | | | | of p4 merges from -current as things started getting different. Corroborated by: Similar patches just mailed by BDE. Notes: svn path=/head/; revision=99337
* Remove an unused argument in vfs_mountroot().Maxime Henrion2002-07-033-3/+3
| | | | Notes: svn path=/head/; revision=99336
* Add missing kernal tunables to loader.conf.Jonathan Mini2002-07-031-0/+16
| | | | | | | | PR: i386/39085 Submitted by: David Yeske <dyeske@yahoo.com> Notes: svn path=/head/; revision=99332
* White space commit.Julian Elischer2002-07-031-10/+10
| | | | | | | | I'm working on this file but I wanted to make the whitespece commit separatly. Notes: svn path=/head/; revision=99329
* Hold the sched lock across call to forward_signal() in tdsignal() toAndrew Gallatin2002-07-031-1/+4
| | | | | | | | | keep SMP systems from panic'ing when ^C'ing an app suggested by julian Notes: svn path=/head/; revision=99325
* Add mtx_ prefixes to the fields used for mutex profiling, and fix a bugDag-Erling Smørgrav2002-07-033-25/+27
| | | | | | | | | | where the profiling code would report the release point instead of the acquisition point. Requested by: bde Notes: svn path=/head/; revision=99324