summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fixed printf format errors in previous commit. %llu is no more suitablebde2002-03-181-2/+3
| | | | | | | | than %u for printing signed 64-bit types. It fails on different machines, and has the wrong signdness. Fixed old printf format error on the same line. %u is not suitable for printing 32-bit types on all machines.
* Formats that print the block number need to be changed from %u toimp2002-03-182-4/+4
| | | | %llu due to recent changes in bio_pblkno's type.
* have the SYSCALL_MODULES macro provide an initializer for the 'old_sysent'alfred2002-03-181-1/+1
| | | | to avoid pedandic warnings.
* Add a USB comm driver.joe2002-03-1812-0/+3071
| | | | Ported from NetBSD by: akiyama
* Back out the modification of vm_map locks from lockmgr to sx locks. Thegreen2002-03-186-104/+89
| | | | | | | | | | best path forward now is likely to change the lockmgr locks to simple sleep mutexes, then see if any extra contention it generates is greater than removed overhead of managing local locking state information, cost of extra calls into lockmgr, etc. Additionally, making the vm_map lock a mutex and respecting it properly will put us much closer to not needing Giant magic in vm.
* Cleanup the chipset setup a bit.sos2002-03-181-6/+12
| | | | Add some (for all I know unneeded) setup code for the rosb4.
* Unbreak the build of smbfs.ko.mux2002-03-181-0/+6
| | | | Reviewed by: sheldonh
* Add support for the ServerWorks CSB5 chipssos2002-03-182-5/+60
|
* Remove a couple of stray linuxisms to make this work for FreeBSD/ia64.dfr2002-03-181-6/+2
|
* lint the previous lint commit.ru2002-03-182-2/+2
| | | | Reviewed by: markm
* Fix spelling.dfr2002-03-181-1/+1
|
* Eliminate grow_stack() from (o)sendsig(). If the stack needs to grow,alc2002-03-182-20/+8
| | | | | | | copyout() will page fault and perform grow_stack() from trap_pfault(). These calls to grow_stack() accomplish nothing. Reviewed by: bde
* - Lock down the ``module'' structure by adding an SX lock that is used byarr2002-03-184-26/+80
| | | | | | | | | all the global bits of ``module'' data. This commit adds a few generic macros, MOD_SLOCK, MOD_XLOCK, etc., that are meant to be used as ways of accessing the SX lock. It is also the first step in helping to lock down the kernel linker and module systems. Reviewed by: jhb, jake, smp@
* Cannot release vnode underlying the nullfs vnode in null_inactivemckusick2002-03-181-19/+26
| | | | | | | | | | as it leaves the nullfs vnode allocated, but with no identity. The effect is that a null mount can slowly accumulate all the vnodes in the system, reclaiming them only when it is unmounted. Thus the null_inactive state instead accelerates the release of the null vnode by calling vrecycle which will in turn call the null_reclaim operator. The null_reclaim routine then does the freeing actions previosuly (incorrectly) done in null_inactive.
* Add hooks for very basic IPFilter support in bridging. Set,cjc2002-03-181-5/+42
| | | | | | | | | | | | | # sysctl net.link.ether.bdg_ipf=1 To enable. Just like ipfw(8) bridging, only input packets are filtered in the bridge. Filtering works just like in the IP layer, ipf(8) first, then ipfw(8). And just like in the IP layer, both are independent, one need not be run to use the other. (Note: This will not work in, but doesn't break, the bridge.ko module. The ipl.ko module would need to be fixed before that is worth worrying about.) Reviewed by: luigi
* Changes and fixes in preparation for UMA:benno2002-03-173-36/+87
| | | | | | - Bootstrap pvo entries are now allocated by stealing pages. - Just return if we're pmap_enter'ing a mapping that's already there. Don't remove it and re-enter it.
* Lowercase all of the trap names.benno2002-03-172-96/+96
|
* Clean up and fix up copyin and copyout.benno2002-03-172-28/+40
|
* s/options\t\t/options \t/des2002-03-172-2/+2
|
* Spelling: s/guesst/guessed/cjc2002-03-172-2/+2
|
* Need a different #include for the userland regression test.phk2002-03-171-1/+1
|
* Make this compile in the userland-regression testsuite again.phk2002-03-171-13/+3
|
* Remove vm_object_count: It's unused, incorrectly maintained and duplicatesalc2002-03-171-4/+1
| | | | information maintained by the zone allocator.
* Add splitfs vfs layer into libstand, which allows loading big kernels andsobomax2002-03-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | modules split across several physical medias. Following is how it works: The splitfs code, when asked to open "foo" looks for a file "foo.split" which is a text file containing a list of filenames and media names, e.g. foo.aa "Kernel floppy 1" foo.ab "Kernel floppy 2" foo.ac "Kernel and modules floppy" For each file segment, the process is: - try to open the file - prompt "Insert the disk labelled <whatever> and press any key..." - try to open the file - return error if file could not be located RE team is free to use this feature in the upcoming 5.0-DP1. Reviewed by: msmith, dcs
* Allow "make lint" to mostly work. Our sources are very unclean WRTmarkm2002-03-172-0/+6
| | | | | | | lint, so this is turned off by default. Setting WANT_LINT will turn on generation of lint libraries for /usr/libdata/lint/*.ln. Reviewd by: silence in -audit.
* Clean up the i4b kernel part: remove unmaintained #if(def)s for NetBSD,hm2002-03-1754-1774/+229
| | | | | OpenBSD and BSD/OS and respective code, remove pre $FreeBSD CVS id's, remove #if(def)s and respective code for FreeBSD versions < 5 .
* Change the giant-dropping method a fair bit to keep WITNESS morephk2002-03-171-8/+6
| | | | happy.
* Undo part of revision 1.57: Now that (o)sendsig() doesn't call useracc(),alc2002-03-171-13/+3
| | | | | | | | the motivation for saving and restoring the map->hint in useracc() is gone. (The same tests that motivated this change in revision 1.57 now show that there is no performance loss from removing it.) This was really a hack and some day we would have had to add new synchronization here on map->hint to maintain it.
* Forgot to remove the old g_malloc() call when I split it.phk2002-03-171-2/+0
| | | | Spotted by: dima
* Regen for 1.28 of pccarddevsimp2002-03-171-1/+7
|
* Add support for the home Wireless Network airway wireless pcmcia card.imp2002-03-171-0/+4
| | | | | I cannot find where I got these patches, but I think it was from the bsd-nomads mailing list. Please contact me if you posted them there.
* o Stop calling useracc() in (o)sendsig() now that we use copyout()alc2002-03-172-120/+46
| | | | | | | | to copy the sigframe to the user's stack. Useracc() takes a non-trivial amount of time. Eliminating it speeds up signal delivery by 15% or more. o Update some comments. Submitted by: bde
* Work around a PLX9050 bug that causes system lockup in certain systems,bde2002-03-172-6/+8
| | | | | | | | | depending on the MMIO addresses allocated to the board. PR: 30965, 20845 (maybe) Submitted by: Daniela Squassoni <daniela@cyclades.com> Tested by: Arjan Knepper <arjan@jak.nl> Scott Klement <klemscot@klements.com>
* Acquire a read lock on the map inside of vm_map_check_protection() ratheralc2002-03-172-4/+7
| | | | | than expecting the caller to do so. This (1) eliminates duplicated code in kernacc() and useracc() and (2) fixes missing synchronization in munmap().
* Don't demap the requested page from the tlb in pmap_kenter or pmap_kremove,jake2002-03-171-5/+0
| | | | | even on the local cpu. These are no longer used unsafely in MI code, and the MD code has been adjusted to compensate.
* Fix a problem where kernel text could become unmapped when clearing out alljake2002-03-171-8/+9
| | | | | | | | | | | the user mappings from the tlb due to the context numbers rolling over. The store to the internal mmu register must be followed by a membar #Sync before much else happens to "avoid data corruption", so we use special inlines which both disable interrupts and ensure that the compiler will not insert extra instructions between the two. Also, load the tte tag and check if the context is nucleus context, rather than relying on the priviledged bit which doesn't actually serve any purpose in our design, and check the lock bit too for sanity.
* Use the tlb data access register to map the kernel tsb, rather than the datajake2002-03-171-1/+1
| | | | | in register. The latter uses the random replacment algorithm to pick the slot, we want a specific slot.
* Add a flags parameter to VFS_VGET to pass through the desiredmckusick2002-03-1748-191/+308
| | | | | | | | | | | | locking flags when acquiring a vnode. The immediate purpose is to allow polling lock requests (LK_NOWAIT) needed by soft updates to avoid deadlock when enlisting other processes to help with the background cleanup. For the future it will allow the use of shared locks for read access to vnodes. This change touches a lot of files as it affects most filesystems within the system. It has been well tested on FFS, loopback, and CD-ROM filesystems. only lightly on the others, so if you find a problem there, please let me (mckusick@mckusick.com) know.
* Convert all pmap_kenter/pmap_kremove pairs in MI code to use pmap_qenter/jake2002-03-175-9/+10
| | | | | | | | | | | | | | | pmap_qremove. pmap_kenter is not safe to use in MI code because it is not guaranteed to flush the mapping from the tlb on all cpus. If the process in question is preempted and migrates cpus between the call to pmap_kenter and pmap_kremove, the original cpu will be left with stale mappings in its tlb. This is currently not a problem for i386 because we do not use PG_G on SMP, and thus all mappings are flushed from the tlb on context switches, not just user mappings. This is not the case on all architectures, and if PG_G is to be used with SMP on i386 it will be a problem. This was committed by peter earlier as part of his fine grained tlb shootdown work for i386, which was backed out for other reasons. Reviewed by: peter
* Extend CONS_GETINFO ioctl to provide information about size of the currentlysobomax2002-03-162-0/+2
| | | | | | displayed font. MFC after: 2 weeks
* Don't call the bios if the interrupt appaers to be already routed. Someimp2002-03-163-9/+9
| | | | | | older PCI BIOSes hate this and this leads to panics when it is done. Also, assume that a uniquely routed interrupt is already routed. This also seems to help some older laptops with feable BIOSes cope.
* o Rework the identify routine a little, merging it with NetBSD's wi.imp2002-03-163-50/+45
| | | | | | | | | | | | | | | | | o Add exerpimental support for identifying lucent cards. All of mine come back with ID of 1, but NetBSD committed code for 5. So accept both. o rename wi_prism2_ver to wi_firmware_ver so that we could, if necessary, do special things for lucent cards too. o Bring in a small part of the changes from airtools: The wi_cmd function now takes two additional arguments. I didn't bring in their ioctls yet. o eliminate the use of LE16TOH, and remove its define. o Print the firmware as if there were 100 versions instead of 10. This means that 6.1 and 6.10 aren't confusing to people. We now print 6.01 in the former case. # A good junior hacker project would be to merge the NetBSD, FreeBSD, and # OpenBSD drivers into one source base.
* Bump the FreeBSD version to mark the import of Perl 5.6.1.markm2002-03-161-1/+1
|
* Add more functionality to the CDIOCREADSUBCHANNEL ioctl.sos2002-03-162-36/+30
| | | | PR: 26644
* Fix 64bit arch problems.sos2002-03-162-5/+6
|
* Remove useless splXXX set.sos2002-03-161-3/+0
|
* Hmm, talk about optimizer-fodder. Make the DIOCGDVIRGIN hack work again.phk2002-03-161-6/+4
|
* Fixed some style bugs:bde2002-03-161-9/+5
| | | | | | - 2 redundant forward declarations of "struct thread" - missing function parameter names in prototypes - misformatting
* Merge from NetBSD:joe2002-03-164-11/+26
| | | | | | | | | | | | | | | | | ohcivar.h (1.22), uhcivar.h (1.29): ============================================================ date: 2000/04/25 09:20:55; author: augustss; Move the size of the mapped bus_space region into the bus independent softc. ============================================================ ohci.c (1.88), uhci.c (1.112): ============================================================ date: 2000/04/25 14:28:13; author: augustss; Insert (very conservative!) bus_space_barrier() calls at all register accesses. The bus_space(9) man page says you've gotta have them... ============================================================
* Bump some $NetBSD$ idents for patches that have already been previouslyjoe2002-03-162-2/+2
| | | | ported.
OpenPOWER on IntegriCloud