summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Added macros CROSSJUMP(), CROSSJUMP_LABEL() and GPROF_RET. These willbde1996-10-162-52/+60
| | | | | | be used to fix some benign(?) bugs in GUPROF profiling. Fixed stale comments and long lines.
* Allow the utimes call to work on devfs nodes.julian1996-10-161-3/+2
|
* Prepare kernel to take advantage of "branded" ELF binaries.sos1996-10-165-68/+102
|
* Add support for embedded operation withou consolejulian1996-10-164-19/+53
| | | | | The boot.c patch is applied only to teh JULIAN_HACK branch the muted console is controlable by a sysctl variable kern.consmute
* Corrected the setting of winsize on open().sos1996-10-153-15/+30
| | | | Problem pointed out by David Nugent - davidn@blaze.net.au.
* Preserve file flags in accept(2).wollman1996-10-151-2/+4
| | | | Submitted by: fredriks@mcs.com in PR#1775 (this implmentaion is different)
* Updated #includes to 4.4lite style.bde1996-10-1516-33/+36
|
* Removed nested include of <sys/proc.h> from <vm/vm_object.h> and fixedbde1996-10-153-6/+6
| | | | | | | | | | the one place that depended on it. wakeup() is now prototyped in <sys/systm.h> so that it is normally visible. Added nested include of <sys/queue.h> in <vm/vm_object.h>. The queue macros are a more fundamental prerequisite for <vm/vm_object.h> than the wakeup prototype and previously happened to be included by namespace pollution from <sys/proc.h> or elsewhere.
* Forward-declared `struct route' for the KERNEL case so that <net/route.h>bde1996-10-151-5/+7
| | | | | | isn't a prerequisite. Fixed style of ifdefs.
* Synchronized with biosboot/Makefile:bde1996-10-151-6/+8
| | | | | | - use gcc-2.7.2 alignment features - get CWARNFLAGS form <bsd.kern.mk> - fixed whitespace differences.
* Move much of the machine dependent code from vm_glue.c intodyson1996-10-157-126/+404
| | | | | pmap.c. Along with the improved organization, small proc fork performance is now about 5%-10% faster.
* Fixed setting of the keyboard LEDs. For some keyboards and/or keyboardbde1996-10-141-11/+69
| | | | | | | | | | | | | | | | | | | | | controllers, it is an error to issue a command before the keyboard has had time to reply to the previous command. Setting the LEDs involves issueing 2 commands, so it never worked on these keyboards. Fixed resetting of keyboard. It is possible for unprocessed scancodes to be present when the reset routine is called. This usually occurs after switching from one console driver to another in userconfig. pcvt and syscons attempt to flush any stale scancodes, but sometimes fail to do so because keyboard and/or keyboard controller takes a long time to send the scancodes after reset (scancodes are apparently not flushed by reset!). syscons handles this later by not checking for errors at strategic places, but pcvt was confused. Use an impossible initial and failure mode setting for the LEDs so that the LEDs always get set if they are possibly out of sync. Added missing spltty() in update_led().
* Change the boot-time menu.jkh1996-10-141-29/+92
|
* Expose the control mechanism for serial console boot so that the defaultpst1996-10-142-12/+34
| | | | | | | | | shipped with freebsd can be changed without modifying the Makefiles directly. Creates: BOOT_FORCE_COMCONSOLE BOOT_PROBE_KEYBOARD BOOT_PROBE_KEYBOARD_LOCK BOOT_COMCONSOLE (port value for console)
* Fixed a bug that got introduced when I changed the CY16_RESET anddg1996-10-143-9/+9
| | | | | CY_CLEAR_INTR definitions. This might have affected probing of ISA versions of the Cyclom 16/32-Y.
* Make this compile again for the CyDebug case.dg1996-10-143-18/+21
|
* pci_map_mem() did a too restrictive check on the mapping type:se1996-10-142-4/+8
| | | | | | PCI_MAP_MEMORY_TYPE_32BIT_1M should be accepted as well as PCI_MAP_MEMORY_TYPE_32BIT (and now is). (Problem reported by David Greenman.)
* Oops, PROBE_KEYBOARD_LOCK wasn't supposed to be enabled by default.bde1996-10-141-4/+3
|
* Move the initialization of np->ns_sync and ns_async out of ncr_getclock(),se1996-10-141-4/+4
| | | | | which does no longer get called for non-Ultra cards. Fix suggested by Gerard Roudier, slightly modified by me.
* Remove some old compatibility names.phk1996-10-132-10/+2
|
* Stop using old compatibility names from buf.hphk1996-10-131-3/+3
|
* Remove a stale comment.phk1996-10-131-2/+1
|
* Pmap_resident_count was mistakenly removed from pmap.h, therebydyson1996-10-132-0/+4
| | | | | disabling the RSS listing in ps and ^T. This commit re-inserts the macro defn.
* Minor optimization for final rundown of a pmap.dyson1996-10-132-2/+12
|
* Change DEVFS device naming convention for cuac*, ttyc*.dg1996-10-133-21/+39
|
* Changes to add support for the PCI version of the Cyclades Cyclom-Ydg1996-10-139-409/+811
| | | | serial adapter, and support for multiple Cyclom controllers.
* Fixed lblktosize(). It overflowed at 2G. This bug only affectedbde1996-10-121-4/+7
| | | | | | | | | | | | | | | | | | ufs_read() and ufs_write(). Found by: looking at warnings for comparing the result of lblktosize() (which is usually daddr_t = long) with file sizes (which are u_quad_t for ufs). File sizes should probably be off_t's to avoid warnings when the are compared with file offsets, so the fixed lblktosize() casts to off_t instead of u_quad_t. Added definition of smalllblksize(). It is the same as the old lblksize() and is more efficient for small block numbers on 32-bit machines. Use smalllblktosize() instead of its expansion in blksize() and dblksize(). This keeps the line length short and makes it more obvious that the shift can't overflow.
* Undo a mistaken change from splhigh to splvm. Subr_rlist has beendyson1996-10-121-4/+4
| | | | | | capable of being used for things other than swap space allocation, and splvm would have been appropriate for only swap space allocation and other VM things. My commit broke that (and was actually a mistake.)
* Performance optimizations. One of which was meant to go in before thedyson1996-10-127-249/+103
| | | | | | | | previous snap. Specifically, kern_exit and kern_exec now makes a call into the pmap module to do a very fast removal of pages from the address space. Additionally, the pmap module now updates the PG_MAPPED and PG_WRITABLE flags. This is an optional optimization, but helpful on the X86.
* Cleaned up:bde1996-10-124-42/+30
| | | | | | | | | | | | - fixed a sloppy common-style declaration. - removed an unused macro. - moved once-used macros to the one file where they are used. - removed unused forward struct declarations. - removed __pure. - declared inline functions as inline in their prototype as well as in theire definition (gcc unfortunately allows the prototype to be inconsistent). - staticized.
* Removed __pure's and __pure2's. __pure is a no-op for recent versionsbde1996-10-122-10/+7
| | | | | of gcc by definition, and __pure2 is a no-op in effect (presumably the compiler can see when an inline function has no side effects).
* Removed nested include if <sys/socket.h> from <net/if.h> andbde1996-10-1211-15/+20
| | | | | | | <net/if_arp.h> and fixed the things that depended on it. The nested include just allowed unportable programs to compile and made my simple #include checking program report that networking code doesn't need to include <sys/socket.h>.
* Log the interface name which received the packet.alex1996-10-121-8/+9
| | | | Suggested by: Hal Snyder <hsndyer@thoughtport.com>
* Staticized `nfs_dwrite'.bde1996-10-122-4/+4
|
* Staticized. Things exported by linker sets should always be static.bde1996-10-122-4/+4
|
* Fix previous commit: The INB/OUTB macros require np->vaddr to bese1996-10-121-10/+10
| | | | | | initialized, or a kernel panic will occur. Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
* Moved declarations of tsleep() and wakeup() from proc.h to systm.h sobde1996-10-122-4/+9
| | | | that proc.h doesn't have to be included so often.
* Removed verbose comment about `securelevel'. It just duplicated partbde1996-10-121-29/+2
| | | | of init.8 except for bugs and anachronisms.
* reads and writes to devices update m and a timesjulian1996-10-121-3/+9
| | | | | | add some security onn the chmod/chown operations should now be root or owner (still needs more thought but kinda-plugs tow holes pointed out by bde)
* Improve support of SCSI cards based on the 53c860 and 53c875.se1996-10-112-67/+124
| | | | | | | | | | | Still no support for Ultra-SCSI and other new features, but the code should now correctly initialize the clock pre-scaler (based on freqency measurement results, if necessary). Fix support of 16 targets for WIDE SCSI. Disable bus reset in case no progress is made for too long ("ncr dead" message), which did not work too well with scanners and other slow devices.
* Fix two bugs I accidently put into the syn code at the last minutepst1996-10-114-28/+40
| | | | | | | | | | (yes I had tested the hell out of this). I've also temporarily disabled the code so that it behaves as it previously did (tail drop's the syns) pending discussion with fenner about some socket state flags that I don't fully understand. Submitted by: fenner
* Add primitive link MIB support.wollman1996-10-111-1/+3
|
* Implement the RFC 1650 MIB.wollman1996-10-112-12/+128
|
* Yikes! This must have fallen in with a mass-commit by mistake.jkh1996-10-111-2/+2
| | | | | Put RELEASE back. Pointed-out-by: peter
* This fixes a problem with the nfs socket handling code which happensdfr1996-10-115-20/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | if a single process is performing a large number of requests (in this case writing a large file). The writing process could monopolise the recieve lock and prevent any other processes from recieving their replies. It also adds a new sysctl variable 'vfs.nfs.dwrite' which controls the behaviour which originally pointed out the problem. When a process writes to a file over NFS, it usually arranges for another process (the 'iod') to perform the request. If no iods are available, then it turns the write into a 'delayed write' which is later picked up by the next iod to do a write request for that file. This can cause that particular iod to do a disproportionate number of requests from a single process which can harm performance on some NFS servers. The alternative is to perform the write synchronously in the context of the original writing process if no iod is avaiable for asynchronous writing. The 'delayed write' behaviour is selected when vfs.nfs.dwrite=1 and the non-delayed behaviour is selected when vfs.nfs.dwrite=0. The default is vfs.nfs.dwrite=1; if many people tell me that performance is better if vfs.nfs.dwrite=0 then I will change the default. Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
* Mostly some fixes from bde to start support for ASYNC I/O (SIGIO).dyson1996-10-111-11/+19
| | | | Submitted by: bde
* Added a bdev and cdev for "geometry disk", my generic disk geometry subsystem.phk1996-10-102-4/+6
| | | | I really wish somebody would complete DEVFS :-(
* Implement the 802.3 MIB in a way that uses the generic interfacewollman1996-10-102-6/+34
| | | | defined in if_mib.h.
* Don't include "opt_cpu.h" in <machine/clock.h>, since this breaks lkm's.bde1996-10-105-9/+11
| | | | | The change breaks kern_clock.c; fix that temporarily by including "opt_cpu.h" there.
* Added missing include of "opt_cpu.h". I missed it because PERFMONbde1996-10-101-1/+3
| | | | | | features are used without testing for i586 features that they depend on. Configuring option PERFMON without configuring a suitable cpu still doesn't fail right.
OpenPOWER on IntegriCloud