summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Now that ufsread.c doesn't do 64bit divide remainder operations,phk2002-10-082-30/+4
| | | | | | don't bother with libkern. Sponsored by: DARPA & NAI Labs.
* Save a couple of bytes by not returning ints nobody care about.phk2002-10-082-12/+12
| | | | Sponsored by: DARPA & NAI labs
* It seems that the only problem with UFS2 booting on i386 is the 64bitphk2002-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
* Don't panic for a bad ivar request, just return ENOENT.jhb2002-10-081-1/+0
|
* MFi386: revision 1.67.nyan2002-10-081-1/+1
|
* MFi386: revisions 1.539, 1.540 and 1.541.nyan2002-10-082-24/+40
|
* Fix to support pc98.nyan2002-10-085-0/+20
|
* Reinstate rev 1.36 with an important line that got missed. Note thisgreen2002-10-082-4/+10
| | | | | also improves the "random undocumented offsets into various memory spaces" a little bit.
* Do not strip CTL* escapes from redirection filenames in argstr(); theytjr2002-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
* Remove unused TYPE_WD and TYPE_WFD.phk2002-10-082-4/+0
|
* Correctly calculate dmadat: We need to take the address of _end, it'sphk2002-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.
* Make it possible to kldload(8) many modules.jmallett2002-10-081-9/+17
| | | | | | MFC after: 2 months Sponsored by: Bright Path Solutions Reviewed by: tjr
* Unbreak boot2 by backing out rev 1.36 to Makefile, which does notphk2002-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#
* Allow for multiple #includes of this file.phk2002-10-081-0/+4
|
* Save four bytes by shortening a string two chars.phk2002-10-082-4/+2
| | | | Sponsored by: DARPA & NAI Labs.
* For now, don't wait for drives to stop returning EBUSY. There is toophk2002-10-081-35/+26
| | | | | | much broken harware around it seems. Sponsored by: DARPA & NAI Labs.
* FreeBSD 4.7 enters the BSD family tree sometime on October 8, 2002.murray2002-10-081-3/+3
|
* Teach pkg_add -r how to find 4.7-RELEASE packages with an appropriatebmah2002-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.)
* We now use XFree86-4 packages rather than a special XFree86-3murray2002-10-081-157/+0
| | | | distribution, so this script is no longer needed.
* Treat the pathptrn field as a real pattern with the aid of fnmatch().dd2002-10-082-18/+1
|
* Import the libc fnmatch() into the kernel. This will be used by,dd2002-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
* Make kldunload cbb work:imp2002-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.
* Add device driver for Belkin F5U103 and compatible USB-to-serial adapters.kan2002-10-084-0/+840
| | | | | Reviewed by: n_hibma Approved by: obrien
* Regen after usbdevs rev. 1.102.kan2002-10-082-0/+30
| | | | | Reviewed by: n_hibma Approved by: obrien
* Add entries for:kan2002-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
* Re-add the code which maps POSIX standard library names into the onestjr2002-10-081-4/+49
| | | | FreeBSD uses; f.e. -lpthread -> -pthread, -lxnet -> nothing.
* Introducing /dev/devctl. This device reports events in theimp2002-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.
* Two minor bugfixes:imp2002-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.
* MFp4:imp2002-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.
* o Add a nomatch routine so we whine when we don't know what to attach toimp2002-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.
* Merge changes from NetBSD through version 1.17 of this file. Theseimp2002-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).
* o Add routines to return the location and pnpinfo for this card.imp2002-10-071-46/+83
| | | | | | | | | | | | Note, we return the PCI pnp info, but in fact that's wrong to do since that data is not defined for CardBus cards. CardBus says that these registers are undefined and one should use the CIS to do device matching. To date, all CardBus cards have had these registered defined, no doubt because they are using common silicon to produce both the PCI cards and the CardBus cards. However, it isn't any worse than the rest of the system, so just note it in passing and move on. o Also sort prototypes while I'm here.
* Don't abuse the fact that -a == ~a + 1. Signed vs unsigned checkersimp2002-10-071-1/+1
| | | | | | | complain when a is a unsigned type. So instead use the latter here and be on our way. Spotted by: flexlint by way of phk
* Add extra set of parens around the barbit macro to make it clear whatimp2002-10-071-1/+1
| | | | | | we're intending to shift. Spotted by: flexlint by way of phk (should fix about 40 messages)
* Correct a bug in adding 0x700 to a number.green2002-10-072-2/+6
|
* Conditionalize the number of sectors loaded by boot1.s on UFS1/UFS12.phk2002-10-076-12/+84
| | | | | | | | Conditionalize the "XX bytes left" checks reference on UFS1/UFS12. Conditionally build the necessary 64bit math for boot2 if UFS12. Sponsored by: DARPA & NAI Labs.
* Remove duplicate uninstalled aio.h header.mike2002-10-072-112/+1
|
* Document behaviour change in reboot(8) introduced in reboot.c rev. 1.17:thomas2002-10-071-7/+8
| | | | | | | | when using '-p' with reboot, and the power down action failds, reboot the system normally. The behaviour of 'halt -p' and of shutdown(8) is unchanged. Approved by: roberto
* Change the comment character from # to // in boot1.s and runphk2002-10-074-646/+648
| | | | | | it through CPP so we can conditionalized things. Sponsored by: DARPA & NAI Labs
* Add back a fdrop() call at the end of kern_open() that got lost iniedowse2002-10-072-0/+2
| | | | | | | | | revision 1.218. This bug caused a "struct file" reference to be leaked if VOP_ADVLOCK(), vn_start_write(), or mac_check_vnode_write() failed during the open operation. PR: kern/43739 Reported by: Arne Woerner <woerner@mediabase-gmbh.de>
* Track openbsd changes that don't affect us yet (PK supoprt issam2002-10-073-28/+258
| | | | | | | | | | | | | | | | | | | | currently disabled): o Don't use constants for the output parameter, use the iparam count as a pointer to the first result location. o Fix bits vs bytes counting problems. o Split out the hardware and software normalization versions of modexp. o Enable hardware normalization for chips that support it. o On reset, disable hardware normalization for 582x and make sure the chip is in little endian mode. o Since sw normalization is now the only option, simplify normalization handling. Also fix RNG harvesting: disabling PK support (for the moment) had disabled the MCR2 interrupt; consider both KEY support and RNG support when deciding whether or not to enable it. Obtained from: openbsd
* Correctly adjust for moved start address.phk2002-10-072-2/+2
| | | | | | | | It seems that the existence of a "depend" target in src/sys/boot is not to be taken as an indication that it actually does what one would expect, at least it clearly threw my testing off. Apologies to: jhb
* o split crypto_proc into two threads: one for processing requests and onesam2002-10-071-52/+92
| | | | | | for processing callbacks. This closes race conditions caused by locking too many things with a single mutex. o reclaim crypto requests under certain (impossible) failure conditions
* remove CIOGSSESSION (get software session); it was added only for testingsam2002-10-072-4/+1
|
* Remove unneeded <sys/_posix.h> include.mike2002-10-071-1/+0
|
* Added '#include <sys/diskpc98.h>'.nyan2002-10-071-0/+1
| | | | Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)
* Correctly compensate for both offset and unoffset on-disk BSD disklabels.phk2002-10-072-2/+4
| | | | Sponsored by: DARPA & NAI Labs.
* Merged from sys/isa/fd.c revisions 1.224 and 1.241.nyan2002-10-072-6/+22
|
* Move MEM_USR a page upwards to make space for larger UFS1 boot2.phk2002-10-074-10/+10
| | | | | | | Load 4 sectors more than we used to. This is harmless overhead for the UFS1_ONLY case, but sufficient for boot2(UFS1+2). Sponsored by: DARPA & NAI Labs
* Don't use DPCYL and DPSECT macros. These are not needed.nyan2002-10-071-8/+8
| | | | Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)
OpenPOWER on IntegriCloud