aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update documentation for kldload(8)'s ability to load multiple modules.Juli Mallett2002-10-092-4/+6
| | | | | | | Submitted by: Daniel O'Connor <doconnor@gsoft.com.au> Notes: svn path=/head/; revision=104699
* When creating a snapshot, create a list of initially allocated blocks.Kirk McKusick2002-10-091-7/+135
| | | | | | | | | | | | | | | Whenever doing a copy-on-write check, first look in the list of initially allocated blocks to see if it is there. If so, no further check is needed. If not, fall through and do the full check. This change eliminates one of two known deadlocks caused by snapshots. Handling the second deadlock will be the subject of another check-in. This change also reduces the cost of the copy-on-write check by speeding up the verification of frequently checked blocks. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104698
* The appropriate units for disk block addresses are always DEV_BSIZE,Kirk McKusick2002-10-091-8/+1
| | | | | | | | | | | | | | | even when the underlying device has a larger sector size. Therefore, the filesystem code should not (and with this patch does not) try to use the underlying sector size when doing disk block address calculations. This patch fixes problems in -current when using the swap-based memory-disk device (mdconfig -a -t swap ...). This bugfix is not relevant to -stable as -stable does not have the memory-disk device. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104697
* Convert make(1) to use ANSI style function declarations. VariableJuli Mallett2002-10-0915-771/+340
| | | | | | | | | | | | | | documentation already adequatedly existed in the description in most cases. Where it did not, it was added. If no documentation existed beforehand, then none was added. Some unused dummies for use in the traversal functions were marked as __unused during the conversion. Occasionally, local style fixes were applied to lines already being modified or influenced. Now make(1) should always build with WARNS=3. Notes: svn path=/head/; revision=104696
* Round out the facilty for a 'bound' thread to loan out its KSEJulian Elischer2002-10-0915-513/+769
| | | | | | | | | | | | | | | | | | | | | | | | | | | in specific situations. The owner thread must be blocked, and the borrower can not proceed back to user space with the borrowed KSE. The borrower will return the KSE on the next context switch where teh owner wants it back. This removes a lot of possible race conditions and deadlocks. It is consceivable that the borrower should inherit the priority of the owner too. that's another discussion and would be simple to do. Also, as part of this, the "preallocatd spare thread" is attached to the thread doing a syscall rather than the KSE. This removes the need to lock the scheduler when we want to access it, as it's now "at hand". DDB now shows a lot mor info for threaded proceses though it may need some optimisation to squeeze it all back into 80 chars again. (possible JKH project) Upcalls are now "bound" threads, but "KSE Lending" now means that other completing syscalls can be completed using that KSE before the upcall finally makes it back to the UTS. (getting threads OUT OF THE KERNEL is one of the highest priorities in the KSE system.) The upcall when it happens will present all the completed syscalls to the KSE for selection. Notes: svn path=/head/; revision=104695
* Use __FBSDID in the lst.lib files, to match to main make(1) files. It isJuli Mallett2002-10-0926-26/+26
| | | | | | | | defined to __RCSID when bootstrapping, by the Makefile, but this change is for consistency Notes: svn path=/head/; revision=104694
* Remove extern declarations from functions and source files where they wouldJuli Mallett2002-10-094-3/+4
| | | | | | | happily fit into headers. Notes: svn path=/head/; revision=104693
* Remove unused local-locals, where upper-level locals may safely be used.Juli Mallett2002-10-091-8/+8
| | | | Notes: svn path=/head/; revision=104692
* As back-out requests must be followed, back out the removal of wargames(6)Juli Mallett2002-10-094-0/+106
| | | | | | | at mike@'s request. Notes: svn path=/head/; revision=104691
* Add note that there is a kernel-imposed limit on the number of threadsArchie Cobbs2002-10-081-0/+7
| | | | | | | in a KSE group that may be simultaneously blocked in the kernel. Notes: svn path=/head/; revision=104690
* Reference the correct local variable in all parts of a for loop, so weJuli Mallett2002-10-081-1/+1
| | | | | | | | | operate on the correct data (properly). Tracked down by: Dan Nelson Notes: svn path=/head/; revision=104689
* - Remove LK_INTERLOCK from the vn_lock() in ffs_snapshot().Jeff Roberson2002-10-081-1/+1
| | | | | | | | Pointy hat to: me Found by: green Notes: svn path=/head/; revision=104688
* Remove the wargames(6) novelty [and not the fun kind]:Juli Mallett2002-10-084-106/+0
| | | | | | | | | | | | | | | | | | | 1) It never was very funny. 2) It was a N line shell script where N is less than X, where X is the number of lines of the Berkeley copyright and license. 3) I rewrote it in C with the intention of making it more interactive, ala the movie, but never did. 4) Because it really is possible for at least some parts of a distribution to shrink between releases. X-No-MFC: This game will remain in RELENG_4 and previous. X-Bikesheds-To: markm@ Approved by: The #bsdcode cabal. Obtained from: Professor Falken Notes: svn path=/head/; revision=104687
* We're missing none of these games, they just aren't here.Juli Mallett2002-10-081-1/+0
| | | | Notes: svn path=/head/; revision=104686
* Spell 'Temperature' correctly.John Baldwin2002-10-081-1/+1
| | | | Notes: svn path=/head/; revision=104685
* Fix for the panic when using a Promise TX2.Søren Schmidt2002-10-081-16/+23
| | | | | | | | | | | | The problem is that the code does a check for the granparent of the Promise chip, if this is a bridge of the right type, we have a TX4 on our hands, and need to handle that ones "issues". Now the grandparent check cause subtle bugs in the newbus system, mainly that pci_get_devid doesn't return an error value. This patch works around the issue by using BUS_READ_IVAR() instead. Notes: svn path=/head/; revision=104684
* Revert MEM_USR back to 0xa000 for BTX clients. Instead, adjust boot2John Baldwin2002-10-088-18/+18
| | | | | | | | | | to run at 0xc000 by changing its virtual start address from 0x1000 to 0x2000. Tested by: phk Notes: svn path=/head/; revision=104683
* Add MLINKS to kse.2.Archie Cobbs2002-10-081-0/+2
| | | | Notes: svn path=/head/; revision=104682
* Fix the location of the length bytes in the 12-byte read/write CDBKenneth D. Merry2002-10-081-1/+1
| | | | | | | | | | | | structure. This has been broken since 1998, but probably hasn't been noticed because it takes a read/write of 64K blocks (32MB with 512 byte blocks) to trigger using the 12 byte read/write CDB in scsi_read_write(). Submitted by: "Moore, Eric Dean" <emoore@lsil.com> MFC after: 3 days Notes: svn path=/head/; revision=104681
* Now that ufsread.c doesn't do 64bit divide remainder operations,Poul-Henning Kamp2002-10-082-30/+4
| | | | | | | | | don't bother with libkern. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104680
* Save a couple of bytes by not returning ints nobody care about.Poul-Henning Kamp2002-10-082-12/+12
| | | | | | | Sponsored by: DARPA & NAI labs Notes: svn path=/head/; revision=104679
* It seems that the only problem with UFS2 booting on i386 is the 64bitPoul-Henning Kamp2002-10-081-10/+12
| | | | | | | | | | | | divide/remainder calls. For reasons not resolved, compiling the relevant routines from libkern into boot2 results in stack corruption. Do the simple thing: Don't use 64bit divide/remainder operations. Sponsored by: DARPA & NAI Labs Notes: svn path=/head/; revision=104678
* Don't panic for a bad ivar request, just return ENOENT.John Baldwin2002-10-081-1/+0
| | | | Notes: svn path=/head/; revision=104677
* MFi386: revision 1.67.Yoshihiro Takahashi2002-10-081-1/+1
| | | | Notes: svn path=/head/; revision=104676
* MFi386: revisions 1.539, 1.540 and 1.541.Yoshihiro Takahashi2002-10-082-24/+40
| | | | Notes: svn path=/head/; revision=104675
* Fix to support pc98.Yoshihiro Takahashi2002-10-085-0/+20
| | | | Notes: svn path=/head/; revision=104674
* Reinstate rev 1.36 with an important line that got missed. Note thisBrian Feldman2002-10-082-4/+10
| | | | | | | | also improves the "random undocumented offsets into various memory spaces" a little bit. Notes: svn path=/head/; revision=104673
* Do not strip CTL* escapes from redirection filenames in argstr(); theyTim J. Robbins2002-10-081-1/+1
| | | | | | | | | | | are later stripped with rmescapes() in expandarg(). If the filename has already been unescaped, doing it again in rmescapes() can walk off the end of the string, leading to memory corruption and eventually SIGSEGV. Noticed by: kris Notes: svn path=/head/; revision=104672
* Remove unused TYPE_WD and TYPE_WFD.Poul-Henning Kamp2002-10-082-4/+0
| | | | Notes: svn path=/head/; revision=104671
* Correctly calculate dmadat: We need to take the address of _end, it'sPoul-Henning Kamp2002-10-082-2/+2
| | | | | | | | | | contents is irrelevant and likely to be zero; This doesn't change the resultant value, but it does save a couple of bytes because &_end is constant. Notes: svn path=/head/; revision=104670
* Make it possible to kldload(8) many modules.Juli Mallett2002-10-081-9/+17
| | | | | | | | | MFC after: 2 months Sponsored by: Bright Path Solutions Reviewed by: tjr Notes: svn path=/head/; revision=104669
* Unbreak boot2 by backing out rev 1.36 to Makefile, which does notPoul-Henning Kamp2002-10-082-6/+2
| | | | | | | | | | | | | | | | | | | | | work as advertised: bang# pwd /bang/src/sys/boot/i386/boot2 bang# make clean >& /dev/null bang# cvs -q update -r 1.35 Makefile >& /dev/null bang# make >& /dev/null bang# cat /usr/obj/`pwd`/boot2.h #define XREADORG 0x725 bang# cvs -q update -r 1.36 Makefile > & /dev/null bang# make clean > & /dev/null bang# make > & /dev/null bang# cat /usr/obj/`pwd`/boot2.h #define XREADORG 0x25 bang# Notes: svn path=/head/; revision=104668
* Allow for multiple #includes of this file.Poul-Henning Kamp2002-10-081-0/+4
| | | | Notes: svn path=/head/; revision=104667
* Save four bytes by shortening a string two chars.Poul-Henning Kamp2002-10-082-4/+2
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104666
* For now, don't wait for drives to stop returning EBUSY. There is tooPoul-Henning Kamp2002-10-081-35/+26
| | | | | | | | | much broken harware around it seems. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104665
* FreeBSD 4.7 enters the BSD family tree sometime on October 8, 2002.Murray Stokely2002-10-081-3/+3
| | | | Notes: svn path=/head/; revision=104659
* Teach pkg_add -r how to find 4.7-RELEASE packages with an appropriateBruce A. Mah2002-10-081-0/+1
| | | | | | | | | | | osreldate. (Actually, due to differences in package compression formats, I'm not sure that a -CURRENT pkg_add -r will do the right thing in this case, once it finds them.) Notes: svn path=/head/; revision=104658
* We now use XFree86-4 packages rather than a special XFree86-3Murray Stokely2002-10-081-157/+0
| | | | | | | distribution, so this script is no longer needed. Notes: svn path=/head/; revision=104656
* Treat the pathptrn field as a real pattern with the aid of fnmatch().Dima Dorfman2002-10-082-18/+1
| | | | Notes: svn path=/head/; revision=104653
* Import the libc fnmatch() into the kernel. This will be used by,Dima Dorfman2002-10-083-20/+23
| | | | | | | | | | | | | | among other things, the DEVFS rule subsystem to match nodes against a path pattern supplied by the user. fnmatch.c was repo-copied from src/lib/libc/gen/fnmatch.c, and the only changes to it are those necessary to make it compile in the kernel. The relevant parts of fnmatch.h were imported into libkern.h. Approved by: -arch Notes: svn path=/head/; revision=104652
* Make kldunload cbb work:Warner Losh2002-10-081-22/+17
| | | | | | | | | | | | o Implement the thread killing interlock as described by jhb in arch@ while talking to markm. o Hold Giant around cbb_insert()/cbb_remove(). Deep in the belly of the vm code we panic if we don't hold this when we activate the memory for reading the CIS. o If we had to do the kludge alloc, then do a kludge free. Notes: svn path=/head/; revision=104651
* Add device driver for Belkin F5U103 and compatible USB-to-serial adapters.Alexander Kabaev2002-10-084-0/+840
| | | | | | | | Reviewed by: n_hibma Approved by: obrien Notes: svn path=/head/; revision=104650
* Regen after usbdevs rev. 1.102.Alexander Kabaev2002-10-082-0/+30
| | | | | | | | Reviewed by: n_hibma Approved by: obrien Notes: svn path=/head/; revision=104649
* Add entries for:Alexander Kabaev2002-10-081-0/+6
| | | | | | | | | | | | | | Belkin F5U103 Belkin F5U120-PC Hub GoHubs GoCOM232 Peracom single port USB-to-serial adapters. Reviewed by: n_hibma Approved by: obrien Notes: svn path=/head/; revision=104648
* Re-add the code which maps POSIX standard library names into the onesTim J. Robbins2002-10-081-4/+49
| | | | | | | FreeBSD uses; f.e. -lpthread -> -pthread, -lxnet -> nothing. Notes: svn path=/head/; revision=104647
* Introducing /dev/devctl. This device reports events in theWarner Losh2002-10-071-2/+326
| | | | | | | | | | configuration device hierarchy. Device arrival, departure and not matched are presently reported. This will be the basis for devd, which I still need to polish a little more before I commit it. If you don't use /dev/devctl, it will be a noop. Notes: svn path=/head/; revision=104644
* Two minor bugfixes:Warner Losh2002-10-071-0/+3
| | | | | | | | | o Allow the bus_debug variable to be set via the bus.debug tunable. o Return pnpinfo and location info via the devinfo interface to userland. devinfo(8) needs to be updated to print it. Notes: svn path=/head/; revision=104643
* MFp4:Warner Losh2002-10-072-46/+76
| | | | | | | | | | | | | | | | | o Better resume code. Move the comments around. Force the socket state to be querried. Ack the interrupts properly. o Intercept the interrupt requests and keep a list of interrupts to service ourselves. When the card attaches, set its OK bit. When we get a card status change interrupt for that card, clear the OK bit. Don't call the ISR if the OK bit is cleared. Iwasaki-san and yamamoto-san have both sent me patches that fix the same problem this fixes, but at the pccard level. o Try to get the signalling of the thread to actually die. This might not be 100% right, but it is less wrong than before. o Add a SIC next to a TI type that looks like it could be wrong, but isn't. Notes: svn path=/head/; revision=104642
* o Add a nomatch routine so we whine when we don't know what to attach toWarner Losh2002-10-071-19/+90
| | | | | | | | | | | | | the card. o Add comments about how we're doing the CIS activation. o Add location and pnp info functions. o Add better code to hopefully deal with ata cards better (and other drivers that allocate resources that we didn't preallocate from the CIS). OLDCARD used to allow it, but NEWCARD was pickier. I'm not 100% sure this works, but it doesn't break anything. Notes: svn path=/head/; revision=104641
* Merge changes from NetBSD through version 1.17 of this file. TheseWarner Losh2002-10-071-14/+54
| | | | | | | | | give us slightly better error checking than before and interpret what default bits mean better. See the NetBSD CVS tree for the authors of these changes (revs 1.10 .. 1.17). Notes: svn path=/head/; revision=104640