summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add atomic.s.dfr1998-08-242-2/+4
|
* Remove a useless ifdef which made struct disklabel have a differentdfr1998-08-243-15/+3
| | | | | size in kernel and user builds on the alpha and prevented various ioctls from working.
* Change various syscalls to use size_t arguments instead of u_int.dfr1998-08-2424-201/+714
| | | | | | | | | | Add some overflow checks to read/write (from bde). Change all modifications to vm_page::flags, vm_page::busy, vm_object::flags and vm_object::paging_in_progress to use operations which are not interruptable. Reviewed by: Bruce Evans <bde@zeta.org.au>
* Regnerate.dfr1998-08-246-13/+13
|
* Fix a few syscall arguments to use size_t instead of u_int.dfr1998-08-241-6/+6
|
* Add partial KLD support for ELF. The module loading is not written yet.dfr1998-08-242-0/+1006
|
* Re-implement tcp and ip fragment reassembly to not store pointers in thedfr1998-08-249-248/+215
| | | | | | ip header which can't work on alpha since pointers are too big. Reviewed by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
* Use a relative path to bsd.kern.mk if the relative mk directory exists.bde1998-08-243-3/+15
|
* Removed support for the gcc-2.[0-4] keywords __dead and __pure. Theybde1998-08-241-22/+17
| | | | | | | | | | | | stopped being used in /usr/src almost 2 years ago. Don't pretend to support gcc-[3-infinity]. Added __printf0like(). Feature tests for the __printf0__ feature are problematic, so this can't be used for the err() family yet - it's only in recent versions of FreeBSD's hacked version of gcc. Added comments about __unused and __*like().
* Shut this thing up, like the other LKMsjkh1998-08-241-2/+2
|
* Fixed printf format errors. Only one left in LINT on i386's.bde1998-08-2432-160/+198
|
* remove bdevsw arg from dsopen();phk1998-08-2310-30/+22
| | | | | Forgotten by: julian Reviewed by: bde
* Use address space numbers to reduce TLB flushes.dfr1998-08-233-86/+198
|
* Don't check minor number of dump device at all.des1998-08-233-16/+3
| | | | Discussed-with: Jörg Wunsch
* Enabled Lite2 fix for reading from dead ttys.bde1998-08-234-42/+6
|
* Fixed printf format errors.bde1998-08-238-16/+16
|
* Fixed printf format errors. `struct eisa_device' uses a strange typebde1998-08-232-16/+16
| | | | for the unit number (like most SCSI drivers).
* Fixed printf format errors.bde1998-08-232-37/+47
| | | | | | | Fixed style bugs in the int to u_long ioctl command arg changes. This driver doesn't use the u_foo BSDism. Don't smash ioctl command args back to int.
* Added D_TTY to the cdevswitch flags for all tty drivers. This is requiredbde1998-08-2326-186/+216
| | | | | | | | | for the Lite2 fix for always returning EIO in dead_read(). Cleaned up the cdevswitch initializers for all tty drivers. Removed explicit calls to ttsetwater() from all (tty) drivers. ttsetwater() is now called centrally for opens, not just for parameter changes.
* Removed cxpoll(). Just use ttpoll() like all other tty drivers. It'sbde1998-08-231-11/+1
| | | | | equivalent except for the bad-minor-number case (which probably can't happen).
* Yow! Completely change the way socket options are handled, eliminatingwollman1998-08-2341-1123/+1238
| | | | | | another specialized mbuf type in the process. Also clean up some of the cruft surrounding IPFW, multicast routing, RSVP, and other ill-explored corners.
* Correct/clarify some comments.mckay1998-08-221-3/+3
|
* Remove bogus unused code.dfr1998-08-221-17/+1
|
* Minor tweaks to track a couple of i386 changes and to make it compile.dfr1998-08-228-21/+38
|
* Add BREAK_TO_DEBUGGER so that config stops whininggpalmer1998-08-212-2/+6
|
* Increase the number of descriptors (and, as a consequence, the numberwpaul1998-08-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of associated mbuf clusters) in the RX ring from 4 to 16. On my really fast PI 400Mhz test machines, 4 descriptors (and associated mbuf clusters) is enough to achieve decent performance without any RX overruns. However, one person reported problems with the following scenario: - P90 system running FreeBSD with a 3c905B-TX adapter, slow IDE hard disk (Quantum Bigfoot?) - PII 266 with SCSI disks running LoseNT and also with a 3c905B-TX - Both machines connected together via crossover cable at 100Mbps full-duplex - LoseNT machine writing largs amounts of data (2.5 GB work of files each in the neighborhood of 1 to 2 MB in size) via samba to the FreeBSD machine In this case, the LoseNT machine is sending data very fast. Apparently there weren't any problems initially because the user was writing to one particular disk which was relatively fast, however after this disk filled up and the user started writing to the second slower disk, RX overruns would occur and sometimes the RX DMA engine would stall after a 100 to 500MB had been transfered. The xl_rxeof() handler is supposed to detect this condition and restart the upload engine; I'm not sure why it doesn't, unless interrupts are being lost and the rx handler isn't getting called. This is still an improvement over the Linux driver, which uses 32 descriptors in its receive ring. :) Problem reported by: Heiko Schaefer <hschaefer@fto.de>
* This commit was generated by cvs2svn to compensate for changes in r38465,msmith1998-08-21100-0/+12945
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * This is the new unified bootstrap, sometimes known previously as themsmith1998-08-21100-0/+12945
| | | | | | | | | | | | | | | | 'three-stage' bootstrap. There are a number of caveats with the code in its current state: - The i386 bootstrap only supports booting from a floppy. - The kernel and kld do not yet know how to deal with the extended information and module summary passed in. - PnP-based autodetection and demand loading of modules is not implemented. - i386 ELF kernel loading is not ready yet. - The i386 bootstrap is loaded via an ugly blockmap. On the alpha, both net- and disk-booting (SRM console machines only) is supported. No blockmaps are used by this code. Obtained from: Parts from the NetBSD/i386 standalone bootstrap.
* This is the new unified bootstrap, sometimes known previously as themsmith1998-08-215-0/+855
| | | | | | | | | | | | | | | | 'three-stage' bootstrap. There are a number of caveats with the code in its current state: - The i386 bootstrap only supports booting from a floppy. - The kernel and kld do not yet know how to deal with the extended information and module summary passed in. - PnP-based autodetection and demand loading of modules is not implemented. - i386 ELF kernel loading is not ready yet. - The i386 bootstrap is loaded via an ugly blockmap. On the alpha, both net- and disk-booting (SRM console machines only) is supported. No blockmaps are used by this code. Obtained from: Parts from the NetBSD/i386 standalone bootstrap.
* Fix small printf() bogon (forgot newline, and the message was longer thatwpaul1998-08-201-4/+4
| | | | 80 cols).
* Add support for TurboChannel alphas (DEC 3000/300 and 3000/500).dfr1998-08-2035-13/+8772
| | | | | Obtained from: NetBSD Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
* Moved `nx' functions to the one place where they are used (su.c).bde1998-08-204-109/+85
| | | | | | | They shouldn't be used there either. They should have gone away about 3 years ago when the statically initialized devswitches went away, but su.c unfortunately still frobs the cdevswitch in the old way.
* A better fix for kern/7144:msmith1998-08-202-72/+56
| | | | | | | | | | | | | | | | | | | | | The check for dropping unicast packets not sent to our ethernet address is after the bpf tap, but not conditioned on it. All packets received should get handed to bpf, and unicast packets not to us (mac) should get dropped whether or not there is a bpf listener. I believe that the common optimization that the interface is in hw promisc mode iff there is a bpf listener is in general wrong, but more frequently so on wavelans. I think Max's fix makes bpf listeners not see unicast packets sent to others, but I'm not sure. One can argue that checking on MOD_ENAL is wrong, but the code only drops packets that shouldn't be received. The correctness condition is that it be run whenever unicast packets without our mac address can be received. PR: kern/7144 Submitted by: Greg Troxel <gdt@ir.bbn.com>
* Fixed bogus spelling `nx*' of some `no*' devswitch functions.bde1998-08-202-4/+4
|
* Fixed devfs initialization which I broke in the previous commit.bde1998-08-203-30/+30
| | | | Fixed an old name and disorder in the sio dictionary.
* Fixed devfs initialization which I broke in the previous commit.bde1998-08-203-21/+21
|
* Include opt_devfs.h which defines SLICE, to make previous commitdes1998-08-191-1/+2
| | | | | | meaningful. Pointed out by: Luoqi Chen
* Make two changes:wpaul1998-08-191-28/+48
| | | | | | | | | | | | | | | | | | If I'm reading the manual correctly, the 3c905B actually loses its PCI configuration during the transition from D3(hot) back to D0, not during the transition from D0 to D3(hot). This means it should be possible to save the existing PCI settings, restet the power state, then restore the PCI settings afterwards. Changed xl_attach() to attempt this first thing before the normal PCI setup. I'm not certain this will work correctly, but it shouldn't hurt. If xl_init() is called while an autoneg session is in progress, the autoneg timeout and chip state will get clobbered. Try to avoid this by checking sc->xl_autoneg at the start of xl_init() and defer the initialization until later if it's set. (xl_init() is always called at the end of an autoneg session by xl_autoneg_mii().) Problem pointed out by: Larry Baird <lab@gta.com>
* Sync with sys/i386/isa/sio.c revision 1.211.kato1998-08-192-18/+20
|
* Make struct buf->b_offset reflect the real byte offset which gotsos1998-08-194-5/+9
| | | | | in via the uio struct. This enables device drivers to use != DEV_BSIZE blocking on devices with wierd sector/block sizes (ie CDROM's).
* Sync with sys/i386/isa/syscons.c revision 1.275.kato1998-08-191-2/+2
|
* Sync with sys/i386/i386/machdep.c revision 1.304.kato1998-08-192-12/+32
|
* Enabled dynamically sized tty input buffers (with enough bufferingbde1998-08-196-54/+60
| | | | | | | | | | | | for 1 second's worth of input) and larger tty output buffers. The interrupt-level buffers are still too small for speeds above 115200 bps (only a little too small for 230400 bps if RTS flow control is enabled). Don't call ttsetwater() explicitly in open(). It is now called for the TTYDISC l_open() and should be static. Don't attempt to register the cdevsw more than once.
* A limit of 200000 for the output buffer high watermark was excessive,bde1998-08-191-11/+3
| | | | | | | | | since (hardware) ttys have too low a bandwidth to benefit significantly from large buffers. Use twice the old limit for the new-default case and 8 times the old limit for the driver-specifies-watermark case. Nothing uses these cases yet. Removed related debugging code.
* Correct handling of ASCII DEL (0x7F).jkoshy1998-08-191-4/+6
| | | | | | | | | | | | I don't have access to a real VT220 to verify this against. However, I'm committing the patch in `good faith' because (a) getting hold of a real VT220 is going to be increasingly difficult the longer the PR sits around, (b) some one was troubled enough to in a PR and (c) the fix is minor and has no other implications. PR: 7559 Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
* Correct glyph displayed by PCVT in ISO Latin-1 mode.jkoshy1998-08-191-1/+1
| | | | | PR: 7610 Submitted-by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
* Delete dpt driver.kato1998-08-192-16/+2
|
* Implement DLT_RAW from libpcapache1998-08-182-2/+4
|
* Presently there is only one `currentldt' variable for all cpusmsmith1998-08-1819-35/+110
| | | | | | | | | | | | in a SMP system. Unexpected things could happen if each cpu has a different ldt setting and one cpu tries to use value of currentldt set by another cpu. The fix is to move currentldt to the per-cpu area. It includes patches I filed in PR i386/6219 which are also user ldt related. PR: i386/7591, i386/6219 Submitted by: Luoqi Chen <luoqi@watermarkgroup.com>
* Fix one forgotten instance of \n to \rsos1998-08-182-4/+4
|
OpenPOWER on IntegriCloud