summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Checkpoint the beginnings of the new kernel interface forwollman1997-01-073-3/+254
| | | | | | | multicast group memberships. This is not actually operative at the moment (a lot of other code still needs to be changed), but this seemed like a useful reference point to check in so that others (i.e. Bill Fenner) have fair warning of where we are going.
* > The extra include of <sys/time.h> is because apm uses microtime() and mynate1997-01-072-22/+4
| | | | | | | | | > <sys/param.h> doesn't include <sys/time.h> > > I removed the NAPM check since it's wasteful to check twice. apmprobe() > checks the unit number, and that's the right check. Submitted by: bde
* Made minimal changes to make this work again (it depended on devconf).bde1997-01-071-9/+5
| | | | | | | swapgeneric.c hasn't had anything to do with swapping for some time. It just makes the -a boot option actually work, and breaks the static configuration of rootdev and dumpdev. It should be reorganized to only support -a.
* Use rlim_t for rlim_cur, rlim_max as supposedache1997-01-061-3/+3
|
* Fix typo..sos1997-01-061-3/+3
|
* - Cleanup up the driver (remove un-needed parameters, white-space,nate1997-01-0611-182/+168
| | | | | | | | etc..), plus add a better display suspend function. - Changed the Copyright's to reflect the new 'jp.FreeBSD.org' email address. Submitted by: nate & HOSOKAWA, Tatsumi <hosokawa@jp.FreeBSD.org>
* Fix NetBSD pr kern/3067, which also applies to FreeBSD:se1997-01-051-3/+3
| | | | | | | | | NCR driver dies when "xmcd" accesses the CD-ROM drive Restrict cacheing of INQUIRY results to LUN 0. Thanks to Dave Huang <khym@bga.com> for reporting the problem and suggesting a fix, though I chose a slightly different one.
* Move typedef for rlim_t into sys/types.h (as per NetBSD).davidn1997-01-051-1/+3
|
* Undo RCS keyword change to keep the original `$NetBSD$'.kato1997-01-0514-14/+14
| | | | Pointed out by: j@uriah.heep.sax.de (J Wunsch)
* Minor white-space and comment cleanups. No functional change.nate1997-01-053-9/+30
| | | | Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
* Fix for PR/2333 - psm0 panics if no mouse attached:nate1997-01-051-2/+7
| | | | | | | The problem is that `psmopen()' doesn't validate a pointer before using it. Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
* Synchronize with sys/i386/isa/npx.c revision 1.36 (reenablekato1997-01-051-3/+1
| | | | i586_optimized_copyin/out).
* Fix collapse code included in #ifdef WDDEBUG: add `;' at the end of thekato1997-01-041-4/+4
| | | | | | line, and `"' at the end of first argument of printf(). Submitted by: Michio "Karl" Jinbo <karl@marcer.nagaokaut.ac.jp>
* Fix cursor address calculation.kato1997-01-041-1/+1
| | | | Submitted by: Michio "Karl" Jinbo <karl@marcer.nagaokaut.ac.jp>
* Reenabled i586_optimized_copyin/out yet again.bde1997-01-043-9/+3
|
* Fixed context switching of FPU state after a fault inbde1997-01-043-9/+60
| | | | i586_optimized_copyin/out.
* Fixed botched tables:bde1997-01-042-256/+294
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - the operands for bt, bts, arpl and `enter' were reversed. - btr was reported as bts (with the correct operand order). - cmpxchg was misplaced. It was misplaced differently in the comments. It is misplaced differently again in the i486 manual. I put it where the i586 manual and gas say it is. - fucompp was misplaced. - the rr table for(s) some versions of fstp, fcom and fcomp was non-null. This caused some invalid opcodes to be reported as "" instead of as "<bad instruction>". - the word and long versions of the fi* instructions were reversed. - aaa and daa were reversed. Fixed bugs involving unusual operand sizes: - 32-bit registers weren't always forced for bswap or for moves to and from special registers. - the operand sizes weren't reported for [l]call or [l]jmp. - displacements weren't truncated mod 2^16 when the operand size was 16-bit. - too-large displacements and offsets were fetched, and too-large offsets were reported, when the operand size was 16-bit. - sign extended immediate bytes were extended too far when the operand size was 16-bit. Fixed bugs involving usual operand sizes: - 8-bit source registers weren't forced for mov[sz]b[wl]. - 16-bit source registers weren't forced for mov[sz]w[wl]. - immediate bytes were sometimes reported as sign extended even for byte operations. Same for immediate words in word operations. - the immediate byte was not reported as sign extended for `push'. Finished Pentium support: - cpuid, cmpxchg8b and rsm were missing. Finished i287 support: - fneni, fndisi and fsetpm were missing. These are harmless nops on later FPUs. Improvements: - report invalid opcodes 0xd6 and 0xf1 using .byte. They are special in not causing invalid operand exceptions when executed. - report the immediate byte for unusual aam and aad instuctions. Immediate bytes other than 0x0a always worked and are documented to work on Pentiums.
* Delete collapse code to avoid overflow of the number of cylinders.kato1997-01-041-15/+1
| | | | | This should be in 2.2 after src/sys/i386/isa/wdreg.h revsion 1.15 (short -> u_short change) is merged.
* Change types of wdp_cylinders, wdp_heads and wdp_sectors in structkato1997-01-041-4/+4
| | | | | | | | | | | wdparams from short into u_short. If wdp_cylinders is short, it overflows and cause serious sign extension bug when large IDE HDD is used. These members are only used for initialization of u_long variables in both 3.0-current and RELENG_2_2 branch. I believe this should be in 2.2. Reviewed by: Bruce Evans <bde@zeta.org.au>
* (1) Change iomem of SMIT transfer mode from 0xdd000 (BIOS ROM basekato1997-01-042-6/+10
| | | | | | | | | address+0x1000) into 0xdc000 (BIOS ROM base address). (2) Add sample line for Logitec LHA-20x SCSI card. (3) Change I/O port address of ed8 (C-NET(98) card) from 0x00d0 into 0x03d0 (vendor default). Submitted by: Michio "Karl" Jibo <karl@marcer.nagaokaut.ac.jp>
* Clean-up.kato1997-01-042-10/+9
| | | | Submitted by: Michio "Karl" Jinbo <karl@marcer.nagaokaut.ac.jp>
* Staticize dma_bouncebuf. This variable was kept global because sbickato1997-01-041-3/+3
| | | | | | driver used it. The sbic driver has been obsoleted now, so the variable can be static as that in isa.c. This is a 2.2 candidate.
* Correct I/O port address table for ELECOM LD-BDN ethernet card.kato1997-01-041-8/+2
| | | | Should be in 2.2.
* Add `#ifdef PC98' to include PC98-specific code. Add declaration of thekato1997-01-043-6/+15
| | | | | function rtc_outb(). This is a 2.2 candidate.
* Expose more of these structures to tthe user so that netstatwollman1997-01-031-3/+3
| | | | | | doesn't walk around with its KERNEL exposed. More commits to follow...
* Move the ethertypes from <netinet/if_ether.h> to <net/ethernet.h>.wollman1997-01-032-18/+20
| | | | | | Many programs need the numbers but don't need the internals of ARP. More commits to follow...
* Separate kernel-internal data structures from exposed user interfacewollman1997-01-032-272/+308
| | | | | | to interfaces. (Amazing nobody had done this!) More commits to fix up user-land to follow.
* Undo the collapse breakage (swap space usage problem.)dyson1997-01-034-16/+4
|
* Oops, delete extra push %edi and push %esi in memsize().kato1997-01-031-3/+1
| | | | Submitted by: Michio "Karl" Jinbo <karl@marcer.nagaokaut.ac.jp>
* Change IMR of master PIC from 0x7f into 0xff in isa_defaultirq().kato1997-01-031-2/+2
| | | | This is a 2.2 candidate.
* Add code to copy the LDT, if required.se1997-01-022-2/+32
| | | | | | | | | | | | | | This code was sent to me by Bruce Evans, and seems to fix some possible kernel panic in case of an execution error. It did not cause any problems on my system, but I did never observe the problem this patch is supposed to fix, anyway. This patch is a NOP, unless the kernel is built with "options USER_LDT", and doesn't affect the GENERIC kernel for this reason. I want to have it in 2.2: it fixes a bug ... Submitted by: bde
* Add Intel VX chip set specific detection and register dump code.se1997-01-021-1/+56
| | | | Submitted by: brianc@netrover.com (Brian Campbell)
* Make it possible to test kernel code in a userland harness, even if itphk1997-01-011-1/+3
| | | | uses MAKE_SET or derivatives and <sys/time.h> at the same time...
* Guess what? We left alot of the old collapse code that is not neededdyson1997-01-014-2/+15
| | | | | | anymore with the "full" collapse fix that we added about 1yr ago!!! The code has been removed by optioning it out for now, so we can put it back in ASAP if any problems are found.
* A very significant improvement in the management of process mapsdyson1996-12-312-43/+46
| | | | | | | | | | | | | | and objects. Previously, "fancy" memory management techniques such as that used by the M3 RTS would have the tendancy of chopping up processes allocated memory into lots of little objects. Alan has come up with some improvements to migtigate the sitution to the point where even the M3 RTS only has one object for bss and it's managed memory (when running CVSUP.) (There are still cases where the situation isn't improved when the system pages -- but this is much much better for the vast majority of cases.) The system will now be able to much more effectively merge map entries. Submitted by: Alan Cox <alc@cs.rice.edu>
* Fix (properly, I hope) 'panic: sillyrename dir' crash that can happenwpaul1996-12-312-4/+6
| | | | | | | | | | | | | | | | | | | | if you do: % cd /nfsdir % mkdir -p foo/foo % mv foo/foo . nfs_sillyrename() self-destructs if you try to sillyrename a directory, however nfs_rename() can be coerced into doing just that by the above sequence of commands. To avoid this, nfs_rename() now checks that v_type of the 'destination' vnode != VDIR before attempting the sillyrename. The server correctly handles this particular situation by returning ENOTEMPTY on the rename() attempt. I asked if this was the correct fix for this on -hackers but nobody ever answered. This is a 2.2 candidate.
* A couple of changes for proper mpu401 recognition, and an opl3 patchjkh1996-12-303-15/+21
| | | | | | | taken from the voxware-3.5 distribution. Also some changes to the SB and MPU IRQs to reflect more common/default settings. Submitted-By: Brian Campbell <brianc@netrover.com>
* Apply a similar fix as in gsc.c rev 1.23.joerg1996-12-301-2/+1
| | | | Pointed out by: bde
* Apparently, someone changed the gsc driver to allocate one big bufferjoerg1996-12-301-1/+0
| | | | | | | | | | | | at device attach time, instead of allocating and freeing buffers as necessary. But he or she forgot to remove the line that invalidated the buffer when the device is closed. Therefore, after using the device for the first time, the buffer was incorrectly invalidated and that caused a page fault on the second, and subsequent uses. Closes PR # kern/2319: Using Genius GS-4500 scanner... Submitted by: jmrueda@diatel.upm.es (Javier Martmn Rueda)
* Update our kernel ntp code to the latest from David Mills. The main changejhay1996-12-306-389/+777
| | | | | is the addition of the FLL code, which is used by the latest versions of xntpd. The kernel PPS code is also updated, although I can't test that yet.
* Add NetBSD/OpenBSD compatable timeradd()/timersub() user-space macros.peter1996-12-302-2/+44
| | | | | | | These are deliberately not visible to the kernel since we have timevaladd() and timevalsub() functions there. Obtained from: NetBSD/OpenBSD
* Add INADDR_LOOPBACK, moved from <rpc/rpc.h>peter1996-12-301-1/+2
|
* First commit of a series of cleanups for the libc rpc code which has beenpeter1996-12-301-7/+3
| | | | | | | | | | | suffering a bad case neglect for the last few years. - Add full prototypes, including to function pointers. - Make the wire protocols 64-bit type safe, eg: 32 bit quantities are int32_t, not long. The orginal rpc code was implemented when an int could be 16 bits. Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* Let the VM system know that on certain arch's that VM_PROT_READdyson1996-12-303-3/+19
| | | | | | | | | | | | | | also implies VM_PROT_EXEC. We support it that way for now, since the break system call by default gives VM_PROT_ALL. Now we have a better chance of coalesing map entries when mixing mmap/break type operations. This was contributing to excessive numbers of map entries on the modula-3 runtime system. The problem is still not "solved", but the situation makes more sense. Eventually, when we work on architectures where VM_PROT_READ is orthogonal to VM_PROT_EXEC, we will have to visit this issue carefully (esp. regarding security issues.)
* EEEK!!! useracc and kernacc didn't lock their respectivedyson1996-12-301-2/+16
| | | | | | | maps. Additionally, eliminate the map->hint distortion associated with useracc. That may/may-not be the "right" thing to do -- but time will tell. Submitted by: Partially by Alan Cox <alc@cs.rice.edu>
* Fixed keeping track of interrupt nesting level across ASTs. It sometimesbde1996-12-291-1/+3
| | | | | became -1, and this recently became fatal if an address error occurs in copyin/out/etc.
* Addphk1996-12-291-1/+7
| | | | | | | | SLIST_EMPTY(head) SLIST_FIRST(head) SLIST_NEXT(elm, field) Which do the obvious things while hiding implementation details.
* Reserve 4 malloc types for generic geometry handling.phk1996-12-291-2/+10
|
* Delete bogus inconsistency check that could cause a gratuitous panic. Idg1996-12-291-8/+1
| | | | | had added this years ago when I didn't understand all the subtilties of the flock code.
* Synchronize with sys/i386/isa/npx.c revision 1.35 (disablekato1996-12-291-1/+3
| | | | i586-optimized copyin and copyout).
OpenPOWER on IntegriCloud