summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add the linker set stab types: N_SETA N_SETT N_SETD N_SETB N_SETVpeter1996-10-011-1/+8
|
* Dont make splash screen the default :)sos1996-09-303-6/+3
|
* Fix a couble of nasties regarding mouse pointer and differentsos1996-09-308-311/+546
| | | | | | resolutions. Allow middle mouse button to be used for pasting. Also added the beginnings of support for a splash page.
* if we jump the time, we need to check all the process real interval timers.julian1996-09-301-2/+5
|
* Work around UMC8669F and Startech UART bugs by not writing to thebde1996-09-303-33/+108
| | | | | | | | | | | | | | divisor latch registers if the registers wouldn't change. Use the default console cfcr setting while setting the divisor latch registers for console i/o. Input may be messed up by transiently changing the cfcr. Use a usual cfcr setting while setting the divisor latch registers in the probe. This shouldn't matter, but this is not the place to test the UART's handling of 5 bit words. Removed a stale devfs comment.
* Whaddya know, visual userconfig sort of supports pci, but the supportbde1996-09-301-5/+6
| | | | | | | | | | was always disabled because "pci.h" wasn't included. Now the configured pci devices are listed and you can edit bogus flags for them. Fixed bitrot in the disabled code. A used #include was removed and const poisoning wasn't fixed. Removed unused #include.
* Added "memory" to clobber list in invlpg(). It needs it if invltlb()bde1996-09-292-40/+42
| | | | | | | | | | | needs it. Fixed style in invlpg(). Sorted recently renamed functions. Added prototypes in the non-gcc section for recently added/renamed functions.
* Started unspamming <sys/systm.h>. Don't include <machine/stdarg.h>bde1996-09-292-5/+7
| | | | | | to get the declaration of va_list; just use _BSD_VA_LIST. Fixed the 2 places that need <machine.stdarg.h> but didn't include it explicitly.
* Backed out one of my "performance optimizations" as it results in sometimesdg1996-09-292-18/+26
| | | | | | | | | not resuming the NIC as required for transmit. Thanks to Alan Cox <alc@cs.rice.edu> for noticing this. Added another performance optimization to compensate. :-) Changed crscdt to 1...strange, but this seems to be needed for some reason despite what the manual says.
* Essentially rename pmap_update to be invltlb. It is a very machinedyson1996-09-2810-106/+104
| | | | | | | dependent operation, and not really a correct name. invltlb and invlpg are more descriptive, and in the case of invlpg, a real opcode. Additionally, fix the tlb management code for 386 machines.
* Fixed undeclared variables for the !(PQ_L2_SIZE > 1) case.bde1996-09-281-4/+3
| | | | Removed redundant #include.
* Fixed bitrot in the read-only attribute:bde1996-09-281-5/+4
| | | | | | - kern.maxfilesperproc was read-only (and thus essentially useless). Removed unused #includes. Strength-reduced used #includes.
* Oops, read-only is spelled RD here.bde1996-09-281-21/+21
|
* Fixed bitrot in the read-only attribute:bde1996-09-281-26/+23
| | | | | | | | | - kern.maxproc and kern.maxprocperuid were read-only (and thus essentially useless. Apparently no one uses them). - all the user sysctls were read-write (and thus it was possible for them to be inconsistent with the authoritative fixed values in the library). Removed unused #include.
* Restored my change in rev.1.119 which was clobbered by the previous commit.bde1996-09-282-4/+8
|
* Move pmap_update_1pg to cpufunc.h. Additionally,dyson1996-09-284-98/+78
| | | | | use the invlpg opcode instead of the nasty looking .byte directives. There are some other minor micro-level code improvements to pmap.c
* Correct vget by removing a window where a vnode can potentially go away.dyson1996-09-282-6/+6
|
* Reviewed by:dyson1996-09-284-84/+111
| | | | | Submitted by: Obtained from:
* Added -I- to ${INCLUDES}. This makes 4.4Lite's (mis?)use of "foo.h"bde1996-09-273-9/+6
| | | | | | | | | | for headers in the compile directory work unsurprisingly. Without -I-, the search for "foo.h" begins in the directory of the file that includes it, and the compile directory is only searched because `-I.' is in ${INCLUDES}. Removed -I$S/sys from ${INCLUDES}. It was once necessary to find things like "param.h" in $S/sys. Now <sys/param.h> is found in $S.
* Some warning cleanups. There were some needless casts that also causedpeter1996-09-272-30/+24
| | | | | gcc -Wcast-qual to scream. There's still quite a few left, but since I'm cleaning out my tree, I'll commit these now.
* part 2 of the bsdi compat tweak attempt. I believe that BSDI use bothpeter1996-09-272-2/+8
| | | | | | lcall 7,0 (ie: ldt slot 0) and lcall 0x87,0 (ldt slot 16, it's shifted three bits to the left). I was fiddling with this so long ago, I don't recall the specifics.
* Apparently, BSDI have a new system call gate. I was experimentingpeter1996-09-272-4/+6
| | | | | | with this quite a while ago when somebody reported a BSD/OS 2.1 binary that wouldn't run. I'm pretty sure they tried it and I'm pretty sure they mentioned to me that the patch worked.
* Drat, missed this prototype for random_select().peter1996-09-272-2/+4
|
* I've been meaning to commit this for months. Implement select()peter1996-09-274-6/+96
| | | | | | for /dev/random and /dev/urandom. Both are always writable, urandom is always readable, and /dev/random is readable when >= 8 bits are in the pool.
* Fix a couple of bugs causing false positivespst1996-09-261-6/+3
|
* Fixed a few hundred warnings (2400 in LINT) for signed vs unsignedbde1996-09-242-12/+26
| | | | | | | | | | | | | comparisons in the inb() and outb() macros. I decided that int args are OK here. Any type that can hold a u_int16_t without overflow is correct, and 32-bit types are optimal. Introduced a few tens of warnings (100 in LINT) for use of pessimized (short) types for the port arg. Only a few drivers are affected by this. u_short pessimizations aren't detected. Added `__extension__' before the statement-expression in inb() so that it can be compiled without warnings by gcc -pedantic.
* Eliminated includes of the "temporary" backwards compatibility headerbde1996-09-241-7/+7
| | | | | | <sys/dir.h> in applications. Maintained existing (inadequate) ifdefs for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any new ones.
* call srandom() during the boot to start the sequence with a slightly lesspeter1996-09-231-1/+9
| | | | predictable seed.
* add simple srandom() and prototypepeter1996-09-232-3/+12
|
* add forgotten $Id$wosch1996-09-223-1/+5
|
* Remove the extra length field from the utrace entries. It's redundant.phk1996-09-222-16/+6
|
* Reformatted FreeBSD additions to match 4.4Lite style. Mixed tabs andbde1996-09-221-7/+7
| | | | spaces after #define's look ugly in diffs.
* Fixed a bug with the management of the pointer to the first TxCB in thedg1996-09-222-98/+76
| | | | | | | ring that caused wrong things to happen sometimes. Doubled the number of transmit descriptors to 128 so that the internal FIFO in the NIC can be fully filled when dealing with small packets. Several minor performance improvements.
* Remove the code that renices +4 a process that has had 10 minutes ofgpalmer1996-09-221-7/+2
| | | | | | CPU time. I find it slightly annoying on one of our servers here. Also disliked by: David Greenman
* Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:bde1996-09-2144-199/+288
| | | | | | | | | | | | | - don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h> instead. This was already done in 4.4Lite for the most important ioctl headers. Header spam currently increases kernel build times by 10-20%. There are more than 30000 #includes (not counting duplicates) for compiling LINT. - include <sys/types.h> if and only it is necessary to make the header almost self-sufficient (some ioctl headers still need structs from elsewhere). - uniformized idempotency ifdefs. Copied the style in the 4.4Lite ioctl headers.
* Include <sys/filio.h> explicitly - don't depend on <machine/soundcard.h>bde1996-09-211-0/+1
| | | | bogusly defining non-soundcard ioctls.
* Moved the prototype for ioctl() from <sys/ioctl.h> to <sys/ioccom.h>bde1996-09-212-10/+12
| | | | | so that applications don't have to include <sys/ioctl.h> just to get a prototype for ioctl().
* I don't understand, I committed this fix (move a counter and fixed a typo)pst1996-09-212-8/+6
| | | | | | this evening. I think I'm going insane.
* Syntax error: so_incom -> so_incompache1996-09-212-4/+4
|
* Fiexed CFLAGS. Compiling things in the kernel without -O now causesbde1996-09-211-2/+2
| | | | | zillions of warnings about static inline functions because `inline' is ignored without -O.
* If the incomplete listen queue for a given socket is full,pst1996-09-202-10/+36
| | | | | | | | | | | | | | | | | drop the oldest entry in the queue. There was a fair bit of discussion as to whether or not the proper action is to drop a random entry in the queue. It's my conclusion that a random drop is better than a head drop, however profiling this section of code (done by John Capo) shows that a head-drop results in a significant performance increase. There are scenarios where a random drop is more appropriate. If I find one in reality, I'll add the random drop code under a conditional. Obtained from: discussions and code done by Vernon Schryver (vjs@sgi.com).
* Don't include <sys/conf.h> for the kernel in disk-related headers.bde1996-09-2011-39/+38
| | | | | | | | | | It is needed for implementation details but very little of it is needed for the interface. Include it in the few places that didn't already include it. Include <sys/ioccom.h> in <sys/disklabel.h> (as already in <sys/diskslice.h>) so that all the disk-related headers are almost self-sufficient.
* Changed an arg name in the pseudo-prototype for bzero() to matchbde1996-09-203-69/+84
| | | | | | | | | | | | | | | | | | | | the prototype. Put the jump table for i486_bzero() in the data section. This speeds up i486_bzero() a little on Pentiums without significantly affecting its speed on 486's. Don't waste time falling through 14 nop's to return from do1 in i486_bzero(). Use fastmove() for counts >= 1024 (was > 1024). Cosmetic. Fixed profiling of fastmove(). Restored meaningful labels from the pre-1.1 version in fastmove(). Local labels are evil. Fixed (high resolution non-) profiling of __bb_init_func().
* Fixed lots of warnings from gcc-2.7.x about "left-hand operand ofbde1996-09-201-3/+2
| | | | | | | | | | | comma expression has no effect" in the MAKE_SET() macro. This also fixes compiling with -O3 (which removes static functions unless there is a suitable reference to them). Declaring all the static symbols as __unused would also fix the warning, but would be bogus (they are used) and wouldn't fix -O3. However, the dummy pointers for the references waste about 1.5K text and 20K symbol space for GENERIC. This wastage hasn't changed - the dummy pointers are just nonzero now.
* Fixed a bug in the receive buffer allocation code that resulted in adg1996-09-202-10/+28
| | | | | panic if an mbuf cluster couldn't be allocated. This was caused by a failure to re-initialize m_data when the old mbuf/mbcluster was recycled.
* Handle ICMP codes defined in RFC1812 more appropriatelypst1996-09-201-1/+7
|
* Whoops, I should've used the LINT config file. More ts -> tv changesnate1996-09-204-18/+18
| | | | for timespec structure.
* Whoops, I should've used the LINT config file. More ts -> tv changesnate1996-09-208-48/+48
| | | | for timespec structure.
* Add back shutdown support, this time using the at_shutdown() mechanism.dg1996-09-202-28/+22
|
* When the devconf stuff was ripped out of the kernel, the ripper neglecteddg1996-09-202-36/+34
| | | | | | | | to deal with the fact that we relied on devconf to do the shutdown callouts in various drivers. The changes in this commit are to add support for device shutdown in this driver via the new at_shutdown() mechanism. Similar changes need to be made to all of the other drivers that need a shutdown routine called (if_de.c comes to mind immediately).
OpenPOWER on IntegriCloud