summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Don't include <sys/types.h> when it isn't used.bde1996-04-191-2/+1
| | | | | This commit covers most of the ANSI library functions. Many others only need <sys/types.h> because they use u_xxx.
* Don't depend on <sys/types.h> including <sys/cdefs.h>.bde1996-04-194-5/+7
|
* savectx returns through cpu_switch in case of the child, so it mustphk1996-04-194-8/+10
| | | | return void just like cpu_switch. Fix prototype and usage from machdep.c
* Whoops, shouldn't really have been here, but what the heck: remove somephk1996-04-181-5/+3
| | | | stale comments.
* Fix a bogon. cpu_fork & savectx ecpected cpu_switch to restore %eax,phk1996-04-187-14/+24
| | | | they shouldn't.
* - Save/restore the FS data segment.nate1996-04-184-78/+78
| | | | Reviewed by: bde
* - Addition of my name to the APM Copyrightnate1996-04-182-100/+66
| | | | | | | | | - More code cleanups - #ifdef DEBUG debugging code - More consistant printfs - Better handling of the apm_int() assembly code (mostly from Bruce Evans) Reviewed by: bde
* Three speed-ups in the output path (two small, one substantial):wollman1996-04-181-39/+51
| | | | | | | | | | | | 1) Require all callers to pass a valid route pointer to ip_output() so that we don't have to check and allocate one off the stack as was done before. This eliminates one test and some stack bloat from the common (UDP and TCP) case. 2) Perform the IP header checksum in-line if it's of the usual length. This results in about a 5% speed-up in my packet-generation test. 3) Use ip_vhl field rather than ip_v and ip_hl bitfields.
* Define a few macros useful in the _IP_VHL case.wollman1996-04-181-1/+8
|
* Fix a warning by not referencing ip_output() as a pr_output() member.wollman1996-04-181-2/+2
|
* Always call ip_output() with a valid route pointer. For igmp, also get thewollman1996-04-182-17/+24
| | | | multicast option structure off the stack rather than malloc.
* Add an inline function to compute the common-case IP header checksum.wollman1996-04-181-0/+76
|
* Added a disabled psm0 (PS/2) mouse device, using the new 'disable'nate1996-04-182-2/+6
| | | | keyword.
* Implement the RFNOWAIT flag for rfork(). If set this flag will cause thesmpatel1996-04-172-49/+41
| | | | | | | | | | | | | | forked child to be dissociated from the parent). Cleanup fork1(), implement vfork() and fork() in terms of rfork() flags. Remove RFENVG, RFNOTEG, RFCNAMEG, RFCENVG which are Plan9 specific and cannot possibly be implemented in FreeBSD. Renumbered the flags to make up for the removal of the above flags. Reviewed by: peter, smpatel Submitted by: Mike Grupenhoff <kashmir@umiacs.umd.edu>
* Support FreeBSD v2.1pst1996-04-171-19/+17
|
* Add in linux support for the quickcam driver bottom half andpst1996-04-171-23/+69
| | | | | add a new "invasive camera scan" option for folks who have weird cameras or weird parallel ports.
* Fix for PR #1146: the "next" pointer must be cached before calling soabortdg1996-04-161-4/+8
| | | | since the struct containing it may be freed.
* Two fixes from Rich Stevens:dg1996-04-152-7/+10
| | | | | | | | | 1) Set the persist timer to help time-out connections in the CLOSING state. 2) Honor the keep-alive timer in the CLOSING state. This fixes problems with connections getting "stuck" due to incompletion of the final connection shutdown which can be a BIG problem on busy WWW servers.
* Update PCI bus code from my current sources:se1996-04-142-310/+330
| | | | | | | | | | | | - always use pci_conf_read() and pci_conf_write(). (This is required to simulate non-existant devices in my system for PCI bridge code tests.) - reorder some functions (put the main functions at the end). - correct off by one bug in the code dealing with unitialized PCI to PCI bridge chips. (Bug found by ASAMI Satoshi.) - print function number for multi-function devices.
* Now that I have started to use netboot, I see what is missing...phk1996-04-142-36/+56
| | | | Load symbols and set boot args more nicely.
* Fixed handling of device flags. The real flags were never used.bde1996-04-131-2/+5
| | | | Submitted by: Michael Smith <msmith@atrad.adelaide.edu.au>
* Oops, include opt_pcvt_hdr.h before the key value in it is used.bde1996-04-131-2/+2
|
* Fixed `PCVT_FREEBSD=210'.bde1996-04-132-4/+4
|
* Another try: fixed bogus change of the fifo settings for the non-speed of 0.bde1996-04-133-9/+9
| | | | | rev.1.30 incorrectly changed the behaviour from always disabling the fifo to always enabling it.
* Don't use a newfangled auto initializer. Initialize everything byjhay1996-04-131-2/+6
| | | | | | | | | | | | | | | | | assignment to avoid one bug and several pessimizations. In the old version, gcc-2.6.3 (i386 version) generates 16 bytes of static data and copies it using 4 4-byte load-stores. gcc-2.7.2 generates 2 1-byte stores and calls memset() to zero 14 bytes. Linking fails because memset() doesn't exist in the kernel. In both versions, the 2 bytes stored directly are all that is actually used unless the null padding at the end is used, since the 3 4-byte words in the middle are initialized again by struct assignment. These words are misaligned. gcc generates misaligned load-stores for (small) misaligned struct copies. Submitted by: Bruce Evans
* Changed _BSD_PID_T_ from long to int. Lite2 changed pid_t from long tobde1996-04-131-2/+2
| | | | | int32_t in <sys/types.h> but this change was missed when the Lite2 types were merged.
* Changed `noreturn' to `__noreturn__' so that all headers don't break ifbde1996-04-131-4/+4
| | | | | | | | | | | an application #defines `noreturn'. Changed one instance of `const' similarly. This is less like to be a problem since applications shouldn't #define `const', and the common hack of #defining `const' as nothing gives harmless (?) null attributes instead of syntax errors. Fixed comments on #endifs to match code.
* Fix a longstanding bug and a buglet of no significance.phk1996-04-131-23/+18
| | | | | | Now net.ipx works. Noticed by: John Hay -- John.Hay@csir.co.za
* Eliminated sloppy common-style declarations. Now there are no duplicatedbde1996-04-133-5/+12
| | | | | | common labels for LINT. There are still some common declarations for the !KERNEL case in tcp_debug.h and spx_debug.h. trpt depends on the ones in tcp_debug.h.
* Eliminated sloppy common-style declarations. Now there are no duplicatedbde1996-04-137-28/+48
| | | | | | common labels for LINT. There are still some common declarations for the !KERNEL case in tcp_debug.h and spx_debug.h. trpt depends on the ones in tcp_debug.h.
* Declared `unittab' as static. It was bogusly shared between the asc andbde1996-04-132-3/+7
| | | | gsc drivers.
* Document how to drop into DDB from a serial console.jkh1996-04-131-1/+10
|
* Use PCB_SAVEFPU_SIZE instead of a too-small size in savectx(). Thisbde1996-04-133-27/+33
| | | | | | | | | | bug only affected FPU emulators. It might have caused bogus FPU states in core dumps and in the child pcb after a fork. Emulated FPU states in core dumps don't work for other reasons, and the child FPU state is reinitialized by exec, so the problem might not have caused any noticeable affects. Cleaned up #includes.
* Generate #define of PCB_SAVEFPU_SIZE for use in savectx().bde1996-04-132-2/+4
|
* Improve the handling of receive errors. Fix a nasty bug in the receivejhay1996-04-123-165/+486
| | | | buffer code.
* Make alltraps a .globl so that DDB doesn't make people belive they havephk1996-04-123-3/+6
| | | | an ALIGNFLT on their hands all the time.
* Fix a bogon I introduced with my last change.phk1996-04-121-2/+2
| | | | Submitted by: Andreas Klemm <andreas@knobel.gun.de>
* remove variables KMODGRP?=, KMODOWN?=, KMODMODE?=wosch1996-04-111-43/+15
| | | | | | | | | replace ${BIN*} variables with ${KMOD*} variables cleanup manpage code include bsd.obj.mk remove targets clean, cleandir, obj (included by bsd.obj.mk)
* Moved AUTO_EOI_[12] and most sio and pcvt options out of the makefile.bde1996-04-1111-13/+53
|
* Fixed a spl hog. The vmdaemon process ran entirely at splhigh. Itbde1996-04-111-1/+3
| | | | | | | sometimes disabled clock interrupts for 60 msec or more on a P133. Clock interrupts were lost ... Reviewed by: dyson
* Spell cpu_switch() with an i in a comment.bde1996-04-111-2/+2
|
* Fixed the PF_REMOTE case of ptcwrite(). I broke it in rev.1.22. Outputbde1996-04-111-4/+15
| | | | | | was duplicated until the canq filled up, and write() normally returned 0. This case is apparently rare. It was reported for Jove's shell buffer in PR 1130.
* Added a note about OPTi 82C929 based cards.smpatel1996-04-111-5/+10
| | | | | | | | | Clarified GUS DMA Settings. Other misc. changes. This should hold us over until I can finish cleaning up TASD, and finish reintegrating all of the FreeBSD changes to the sound driver. At that time this document will be removed, and it's information moved to the handbook.
* When cslip gets an uncompressed packet, it attempts to save off the TCP/IPdg1996-04-111-4/+11
| | | | | | | | | | header for use in decompressing subsequant packets. If cslip gets garbage (such as what happens when there is a port speed mismatch or modem line noise), it will occasionally mistake the packet as a valid uncompressed packet. When it tries to save off the header, it doesn't bother to check for the validity of the header length and will happily clobber not only the cslip data structure, but parts of other kernel memory that happens to follow it...causing, ahem, undesired behavior.
* Added documentation for "options PAS_JOYSTICK_ENABLE"scrappy1996-04-111-1/+4
|
* mentioned support for enabling gameport on ProAudio Spectrum withscrappy1996-04-113-3/+12
| | | | | appropriately commented out "options" line for PAS_JOYSTICK_ENABLE (PR#i386/960 - partial closer)
* Disable sio3 in GENERIC - it messes with ATI cards.jkh1996-04-102-4/+4
|
* removed RS_IBUFSIZE #ifndef - have been informed it was a bad ideascrappy1996-04-103-9/+3
|
* hp300 -> i386nate1996-04-102-4/+4
|
* Placed an #ifndef around RS_IBUFSIZE so that it can be changed in thescrappy1996-04-103-3/+9
| | | | | config file ... PR#528 is reportly fixed by adding 'options RS_IBUFSIZE=1024' to the config file
OpenPOWER on IntegriCloud