summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Slight cleanup - this is logically equivalent code but means one lesspeter2000-10-151-6/+6
| | | | use of the evil resource_locate() function.
* Move DELAY() from <machine/clock.h> to <sys/systm.h>phk2000-10-157-5/+5
|
* Clean up as in isa/* - resource_query_string() loop cosmetic tweaks.peter2000-10-153-9/+10
|
* Repeat after me: I will test *before* commit, not after.... *blush*peter2000-10-151-1/+1
|
* Fixed warnings.nyan2000-10-151-3/+1
|
* Untangle some resource matching loops that were getting on my nervespeter2000-10-156-36/+33
| | | | and seemed to be getting cut/pasted to places they shouldn't be.
* Make nfs PDIRUNLOCK aware. Now it is possible to use nullfs mounts on topbp2000-10-152-22/+62
| | | | | of nfs mounts, but there can be side effects because nfs uses shared locks for vnodes.
* Add missed vop_stdunlock() for fifo's vnops (this affects only v2 mounts).bp2000-10-154-0/+6
| | | | Give nfs's node lock its own name.
* While I'm here:bmilekic2000-10-151-1/+1
| | | | | Small change (remove tab in one of the MEXT* macros) - probably slipped through (accidently?) in dwmalone's KASSERT() addition (rev 1.58).
* Fix nullfs breakage caused by incomplete migration of v_interlock frombp2000-10-152-6/+10
| | | | | | simple_lock to mutex. Reset LK_INTERLOCK flag when interlock released manually.
* Add nmbcnt sysctl and make it tunable at boottime; nmbcnt is thebmilekic2000-10-151-1/+5
| | | | | | | | | | | | | number of ext_buf counters that are possibly allocatable. Do this because: (i) It will make it easier to influence EXT_COUNTERS for if_sk, if_ti (or similar) users where the driver allocates its own ext_bufs and where it is important for the mbuf system to take it into account when reserving necessary space for counters. (ii) Facilitate some percentile calculation for netstat(1)
* Fixed warnings.nyan2000-10-1514-51/+70
|
* Merged from sys/boot/i386/loader/main.c revision 1.21.nyan2000-10-151-10/+0
|
* Redefine __word_swap_long, __byte_swap_long and __byte_swap_wordbrian2000-10-151-34/+31
| | | | | | | | as inline functions, renaming them to __uint16_swap_uint32, __uint8_swap_uint32 and __uint8_swap_uint16. Doing it properly suggested by: msmith Reviewed by: msmith
* Change the text for the ServerWorks north bridge chips. RCC is nowalc2000-10-142-8/+8
| | | | officially listed as ServerWorks by www.pcisig.com.
* Recognize the ServerWorks IB6566 south bridge.alc2000-10-141-0/+4
|
* Remove the HPFPLIB copyright which we have never used.phk2000-10-141-10/+1
|
* Remove even more unneeded #includes.phk2000-10-1413-280/+0
|
* Remove even more nneeded #includes.phk2000-10-149-188/+0
|
* After some complaints about the dir names, the random device ismarkm2000-10-1415-1110/+147
| | | | | | | | | | | | | | | | | | | | now in dirs called sys/*/random/ instead of sys/*/randomdev/*. Introduce blocking, but only at startup; the random device will block until the first reseed happens to prevent clients from using untrustworthy output. Provide a read_random() call for the rest of the kernel so that the entropy device does not need to be present. This means that things like IPX no longer need to have "device random" hardcoded into thir kernel config. The downside is that read_random() will provide very poor output until the entropy device is loaded and reseeded. It is recommended that developers do NOT use the read_random() call; instead, they should use arc4random() which internally uses read_random(). Clean up the mutex and locking code a bit; this makes it possible to unload the module again.
* Duh! LINT is called NOTES these days.phk2000-10-143-0/+9
| | | | Make sure LINT checks profiling code as well.
* Fix compilation of profiled kernels by including <machine/lock.h>phk2000-10-141-0/+1
|
* Make it possible to specify profiling in the kernel config file.phk2000-10-145-5/+5
| | | | Do so for LINT.
* Remove the signal value check from the PT_STEP codepath. Itjwd2000-10-141-1/+1
| | | | | | | can cause an bogus failure. Reviewed by: Sean Eric Fagan <sef@kithrup.com> and no other response to the review request.
* Initial commit of IFS - a inode-namespaced FFS. Here is a shortadrian2000-10-1413-7/+1345
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | description: How it works: -- Basically ifs is a copy of ffs, overriding some vfs/vnops. (Yes, hack.) I didn't see the need in duplicating all of sys/ufs/ffs to get this off the ground. File creation is done through a special file - 'newfile' . When newfile is called, the system allocates and returns an inode. Note that newfile is done in a cloning fashion: fd = open("newfile", O_CREAT|O_RDWR, 0644); fstat(fd, &st); printf("new file is %d\n", (int)st.st_ino); Once you have created a file, you can open() and unlink() it by its returned inode number retrieved from the stat call, ie: fd = open("5", O_RDWR); The creation permissions depend entirely if you have write access to the root directory of the filesystem. To get the list of currently allocated inodes, VOP_READDIR has been added which returns a directory listing of those currently allocated. -- What this entails: * patching conf/files and conf/options to include IFS as a new compile option (and since ifs depends upon FFS, include the FFS routines) * An entry in i386/conf/NOTES indicating IFS exists and where to go for an explanation * Unstaticize a couple of routines in src/sys/ufs/ffs/ which the IFS routines require (ffs_mount() and ffs_reload()) * a new bunch of routines in src/sys/ufs/ifs/ which implement the IFS routines. IFS replaces some of the vfsops, and a handful of vnops - most notably are VFS_VGET(), VOP_LOOKUP(), VOP_UNLINK() and VOP_READDIR(). Any other directory operation is marked as invalid. What this results in: * an IFS partition's create permissions are controlled by the perm/ownership of the root mount point, just like a normal directory * Each inode has perm and ownership too * IFS does *NOT* mean an FFS partition can be opened per inode. This is a completely seperate filesystem here * Softupdates doesn't work with IFS, and really I don't think it needs it. Besides, fsck's are FAST. (Try it :-) * Inodes 0 and 1 aren't allocatable because they are special (dump/swap IIRC). Inode 2 isn't allocatable since UFS/FFS locks all inodes in the system against this particular inode, and unravelling THAT code isn't trivial. Therefore, useful inodes start at 3. Enjoy, and feedback is definitely appreciated!
* Whoops, add the 'twe' files.msmith2000-10-141-0/+2
| | | | Submitted by: Chris Faulhaber <jedgar@fxp.org>
* Clean up a few things in dc_setcfg() pointed out to be me bywpaul2000-10-142-8/+18
| | | | aaron@openbsd.com on IRC earlier today.
* Look at both the vendor and subvendor information when determiningjlemon2000-10-131-32/+25
| | | | | | | whether this is a Smart Array. This fixes a problem where the driver would incorrectly match a Dell RAID device. Reviewed by: msmith
* Remember to assign an_dev to device_t before calling an_attach().wpaul2000-10-133-0/+13
|
* savectx() is now used exclusively by the crash dump system. Move thepeter2000-10-134-3/+9
| | | | | i386 specific gunk (copy %cr3 to the pcb) from the MI dumpsys() to the MD savectx().
* Convert the Aironet driver to use mutexes instead of spls.wpaul2000-10-134-28/+59
|
* Do not allocate a callout for all crashdumps, not just when you panic.ps2000-10-133-2/+4
|
* Update the wi driver to use mutexes instead of spls.wpaul2000-10-134-36/+86
|
* Add #include <machine/mutex.h> since these files need it and don'twpaul2000-10-134-0/+4
| | | | | include anything else that includes mutex.h. Needed to resolve struct mtx from struct dc_softc.
* Make mutex name reflect device driver name.cp2000-10-132-2/+4
| | | | | Destroy mutex when detaching the device. Submitted by: John Baldwin <jhb@FreeBSD.ORG>
* Use device_get_nameunit(dev) as the mutex string when callingwpaul2000-10-1318-49/+70
| | | | | mtx_init() instead of hard-coded string constant. Also remember to do the mutex changes to the ste driver, which I forgot in the first commit.
* First round of converting network drivers from spls to mutexes. Thiswpaul2000-10-1332-399/+788
| | | | | | | | takes care of all the 10/100 and gigE PCI drivers that I've done. Next will be the wireless drivers, then the USB ones. I may pick up some stragglers along the way. I'm sort of playing this by ear: if anyone spots any places where I've screwed up horribly, please let me know.
* o Simplify capability types away from an array of ints to a singlerwatson2000-10-132-72/+87
| | | | | | | | | | | | | | | | | | u_int64_t flag field, bounding the number of capabilities at 64, but substantially cleaning up capability logic (there are currently 43 defined capabilities). o Heads up to anyone actually using capabilities: the constant assignments for various capabilities have been redone, so any persistent binary capability stores (i.e., '$posix1e.cap' EA backing files) must be recreated. If you have one of these, you'll know about it, so if you have no idea what this means, don't worry. o Update libposix1e to reflect this new definition, fixing the exposed functions that directly manipulate the flags fields. Obtained from: TrustedBSD Project
* The swap bitmap allocator was not calculating the bitmap size properlydillon2000-10-133-10/+21
| | | | | | | | | | | | | | | in the face of non-stripe-aligned swap areas. The bug could cause a panic during boot. Refuse to configure a swap area that is too large (67 GB or so) Properly document the power-of-2 requirement for SWB_NPAGES. The patch is slightly different then the one Tor enclosed in the P.R., but accomplishes the same thing. PR: kern/20273 Submitted by: Tor.Egge@fast.no
* Add ata-raid.c to the ata driversos2000-10-131-0/+1
|
* Submitted by: phkhm2000-10-1367-275/+13
| | | | Remove not needed includes.
* Fixed namespace pollution in rev.1.78. Don't export <sys/stat.h> tobde2000-10-131-10/+5
| | | | | | | | | | userland from here; just forward declare struct stat. fhstat.2 (== fhopen.2 == fhstatfs.2) has always specified including <sys/stat.h> before using any of the fh functions although this is only necessary for dereferencing the "struct stat *" arg of fhstat(), so applications should not notice this change. Fixed unsorting of user prototypes in rev.1.78.
* Avoid impending world breakage.bde2000-10-131-9/+2
| | | | | | | | | | | | 1. Don't include <sys/conf.h> in userland. It is not used, and including it without including its prerequisite <sys/time.h> should have broken the world. 2. Don't include <sys/mount.h>. It is not used, except in -current it bogusly includes <sys/stat.h> which bogusly includes <sys/time.h> and thus accidentally provides the prerequisite in (1). 3. Cleaned up nearby include messes. Not approved by despite 5 weeks notice: MAINTAINER
* Add support for ATA "pseudo" RAID controllers as the Promise Fasttraksos2000-10-134-14/+768
| | | | | | | and HighPoint HPT370 controllers. Use by defining the RAID in the BIOS and the "ar driver will pick it up automagically...
* Add the ar ATA pseudo RAID driversos2000-10-131-0/+1
|
* Fix ISA only systems.sos2000-10-132-6/+16
|
* Get rid of the ivars entirely.sos2000-10-133-46/+60
|
* Only allow UDMA2 mode on SiS rev > 0xc1sos2000-10-131-8/+7
| | | | Minor cosmetics
* This is the first of 3 commits that will get IBM's JDK 1.3 workinggallatin2000-10-132-10/+47
| | | | | | | | | | | | | | | | | | | | | | | with FreeBSD (not including the MINSIGSTKSZ issue, which belongs to Marcel). Due to time constraints, I'm going to space them out over a few days. This fixes two problems with linux_sigaltstack() o ss == 0 is perfectly valid use, so do not fail in this case. o Fix flag handling: - Our SS_DISABLE is 4, linux's is 2, so we need conversion routines. These conversion routines will be needed by linux_rt_sendsig() and linux_rt_sigreturn (forthcoming), so they are not static. - Linux's flag 0 historically meant SS_ONSTACK according to a comment in their linux/kernel/signal.c file. Among other things, this fixes a warning from Sun's JDK 1.3: "Java HotSpot(TM) Client VM warning: cannot uninstall alt signal stack" Reviewed by: marcel Tested by: sto@stat.duke.edu, many others on freebsd-java@
* Make changes required by change in how default and usable node and portmjacob2000-10-121-15/+3
| | | | WWNS are made and used.
OpenPOWER on IntegriCloud