summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix up some sloppy coding practices:wollman1994-08-18104-385/+378
| | | | | | | | | | | | - Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter.
* Added support for TIOCSTAT ioctl. This allows shells that use raw/cbreakdg1994-08-182-2/+7
| | | | tty modes to process a control-T and do the right thing.
* Bruce Evans' dynamic interrupt support.dg1994-08-1815-728/+856
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /usr/src/sys/i386/isa/clock.c: o Garrett's statclock changes. o Wire xxxintr, not Vclk. o Wire using register_intr(), not setidt(). /usr/src/sys/i386/isa/icu.s: o Garrett's statclock changes. o Removed unused variable high_imask. o Fake int 8 for rtc as well as int 0 for clk. Required for kernel profiling with statclock, harmless otherwise. /usr/src/sys/i386/isa/isa.c: o Allow isdp->id_irq and other things in *isdp to be changed by probes. Changing interrupts later requires direct calls to register_intr() and unregister_intr() and more care. ALLOW_CONFLICT_* is brought over from 1.1.5, except ALLOW_CONFLICT_IRQ is not supported. IRQ conflict checking is delayed until after probing so that drivers can change the IRQ to a free one; real conflicts require more cooperation between drivers to handle. o Too many details to list. o This file requires splitting and a lot more work. /usr/src/sys/i386/isa/isa_device.h: o Declare more things more completely. /usr/src/sys/i386/isa/sio.c: o Prepare to register interrupt handlers as fast. /usr/src/sys/i386/isa/vector.s: o Generate entry code for 16 fast interrupt handlers and 16 normal interrupt handlers. Changed some constants to variables: # $unit is now intr_unit[intr]. Type is int. Someday it should be a cookie suitable for the handler (e.g., a struct com_s for sio). # $handler is now intr_handler[intr]. # intrcnt_actv[id_num] is now *intr_countp[intr]. The indirection is required to get a contiguous range of counters for vmstat and so that the drivers depend more in the driver than on the interrupt number (drivers could take turns using an interrupt and the counts would remain correct). There is a separate counter for each device and for each stray interrupt. In 1.1.5, stray interrupt 7 clobbers the count for device 7 or something worse if there is no device 7 :-(. # mask is now intr_mask[intr] (was already indirect). o Entry points are now _XintrI and _XfastintrI (I = intr = 0-15), not _VdevU (U = unit). o Removed BUILD_VECTORS stuff. There's a trace of it left for the string table for vmstat but config now generates the string in one piece because nothing more is required. o Removed old handling of stray interrupts and older comments about it. Submitted by: Bruce Evans
* Moved over my fix for vnode lossage when multiple TIOCSCTTY ioctls aredg1994-08-181-1/+10
| | | | | | done. This patch was extended to also include a suggested change by Kirk McKusick which allows the control tty to be reasigned to a different tty without losing a vnode.
* Oops, changed order of include lines...sos1994-08-173-15/+15
| | | | | Reviewed by: Submitted by:
* Updated to latest 1.1.5.1+ versionsos1994-08-173-1158/+1296
| | | | | Reviewed by: Submitted by:
* Updated to latest version from 1.1.5.1+sos1994-08-172-22/+36
| | | | | Reviewed by: Submitted by:
* Add option KBD_RESET_FAIL_OK so that GCC 2.6 doesn't break mywollman1994-08-153-3/+12
| | | | console.
* Enable use of the RTC chip for the statistical clock. While this doeswollman1994-08-159-25/+324
| | | | | | | | | | | not provide the full accuracy of a randomized statistical clock, it does provide greater accuracy than the previous method, while not significantly increasing overhead. It also provides profiling support at 1024 Hz. You must re-compile config before making a new kernel, or you will end up with unresolved symbols. Reviewed uy: Bruce evans said it worked for him.
* Submitted by: Bruce Evansats1994-08-143-18/+12
| | | | | | | Delete the ifdef GPL_EMULATE case here and made the padding work for both types of emulators so that there is no longer a need to compile ps and friends new if you are using the GPL math emulator instead the normal one.
* Reviewed by:ats1994-08-141-2/+5
| | | | | | Added code to check for an adaptec 1542B Version 3.20 Board. This was the first board that supports >1Gb drives and has the extended bios. So we need also to disable the exbios like it is done for the 1542C/CF boards.
* Pulled over missing ftape.h from 1.1.5paul1994-08-141-0/+222
| | | | | Reviewed by: Submitted by: Paul Richards
* Changed the include <sound/ulaw.h> to be <i386/isa/sound/ulaw.h> sopaul1994-08-141-2/+2
| | | | | | | it compiles. Reviewed by: Submitted by: Paul Richards
* The tcp/ip interfaces needed longer timeouts, works fine under 2.0.phk1994-08-141-3/+3
|
* Fix conditional-compilation mixup, pointed out by Paul Richards.wollman1994-08-131-3/+1
|
* Made the kernel compile cleanly with gcc 2.6.0. Thanks go to Brucedg1994-08-136-22/+30
| | | | Evans for suggesting a method to detect various versions of gcc.
* Change all #includes to follow the current Berkeley style. Some of thesewollman1994-08-13102-973/+988
| | | | | | | | | | | | | | | | | | | | | ``changes'' are actually not changes at all, but CVS sometimes has trouble telling the difference. This also includes support for second-directory compiles. This is not quite complete yet, as `config' doesn't yet do the right thing. You can still make it work trivially, however, by doing the following: rm /sys/compile mkdir /usr/obj/sys/compile ln -s M-. /sys/compile cd /sys/i386/conf config MYKERNEL cd ../../compile/MYKERNEL ln -s /sys @ rm machine ln -s @/i386/include machine make depend make
* Submitted by: Poul-Henning Kamp <phk@login.dkuug.dk>phk1994-08-131-4/+389
| | | | | | | | | | | | | | Added my if_lp TCP/IP driver to lpt.c. I have (surprise) not been able to test it on a 2.0 machine yet. Connect the machines with a parallel "lap-link" cable, and get rates from 35 kbyte/sec up to 75 kbyte/sec. (when ftp'ing foo: dev/zero -> bar:/dev/null). The same lpt.c file should compile under 1.1.5.1 without problems. I think we should promote this feature when we dump 2.0 on the expectant public, because it provides a cheap and efficient way to move data to and from notebooks &c. It is not a replacement for ethernet, but a cheap substitute sometimes.
* Added conditionals to make this compile cleanly in FreeBSD 2.0.dg1994-08-121-7/+49
|
* New ethernet device driver from Matt Thomas:dg1994-08-125-2/+2434
| | | | | | | | | This driver supports all the DEC EtherWORKS III NICs (DE203, DE204, and DE205) and the later DEC EtherWORKS II NICs (DE200, DE201, DE202, DE422). DEPCA-style boards prior to the DE200 have not been tested and may not work. Submitted by: Matt Thomas (thomas@lkg.dec.com)
* Removed some unnecessary code that sets the link layer address. This shoulddg1994-08-122-58/+2
| | | | | be removed from the other drivers, too, as it is already done at a higher level in the kernel.
* Add missing ifr variable declaration that I forgot when adding MTUdg1994-08-122-6/+8
| | | | ioctl support.
* Change outb() as per Bruce's instructions so that it doesn't explicitlyjkh1994-08-112-4/+4
| | | | | | try to pass its argument in the ax register. Reviewed by: Submitted by:
* For Pentium machines, use a faster version of microtime with 8 usecwollman1994-08-116-8/+167
| | | | | resolution (can probably be improved somewhat). Other machines take a three-instruction hit if I586_CPU is defined, none otherwise.
* Tell Pentium users their CPU speed. (More changes to make use of thiswollman1994-08-107-12/+135
| | | | to come later.)
* Initialize lockf pointer. I missed this when I made NFS use the genericdg1994-08-102-2/+4
| | | | advlock mechanism, and not doing so results in random system crashes.
* Make it easier for programs to figure out what revision of FreeBSD theywollman1994-08-103-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | are running under. Here's how to bootstrap (order is important): 1) Re-compile gcc (just the driver is all you need). 2) Re-compile libc. 3) Re-compile your kernel. Reboot. 4) cd /usr/src/include; make install You can now detect the compilation environment with the following code: #if !defined(__FreeBSD__) #define __FreeBSD_version 199401 #elif __FreeBSD__ == 1 #define __FreeBSD_version 199405 #else #include <osreldate.h> #endif You can determine the run-time environment by calling the new C library function getosreldate(), or by examining the MIB variable kern.osreldate. For the time being, the release date is defined as 199409, which we have already established as our target.
* Handle NMI's in accordance with data in van Gilluwe book.wollman1994-08-105-14/+52
|
* Some programs (like GNU configure programs) depend on the output ofwollman1994-08-102-4/+4
| | | | | `uname -s' to be something reasonable (traditionally, `i386') rather than `PC-Class'. Make it so.
* Add back in CPU detection copde from 1.1.5. As an added bonus, thewollman1994-08-107-79/+230
| | | | hw.model MIB variable is now declared correctly.
* Fixed vm_page_deactivate to deal with getting called with a page that'sdg1994-08-101-48/+1
| | | | | | | not on any queue. This is an old patchkit days fix. Reviewed by: John Dyson and David Greenman Submitted by: originally by Paul Mackerras
* Change default security level to -1, so that users don't get bitten bywollman1994-08-101-2/+2
| | | | upcoming makefile change.
* Removed some padding bytes from the nfsnode struct to make the structuredg1994-08-092-4/+2
| | | | | size a power of 2 again. The system complains otherwise - probably because it wastes space with our malloc scheme otherwise.
* Merge in the necessary bits from 1.1.5.1 to make exec.h and reloc.hjkh1994-08-094-74/+122
| | | | | | happy campers again (e.g. match our own exec format). This should make ld happy. Submitted by: jkh
* Removed ntohl and ntohs functions. These were already inlined assembly indg1994-08-093-78/+3
| | | | endian.h.
* Removed an old, obsolete call to vmmeter(). This is called now in thedg1994-08-091-2/+1
| | | | | schedcpu() routine in kern/kern_synch.c. This extra call to vmmeter() in vm_glue.c was what was totally messing up the load average calculations.
* Added various filesystems and multicast support options. Removed mydg1994-08-092-15/+31
| | | | | personal config file now that the GENERIC ones provide an adequate template.
* Made lockf advisory locking code generic (rather than ufs specific), anddg1994-08-089-85/+906
| | | | | | | use it in NFS. This is required both for diskless support and for POSIX compliance. Note: the support in NFS is only for the local node. Submitted by: based on work originally done by Yuval Yurom
* Fix a compilation-stopping typo; whoops, David - more sleep! :-)jkh1994-08-082-4/+4
| | | | Submitted by: jkh
* Run-time configuration of VFS update interval. Old UPDATE_INTERVALwollman1994-08-083-8/+20
| | | | configuration option is no longer supported.
* Last commit for this file should have read:dg1994-08-081-2/+2
| | | | | | | Reduced maximum transfer size by one to allow for catching a too large condition correctly. Do single block I/O if the size is too large. Submitted by: Bruce Evans
* Detect the "EOF" condition. Specifically, end of partition.dg1994-08-082-5/+14
| | | | Submitted by: Bruce Evans
* Added support for SIOCSIFMTU.dg1994-08-086-6/+76
|
* Process tracing code. Written by Sean Eric Fagan.dg1994-08-082-31/+321
| | | | Submitted by: Sean Eric Fagan
* Added ioctl support for SIOCSIFMTU.dg1994-08-083-9/+36
|
* On second thought, better restrict the mtu to between 72-65535...strangedg1994-08-081-2/+6
| | | | things happen otherwise.
* Enforce the mtu to between the range 1-65535 before calling the driverdg1994-08-081-1/+3
| | | | ioctl routine.
* Added ioctl support for SIOCGIFMTU and SIOCSIFMTU. These set the per-dg1994-08-083-3/+18
| | | | interface MTU.
* Take out multicast support for the moment.dg1994-08-081-1/+1
|
* Increased ARG_MAX even further...to 64k bytes.dg1994-08-081-2/+2
|
OpenPOWER on IntegriCloud