summaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* use frame type returned by ieee80211_input to drive softled codeSam Leffler2005-04-042-5/+3
| | | | | | | instead of monitoring the input packet count Notes: svn path=/head/; revision=144617
* change ieee80211_input to return the frame type or -1Sam Leffler2005-04-042-6/+8
| | | | Notes: svn path=/head/; revision=144616
* - Include opt_vfs.h for LOOKUP_SHARED.Jeff Roberson2005-04-031-8/+16
| | | | | | | | - Control the behavior of shared lookups with the lookup_shared sysctl which has its default behavior set via the LOOKUP_SHARED option. Notes: svn path=/head/; revision=144613
* - Move LOOKUP_SHARED from opt_global.h to opt_vfs.h so we don't haveJeff Roberson2005-04-031-1/+3
| | | | | | | to recompile the whole kernel if we change it. Notes: svn path=/head/; revision=144612
* Move pc98 specific parts to the pc98 specific file.Warner Losh2005-04-036-27/+123
| | | | Notes: svn path=/head/; revision=144611
* - Don't NULL the vnode's v_object pointer until after the object is tornJeff Roberson2005-04-031-1/+1
| | | | | | | | | | | down. If we have dirty pages, the putpages routine will need to know what the vnode's object is so that it may write out dirty pages. Pointy hat: phk Found by: obrien Notes: svn path=/head/; revision=144610
* maxunit is actually one higher than the greatest currently-allocated unitNate Lawson2005-04-031-1/+1
| | | | | | | | | | | | in a devclass. All the other uses of maxunit are correct and this one was safe since it checks the return value of devclass_get_device(), which would always say that the highest unit device doesn't exist. Reviewed by: dfr MFC after: 3 days Notes: svn path=/head/; revision=144609
* With pc98/include, we can have pc98 and i386 specific bus spaceWarner Losh2005-04-036-1868/+1960
| | | | | | | | implementations in their own files named $MACHINE/include/bus.h. Copy the contents appropriately. Notes: svn path=/head/; revision=144604
* - Add a missing g_io_deliver() in case of allocation failure - we didn'tPawel Jakub Dawidek2005-04-031-3/+17
| | | | | | | | | | | | completed I/O requests here. - First allocate all needed bios, so if any of allocations fail, we can free memory before sending any I/O requests down. Reported by: Pawel Malachowski MFC after: 3 days Notes: svn path=/head/; revision=144592
* Fix a buglet that caused slaves to be nondetected.Søren Schmidt2005-04-031-3/+4
| | | | Notes: svn path=/head/; revision=144591
* - Use M_ZERO rather than explicitly calling bzero().Jeff Roberson2005-04-031-13/+13
| | | | | | | | | | | | - Don't intermingle direct calls to lockmgr and indirect calls through VOPs. This will be important in the future. - Dont lock the devvp's interlock just to release it on the next line by passing LK_INTERLOCK to lockmgr. - Restructure ffs_snapshot_unmount so we don't call free() with the devvp's interlock locked. Notes: svn path=/head/; revision=144590
* - Slightly restructure acquire() so I can add more ktr information andJeff Roberson2005-04-031-18/+14
| | | | | | | | an assert to help find two strange bugs. - Remove some nearby spls. Notes: svn path=/head/; revision=144589
* - In ffs_sync we need to pass LK_SLEEPFAIL in when we lock the vnodeJeff Roberson2005-04-031-4/+3
| | | | | | | | | | because it may change identities while we're sleeping on the lock. Otherwise we may bail out of ffs_sync() early due to an error from deadfs. - Collapse a VOP_UNLOCK, vrele into a single vput(). Notes: svn path=/head/; revision=144586
* - Move the contents of softdep_disk_prewrite into ffs_geom_strategy to fixJeff Roberson2005-04-033-32/+21
| | | | | | | | | | | | | | | | | | | | two bugs. - ffs_disk_prewrite was pulling the vp from the buf and checking for COPYONWRITE, when really it wanted the vp from the bufobj that we're writing to, which is the devvp. This lead to us skipping the copy on write to all file data, which significantly broke snapshots for the last few months. - When the SOFTUPDATES option was not included in the kernel config we would also skip the copy on write check, which would effectively disable snapshots. - Remove an invalid mp_fixme(). Debugging tips from: mckusick Reported by: iedowse, others Discussed with: phk Notes: svn path=/head/; revision=144585
* - Now that writes to character devices supporting softupdates canJeff Roberson2005-04-031-3/+4
| | | | | | | | | | | | generate dirty bufs even with a locked vnode, 100 retries is not that many. This should probably change from a retry count to an abort when we are no longer cleaning any buffers. - Don't call vprint() while we still hold the vnode locked. Move the call to later in the function. - Clean up a comment. Notes: svn path=/head/; revision=144584
* Remove GIANT_REQUIRED from elfN_load_section().Alan Cox2005-04-031-2/+0
| | | | Notes: svn path=/head/; revision=144577
* Don't init ifp->if_addrhead, if_attach() does it for us.Brooks Davis2005-04-031-1/+0
| | | | Notes: svn path=/head/; revision=144566
* Fix buidling of boot blocks for pc98 with new links.Warner Losh2005-04-031-3/+11
| | | | | | | Submitted by: nyan@ Notes: svn path=/head/; revision=144563
* Don't forget to create new-style links for module builds.Warner Losh2005-04-031-1/+6
| | | | | | | | Forgotten by: imp@ Reminded by: nyan@ Notes: svn path=/head/; revision=144562
* Now that we have proper links, no need to fake up ones as part ofWarner Losh2005-04-032-4/+0
| | | | | | | | | | depend. Now that we no longer need this hack, remove it. Forgotten by: imp Reminded by: nyan Notes: svn path=/head/; revision=144560
* fix size_to_binSam Leffler2005-04-021-1/+1
| | | | | | | Obtained from: madwifi Notes: svn path=/head/; revision=144547
* nuke unintentional use of HAL_BOOL typeSam Leffler2005-04-024-8/+8
| | | | Notes: svn path=/head/; revision=144546
* Replace the current strspn() and strcspn() with significantly fasterDavid Schultz2005-04-021-24/+40
| | | | | | | | | | | | implementations inspired by the ones in DragonFly. Unlike the DragonFly versions, these have a small data cache footprint, and my tests show that they're never slower than the old code except when the charset or the span is 0 or 1 characters. This implementation is generally faster than DragonFly until either the charset or the span gets in the ballpark of 32 to 64 characters. Notes: svn path=/head/; revision=144545
* The file machine/ieeefp.h needs sys/cdefs.h on amd64 and i386 after myAlexander Leidinger2005-04-022-0/+2
| | | | | | | | | | | | | | | | compiler features tests. This is ok, since machine/ieeefp.h is an internal interface. But floatingpoint.h is a public interface and some ports use it, so include sys/cdefs.h in the amd64 and i386 version of floatingpoint.h. Note: some architectures don't provide recursive inclusion protection in floatingpoint.h, namely alpha and ia64. Except for this part and now the include of sys/cdefs.h, all those files are equal (from a compiler POV), so they could be moved to only one version in src/include/. Approved by: joerg Notes: svn path=/head/; revision=144544
* This header is supposed to declare pid_t, size_t, and time_t.David Schultz2005-04-021-0/+17
| | | | Notes: svn path=/head/; revision=144532
* Namespace issues.David Schultz2005-04-021-12/+21
| | | | Notes: svn path=/head/; revision=144531
* Add some missing errnos from POSIX. Nothing in FreeBSD generatesDavid Schultz2005-04-021-1/+7
| | | | | | | | | | | | | these at the moment, but applications that test for them will now have a better chance of compiling. I have intentionally omitted errnos that are only good for STREAMS, since apps that use STREAMS won't compile anyway. The exception is EPROTO, which was apparently intended for STREAMS, but worth having anyway because Linux (mis)uses it for other things. Notes: svn path=/head/; revision=144530
* Define CLOCK_* and TIMER_* in time.h, where they are supposed to be.David Schultz2005-04-021-4/+3
| | | | Notes: svn path=/head/; revision=144529
* nVidia AGP chipsets beyond nForce2 are AMD64-specific.David E. O'Brien2005-04-024-2/+6
| | | | | | | | | So move the AGP support to there. Submitted by: Jung-uk Kim <jkim@niksun.com> Notes: svn path=/head/; revision=144517
* Add reach-over include files to read i386/foo.h. In time, the pc98Warner Losh2005-04-0191-0/+546
| | | | | | | | | | | | | | | specific code will migrate to these files to augment or replace the version in i386/include and/or i386/linux. This should, in the fullness of time, allow many of the #ifdef PC98 in the tree. # These files are in the public domain because there is insufficient # creative content in them. When you customize them, please add a # copyright notice and license. OK'd in principle by: nyan@ Notes: svn path=/head/; revision=144513
* Add i386 to machine linesWarner Losh2005-04-012-2/+2
| | | | Notes: svn path=/head/; revision=144512
* fix misspelling of 0x30...John-Mark Gurney2005-04-011-1/+1
| | | | | | | Spotted by: reviewing MFC commit Notes: svn path=/head/; revision=144511
* Update version number for latest config version bumpWarner Losh2005-04-018-8/+8
| | | | Notes: svn path=/head/; revision=144510
* Make life easier on those trying to use the asr utilities by automaticallyScott Long2005-04-011-0/+1
| | | | | | | | | creating the /dev/dpti%d entry that the software expects. This is just a band-aid until either someone (hopefully) rewrites the utilities, or all asr/dpt cards in existance get blasted into the sun. Notes: svn path=/head/; revision=144505
* - Change the vm_mmap() function to accept an objtype_t parameter specifyingJohn Baldwin2005-04-0112-33/+104
| | | | | | | | | | | | | | | the type of object represented by the handle argument. - Allow vm_mmap() to map device memory via cdev objects in addition to vnodes and anonymous memory. Note that mmaping a cdev directly does not currently perform any MAC checks like mapping a vnode does. - Unbreak the DRM getbufs ioctl by having it call vm_mmap() directly on the cdev the ioctl is acting on rather than trying to find a suitable vnode to map from. Reviewed by: alc, arch@ Notes: svn path=/head/; revision=144501
* FIx a botch with the addition of the arcmsr driver.Scott Long2005-04-011-1/+1
| | | | Notes: svn path=/head/; revision=144500
* Don't build arcmsr on pc98. The card either won't fit/work in theWarner Losh2005-04-011-1/+1
| | | | | | | | | | pc98 machines because (a) it is PCIe or PCI-X (b) there's a BIOS that must run at boot which assumes IBM-AT compatible boot environment. Noticed by: scottl Notes: svn path=/head/; revision=144497
* Fix another KeInitializeDpc()/amd64 calling convention issue:Bill Paul2005-04-011-1/+2
| | | | | | | ndis_intrhand() has to be wrapped for the same reason as ndis_timercall(). Notes: svn path=/head/; revision=144495
* move the statement about switching power states to just before we do it, soJohn-Mark Gurney2005-04-011-5/+7
| | | | | | | | we don't print a false statement if the destination powerstate is unsupported... Notes: svn path=/head/; revision=144492
* MFi386 (1.610): let TUNABLE_ULONG_FETCH handle the suffix.Dag-Erling Smørgrav2005-04-011-33/+3
| | | | Notes: svn path=/head/; revision=144468
* arcmsr_make_timespec, and arcmsr_getcmos_time appear to be unused, andWarner Losh2005-04-011-0/+4
| | | | | | | | | reference functions that don't exist on at least pc98. #if 0 them out. This should fix the pc98 tinderbox breakage. Tested only on i386 and pc98. Notes: svn path=/head/; revision=144463
* Introduce channel-level setmode newbus method.Peter Grehan2005-04-013-0/+38
| | | | | | | Thanks to sos for the code re-org that allowed this. Notes: svn path=/head/; revision=144457
* Use kern_settimeofday() to avoid stackgap use.John Baldwin2005-03-311-11/+11
| | | | Notes: svn path=/head/; revision=144451
* - Use a custom version of copyinuio() to implement readv/writev usingJohn Baldwin2005-03-311-122/+83
| | | | | | | | kern_readv/writev. - Use kern_settimeofday() and kern_adjtime() rather than stackgapping it. Notes: svn path=/head/; revision=144450
* - Use a custom version of copyinuio() to implement readv/writev usingJohn Baldwin2005-03-311-88/+55
| | | | | | | | kern_readv/writev. - Use kern_sched_rr_get_interval() rather than the stackgap. Notes: svn path=/head/; revision=144449
* Use a custom version of copyinuio() to implement osf1_{read,write}v() viaJohn Baldwin2005-03-311-79/+56
| | | | | | | kern_{read,write}v(). Notes: svn path=/head/; revision=144448
* Actually commit the code for kern_sched_get_rr_interval().John Baldwin2005-03-312-26/+40
| | | | Notes: svn path=/head/; revision=144447
* Since the question keeps coming up, explain why the -mno-sse etc switchesPeter Wemm2005-03-311-2/+6
| | | | | | | are there and that it does not have an effect on user applications. Notes: svn path=/head/; revision=144446
* Implement kern_adjtime(), kern_readv(), kern_sched_rr_get_interval(),John Baldwin2005-03-314-47/+99
| | | | | | | | kern_settimeofday(), and kern_writev() to allow for further stackgap reduction in the compat ABIs. Notes: svn path=/head/; revision=144445
* Bring back the WITNESS_WARN() check to _STOPEVENT() as all the callers haveJohn Baldwin2005-03-311-0/+2
| | | | | | | been fixed for quite a while now. Notes: svn path=/head/; revision=144444