summaryrefslogtreecommitdiffstats
path: root/sys/kern
Commit message (Collapse)AuthorAgeFilesLines
* convert FDESC, KERNFS, NULLFS, PORTAL, UMAPFS, and UNION to the newwollman1996-01-052-2/+20
| | | | style of options.
* Somehow managed to miss these four files when converting the SYSV IPCwollman1996-01-054-4/+12
| | | | options over to the new style.
* Convert DDB to new-style option.wollman1996-01-046-6/+13
|
* Convert SYSV IPC to new-style options. (I hope I got everything...)wollman1996-01-046-8/+15
| | | | The LKMs will need an extra file, to come later.
* Fixed minor struct cred leak. Discovered while looking for the oppositedg1996-01-041-5/+8
| | | | | | condition - too many frees, which has yet to be found. Reviewed by: dyson
* Converted two options over to the new scheme: USER_LDT and KTRACE.wollman1996-01-0312-24/+35
|
* Moved the #ifdef DIAGNOSTIC in vrele() so that the check for negativedg1996-01-022-6/+6
| | | | v_usecount is always performed and only the call to vprint is conditional.
* Fix the reversed source and dest args to bcopy() in the kernel spacepeter1996-01-011-2/+2
| | | | | | | | sysctl handler (ouch!) Add a "const" qualifier to the source of the copyin() and copyout() functions - the other const warning in kern_sysctl.c was silenced when copyout was declared as having a const source.. (which it is)
* fill in kinfo_eproc.e_login - otherwise a sysctl to read the eprocs wontpeter1996-01-011-1/+3
| | | | | get the login names, and "ps -ax -O login" will return an empty column under the login name.
* Only #include <sys/shm.h> if SYSVSHM (for shmexit() prototype)peter1996-01-011-2/+8
| | | | Add missing #include <sys/sem.h> if SYSVSEM (for semexit() prototype)
* Make pipe() return a set of bidirectional pipe fd's rather than one-way onlypeter1996-01-011-3/+3
| | | | | | | | | just like on SVR4. This has no effect on any current programs in our source, but makes the use of SVR4 code a little easier. There is no code or implementation cost in the kernel.. This two-line change merely sets the modes on the ends of the pipes to be bidirectional. There are no other changes.
* recording cvs-1.6 file deathpeter1995-12-301-82/+0
|
* Implemented non-statistical kernel profiling. This is based onbde1995-12-291-5/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | looking at a high resolution clock for each of the following events: function call, function return, interrupt entry, interrupt exit, and interesting branches. The differences between the times of these events are added at appropriate places in a ordinary histogram (as if very fast statistical profiling sampled the pc at those places) so that ordinary gprof can be used to analyze the times. gmon.h: Histogram counters need to be 4 bytes for microsecond resolutions. They will need to be larger for the 586 clock. The comments were vax-centric and wrong even on vaxes. Does anyone disagree? gprof4.c: The standard gprof should support counters of all integral sizes and the size of the counter should be in the gmon header. This hack will do until then. (Use gprof4 -u to examine the results of non-statistical profiling.) config/*: Non-statistical profiling is configured with `config -pp'. `config -p' still gives ordinary profiling. kgmon/*: Non-statistical profiling is enabled with `kgmon -B'. `kgmon -b' still enables ordinary profiling (and distables non-statistical profiling) if non-statistical profiling is configured.
* 1) ifdef out some unused functions (for now)markm1995-12-291-20/+26
| | | | | | | 2) improve 586 support 3) add 686 support 4) clean up comments etc Submitted by: bde
* 1) Add #include <machine/cpu.h> to catch some 586 #definesmarkm1995-12-281-2/+3
| | | | | 2) swap the 2 arguments to outb (kato) Pointed out by: Kato Takenori <kato@eclogite.eps.nagoya-u.ac.jp>
* Gack - if you're going to call semexit() from elsewhere, it shouldn'tjkh1995-12-281-2/+2
| | | | be static.. :-)
* Call semexit() from exit(), in order to process `undo vectors'.joerg1995-12-272-3/+6
| | | | This function has actually never been called.
* random_machdep.c: New version, also includes revectored interrupts, rathermarkm1995-12-271-204/+245
| | | | | than hooking permanently. vector.s: : Remove the interrupt hook. This is done dynamically, now.
* I report a problem about shmget(). (I'm using FreeBSD-2.1.0R)joerg1995-12-261-2/+2
| | | | | | | | | int shmget(key_t key, int size, int shmflg); If the 'key' has already existed in the system and set 'shmflg' as '(IPC_CREAT|IPC_EXC)', then shmget() must return the error 'EEXIST'. Submitted by: m_tanaka@pa.yokogawa.co.jp (Mihoko Tanaka)
* Renamed isa/random.c to isa/random_machdep.c to avoid a conflict withbde1995-12-261-0/+435
| | | | libkern/random.c.
* 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-261-1/+3
|
* 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.
* 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.
* Remove crufty "pg" function.phk1995-12-221-9/+1
|
* i386/i386/conf.c is no longer needed.. remove it from files.i386julian1995-12-211-1/+78
| | | | | | | | | | | 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.
* Corrected a typo in a comment.dg1995-12-191-2/+2
|
* Implemented a (sorely needed for years) double fault handler to catch stackdg1995-12-191-3/+31
| | | | | | | | | | 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.
* Staticize.phk1995-12-179-52/+58
| | | | | | | | | | | | Unstaticize a function in scsi/scsi_base that was used, with an undocumented option. My last count on the LINT kernel shows: Total symbols: 3647 unref symbols: 463 undef symbols: 4 1 ref symbols: 1751 2 ref symbols: 485 Approaching the pain threshold now.
* Add an obscure feature, needed for debugging.phk1995-12-171-9/+11
|
* Updated to match 1TB filesize changes. Some pindexes were still offsetsbde1995-12-171-7/+9
| | | | and weren't converted. ptrace() was broken.
* Oops, the last commit missed one change from 200 to OBUFSIZ + 100.bde1995-12-161-2/+2
|
* Removed dead debugging code.bde1995-12-161-7/+1
|
* Uniformized pr_ctlinput protosw functions. The third arg is now `voidbde1995-12-161-2/+2
| | | | | | | *' instead of caddr_t and it isn't optional (it never was). Most of the netipx (and netns) pr_ctlinput functions abuse the second arg instead of using the third arg but fixing this is beyond the scope of this round of changes.
* Removed unused function lkmenodev().bde1995-12-161-19/+1
|
* Update sysv_*.c to get their argument definitions from sysproto.hpeter1995-12-153-31/+68
|
* Regenerated from syscalls.master...peter1995-12-152-2/+68
|
* Add the direct sysv shm/sem/msg system calls, in the same way as NetBSD.peter1995-12-151-1/+44
| | | | | This costs very little, we gain prototypes for the calls from the linux emulator, and this is one less thing in the way of NetBSD binary support.
* Oops. I forgot the change to this file for supporting static configurationpeter1995-12-151-3/+3
| | | | of the linux emulator.
* Changed the maximum output queue count from (TTMAXHIWAT + 200) tobde1995-12-151-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (TTMAXHIWAT + OBUFSIZ + 100) in case someone changes OBUFSIZ. 200 was to allow 100 above high water for ordinary writes and another 100 for kernel printfs. Increased the reserved output queue count from 512 to the maximum output queue count. This prevents exhaustion of clists and increases the output throughput for 8 cy lines by almost a factor of 2 (on a system where there aren't many other open ttys so clists become exhausted after about 4 active lines (or earlier if TTMAXHIWAT is increased :-]). ttwrite() behaves very badly when clists are exhausted: (1) it sleeps on lbolt instead of on TSA_OLOWAT(tp). This could be fixed adequately by sleeping on TSA_OLOWAT(tp). The nonzero reserved count guaratees that space will become available independent of other ttys, and a reserved count of 512 is barely enough for efficiency. (2) it drops output if space runs out in the middle of special output processing. This is too hard to fix without hardening the reserved count. The watermark processing guarantees that space doesn't run out only if the advertised space is guaranteed. Increasing the reserved output queue count defeats the point of dynamic allocation of clists. Previously, about 2K of memory per tty was reserved (the raw queue was already reserved). Now, about 3.5K is reserved. Reserving everything would take a whole 0.5K more.
* Disabled the sleep in ttyflush(). It can't work in general becausebde1995-12-151-1/+15
| | | | | | ttyflush() might be called from an interrupt handler. This fixes panics in IXOFF mode at the cost of more failures to send the START character to exit from IXOFF mode.
* Fixed staticization of DDB functions.bde1995-12-142-4/+4
|
* Nuked ambiguous sleep message strings:bde1995-12-144-21/+11
| | | | | | | old: new: netcls[] = "netcls" "soclos" netcon[] = "netcon" "accept", "connec" netio[] = "netio" "sblock", "sbwait"
* Restored unused function ttrstrt(). It would be used if the low levelbde1995-12-141-1/+27
| | | | drivers supported inter-character delays.
* GENERIC/LINT: Remove redundant quoting on some option lines.peter1995-12-141-3/+3
| | | | | | | | | | | | LINT: add a couple of new/missing/undocumented options files.i386: add linux code so that you can compile a kernel with static linux emulation ("options LINUX") i386/*: use #if defined(COMPAT_LINUX) || defined(LINUX) to enable static support of linux emulation (just like "IBCS2" makes ibcs2 static) The main thing this is going to make obvious, is that the LINUX code (when compiled from LINT) has a lot of warnings, some of which dont look too pleasant..
* Another mega commit to staticize things.phk1995-12-144-34/+51
|
* A Major staticize sweep. Generates a couple of warnings that I'll dealphk1995-12-1429-160/+185
| | | | | | with later. A number of unused vars removed. A number of unused procs removed or #ifdefed.
* Make math_emulators LKMable.phk1995-12-141-7/+9
|
OpenPOWER on IntegriCloud