summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Unstaticized addupc_task(). It is supposed to be called from trap().bde1995-12-261-2/+2
| | | | | | | | | | See the comments for addupc_intr() and the NetBSD implementation. We use dummy versions of fuswintr() and susiwintr(), so addupc_intr() always pushes the work to trap() (this is inefficient), and trap() calls the special i386 function addupc() instead of addupc_task(). addupc() is more efficient than addupc_intr(), so some of the lost efficiency is recovered. However, addupc() may be broken on plain i386's since it doesn't check for write permission like copyout().
* Finished staticizing of timevalfix().bde1995-12-263-5/+5
|
* Fix a lable goofup I made in the previous P6 support changes.dg1995-12-253-9/+9
|
* Fixed staticizing. Some functions aren't static but depend onbde1995-12-256-12/+33
| | | | the undocumented previously unLINTed option `APM_SLOWSTART'.
* Removed redundant (incompletely staticized) declararations.bde1995-12-251-4/+1
|
* Fix typo in CPUCLASS.dg1995-12-252-4/+4
|
* Added device fxp0 (device driver for Intel EtherExpress Pro/100).dg1995-12-245-5/+10
|
* Added I686_CPU.dg1995-12-245-5/+10
|
* Add Pentium Pro CPU detection and special handling. For now, all thedg1995-12-2418-120/+159
| | | | | optimizations we have for 586s also apply to 686s...this will be fine- tuned in the future as appropriate.
* Made "AUTO_EOI_1" standard. auto-EOI on the master ICU is a documenteddg1995-12-235-171/+119
| | | | | | | feature of the ICU. auto-EOI on the slave is not safe, however, so it remains an option. Killed religious FASTER_NOP when writing the ICU. Reviewed by: bde
* Use FASTER_NOP rather than NOP in rtcin() - only one inb delay was everdg1995-12-233-9/+9
| | | | | needed. Reviewed by: bde
* Added undocumented option DEBUG so that debugging code gets maintainedbde1995-12-223-3/+6
| | | | | | | | | or deleted. Motivated by: `int doclusteread = 1;' in ext2_vnops.c redefined doclusterread if DEBUG is defined, so it could not have worked. This was fixed by staticizing things before it caused problems. I didn't find any more cases like this.
* Staticized code that was hidden by `#ifdef DEBUG'.bde1995-12-222-6/+14
|
* Increased the double fault stack size from 512 to PAGE_SIZE. This isbde1995-12-222-4/+4
| | | | | | | | | wasteful, but better than clobbering the variables below the stack. About 300 bytes of variables were clobbered when I examined double faults using ddb. Perhaps a page that is known not to be accessed by the double fault handler could be used. Such pages are not easy to find, since the double fault handler calls panic() which calls sync() and possibly dumpsys().
* Fixed prototyping and staticizing for -DDEBUG case.bde1995-12-222-8/+8
|
* Fixed syntax errors caused by EXCEPTION() when DEBUG is defined.bde1995-12-221-3/+9
| | | | Added includes to get the prototype for printf() when DEBUG is defined.
* Changed the definition of DEBUG to agree with -DDEBUG to avoid warningsbde1995-12-222-4/+4
| | | | when DEBUG is an option.
* Fixed bugs and finished staticization for things inside `#ifdef DEBUG'.bde1995-12-221-20/+22
| | | | | Moved most of these things inside `#ifdef notyet_block_reallocation_enabled' where they may never be used again.
* Remove the now obsolete vfs_sysctl vfsops element.phk1995-12-221-3/+1
|
* Staticize.phk1995-12-222-25/+25
|
* Move fs.nfs.nfsstats sysctl var back to it's old OID.phk1995-12-222-4/+4
|
* Fixed permissions of /dev/tty.bde1995-12-221-2/+2
|
* kern_conf.c: remove a now unused variable.phk1995-12-222-9/+9
| | | | | vfs_cache.c: Fix a very rare probelm in the vnode-cache. Submitted by: Terry Lambert <terry@lambert.org>
* Fixed pty names. The control and slave names were back to front.bde1995-12-221-5/+5
| | | | Fixed pty permissions.
* Typo in my last commit.phk1995-12-222-4/+4
|
* Renamed private DEBUG macro to avoid warnings when DEBUG is an option.bde1995-12-223-26/+26
|
* Fixed permissions of /dev/pcaudio*.bde1995-12-221-6/+6
|
* Fixed arg order in an outb() call. add_timer_randomness() clobberedbde1995-12-221-6/+9
| | | | | | | | | | | | | part of the DMA channel 0 address and wasn't random in the intended way. Submitted by: KATO Takenori <kato@eclogite.eps.nagoya-u.ac.jp> Disable interrupts while reading the clock. This probably isn't important (allowing interrupts probably increased randomness in the usual case). Removed __i386__ ifdef. This file is in an i386 directory and has other i386 dependencies.
* Synced with sio.c. This fixed the DEVFS initialization. cy.c isbde1995-12-223-276/+231
| | | | supposed to be identical with sio.c for hardware-independent details.
* Fixed bugs introduced in rev. 1.127 (some broken 16650 support wasbde1995-12-223-210/+162
| | | | | | | | | | | | | | | | | | | | | | | unintentionally committed): - the fifo was completely disabled for low speeds. Apart from being unnecessarily inefficient, this invalidated com->tx_fifo_size. - `ftl' became a bogus name. - the 16650 probe breaks the COM_NOFIFO() case and has other bugs (disabled, not fixed). Fixed bogus change of the fifo settings for the non-speed of 0. This bug made the above fifo bug occur even at non-low speeds. Fixed the modes of the cua devices. It isn't possible to set the uid and gid correctly since the kernel can't know who uucp.dialer is. Register the devswitch at device attach time. SYSINIT() is not the right way to initialize devswitches (if anything :->). Eventually, the devswitch should be deregistered at device detach and/or unload time and reregistered at device attach time ... Then some com->gone tests could be removed. Cleaned up some other recent changes.
* Remove crufty "pg" function.phk1995-12-224-22/+6
|
* Cleanup.phk1995-12-222-292/+22
|
* Fix a small logic bug that caused the arguments of the previous frame todg1995-12-222-6/+12
| | | | | be used instead of the ones for the current frame if a breakpoint had been set at the entry to a function.
* If _IP_VHL is defined, declare a single ip_vhl member in struct ip ratherwollman1995-12-211-1/+5
| | | | | than separate ip_v and ip_hl members. Should have no effect on current code, but I'd eventually like to get rid of those obnoxious bitfields completely.
* Delete old-style-broadcast-address compatibility cruft in IP input path.wollman1995-12-211-3/+3
| | | | | If users want to use the old-style broadcast addresses, they will have to currectly configure their systems.
* i386/i386/conf.c is no longer needed.. remove it from files.i386julian1995-12-215-145/+99
| | | | | | | | | | | redistribute a few last routines to beter places and shoot the file I haven't act actually 'deleted' the file yet togive people time to have done a config.. I.e. they are likely to have done one in a week or so so I'll remove it then.. it's now empty. makes the question of a USL copyright rather moot.
* Reviewed by: peter (verbally :)julian1995-12-213-62/+54
| | | | Move functions specific to mem.c to mem.c from conf.c
* Rewrote most of the ddb stack traceback code. These changes are smarterdg1995-12-218-463/+340
| | | | | | | about decoding trap/syscall/interrupt frames and generally works better than the previous stuff. Removed some special (incorrect) frobbing of the frame pointer that was messing some things up with the new traceback code.
* in_proto.c: spell ``Internet'' right and put whitespace after commas.wollman1995-12-204-28/+35
| | | | | | | | others: start to populate the link-layer branch of the net mib, by moving ARP to its proper place. (ARP is not a protocol family, it's an interface layer between a medium-access layer and a protocol family.) sysctl(8) needs to be taught about the structure of this branch, unless Poul-Henning implements dynamic MIB exploration soon.
* Increase Pentium cyclecounter calibration time to 131072 us. Thiswollman1995-12-205-10/+10
| | | | experimentally seems to give better results on my machine.
* Demolish DIRECTED_BROADCAST. It was always a bad idea, and nobody uses it.wollman1995-12-201-15/+8
|
* Fix a nagging divide-by-zero error resulting from the MTU discovery codewollman1995-12-202-4/+40
| | | | getting triggered at a bad time.
* Bruce's fix for when dk_ndrive >= DK_NDRIVE. Fixes CDROM changerdufault1995-12-201-2/+2
| | | | | and other "lots of CDROM devices" problems. This code should be put in a single place.
* Added a comment about why trying to make a one-behind cache forwollman1995-12-191-1/+18
| | | | the route in ip_output() is a bad idea.
* Actually call in_rtqdrain()as was originally intended.wollman1995-12-193-8/+7
|
* Add-back strlen.c to the library in case a kernel is compiled withoutnate1995-12-191-6/+5
| | | | | optimization. Gcc only in-lines calls to strlen with optimization turned on.
* Corrected a typo in a comment.dg1995-12-193-6/+6
|
* Implemented a (sorely needed for years) double fault handler to catch stackdg1995-12-1915-95/+205
| | | | | | | | | | overflows. It sure would be nice if there was an unmapped page between the PCB and the stack (and that the size of the stack was configurable!). With the way things are now, the PCB will get clobbered before the double fault handler gets control, making somewhat of a mess of things. Despite this, it is still fairly easy to poke around in the overflowed stack to figure out the cause.
* Cleanup and staticize.phk1995-12-182-88/+63
|
* Added prototype for fxp_scb_wait() and fixed a bug where the wrong pointerdg1995-12-182-4/+6
| | | | was passed in one case.
OpenPOWER on IntegriCloud