summaryrefslogtreecommitdiffstats
path: root/sys/i386
Commit message (Collapse)AuthorAgeFilesLines
* Use the new if_multiaddrs list for multicast addresses rather than thewollman1997-01-135-140/+66
| | | | | | | previous hackery involving struct in_ifaddr and arpcom. Get rid of the abominable multi_kludge. Update all network interfaces to use the new machanism. Distressingly few Ethernet drivers program the multicast filter properly (assuming the hardware has one, which it usually does).
* Just 'warn' the user that they are mixing dedicated drivers and genericnate1997-01-132-2/+10
| | | | | | | code if the option 'LINT_PCCARD_HACK' is specified (which should only be used in LINT). Demanded by: bde
* Added options 'LINT_PCCARD_HACK' which (will very soon) allow LINT tonate1997-01-132-2/+8
| | | | | | | | compile again. The code to protect users from combining the dedicated PCCARD drivers and the generic code is a warning if the above option is included in the config file. Demanded by: bde
* - Add [?] key and corresponding helptext/pager.msmith1997-01-131-36/+172
| | | | | | | | | (helptext from Philippe Regnauld) - Make introfunc() work with serial terminals. (submitted by Jean-Marc Zucconi) - Eliminate excessive statusline redraw during screen updates. (requested by Peter Wemm) - Some trivial output formatting dinks.
* When we changed pmap_protect to support adding the writeabledyson1997-01-111-8/+13
| | | | | attribute to a page range, we forgot to set the PG_WRITEABLE flag in the vm_page_t. This fixes that problem.
* Moved pccard_configure() to the end of the configure() list. Thisnate1997-01-111-6/+6
| | | | | | | | | avoids problems with the PCIC controller grabbing an interrupt that another card needs. Closes PR: kernel/2405 Reviewed by: bde
* Prepare better for multi-platform by eliminating another requireddyson1997-01-111-47/+4
| | | | | pmap routine (pmap_is_referenced.) Upper level recoded to use pmap_ts_referenced.
* Staticize the functions rtc_inb, rtc_outb, rtc_serialcombit, andkato1997-01-101-4/+1
| | | | rtc_serialcom. These functions are only used by PC98.
* kern/2433: Multiple AHA1542 scsi controllers don't workphk1997-01-101-1/+2
| | | | | Reviewed by: phk Submitted by: Virgil Champlin <champlin@pa.dec.com>
* i386/2427: 2.2-BETA ft driver panics when there're no floppy drivesphk1997-01-091-1/+3
| | | | | Reviewed by: phk Submitted by: hosokawa@jp.FreeBSD.org
* Make the code more consistant by using the INTR*MASK macros througout thenate1997-01-084-8/+8
| | | | | | | | | | | code. Reviewed by: bde [ Bruce suggest removing the macros completely, but I'm not up to that task quite yet. ]
* Changed magic # 0xa0000 -> ISA_HOLE_START since it's now defined.nate1997-01-081-2/+2
|
* > 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.
* - 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>
* 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-051-3/+10
| | | | 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>
* Reenabled i586_optimized_copyin/out yet again.bde1997-01-041-3/+1
|
* Fixed context switching of FPU state after a fault inbde1997-01-041-3/+20
| | | | i586_optimized_copyin/out.
* Fixed botched tables:bde1997-01-041-128/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
* 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>
* Add code to copy the LDT, if required.se1997-01-021-1/+16
| | | | | | | | | | | | | | 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
* 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)
* Let the VM system know that on certain arch's that VM_PROT_READdyson1996-12-301-1/+3
| | | | | | | | | | | | | | 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.)
* 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.
* Superficial clean-up of useracc calls. (The useracc usage ofdyson1996-12-291-3/+3
| | | | | B_READ/B_WRITE is bogus anyway.) Might as well make the call prettier anyway.
* Allow pmap_protect to increase permissions. This mod can eliminatedyson1996-12-291-5/+7
| | | | | the need for unnecessary vm_faults. Submitted by: Alan Cox <alc@cs.rice.edu>
* Disabled i586-optimized copyin and copyout again. The fault handlerbde1996-12-281-1/+3
| | | | | | | is still broken - it doesn't restore the floating point state. 2.2-BETA users should disable it using npx0 flags 0x04 the same as 2.2-ALPHA users should have.
* Turn off qcam_debug flag by defaultache1996-12-281-1/+1
| | | | | Should go in 2.2 Reviewed by: pst
* Use breakpoint() instead of Debugger() in siointr1(). Debugger() doesn'tbde1996-12-231-3/+2
| | | | | work in fast interrupt handlers because it calls db_printf() which uses %es for string stuff and %es isn't initialized.
* Added undocumented SCSI_DELAY and SCSI_NCR_* options. SCSI_DELAY getsbde1996-12-232-2/+14
| | | | | tested a lot in GENERIC, but the others weren't in any config file and some of them were broken.
* Fixed quoting of MAXDSIZ and DFLTDSIZ. The quoting rules changed whenbde1996-12-232-6/+6
| | | | | | they were put in an options header. Should be in 2.2.
* Cosmetic (wrt. the screen display) change: when re-enabling a device,joerg1996-12-231-2/+4
| | | | | | | make sure it won't go into the PCI section. Disabling and re-enabling ed0 made it to the wrong section. Submitted by: msmith
* *Ahem* - opt_rlimit.h does not exist in the LKM case. This was anotherjkh1996-12-231-1/+3
| | | | 2.2 build-breaker.. :(
* Fix a bug in the wt driver that could cause memory corruption.joerg1996-12-231-8/+16
| | | | | | | | | | Closes PR # kern/1065. While i was at it, also reject IO requests that are not an integer multiple of the device blocksize. Submitted by: vak@crox.net.kiae.su (Serge V.Vakulenko) Confirmed by: Georg-W. Koltermann (gwk@cray.com)
* Someone needs to teach Nate about the C pre-processor in general and thejkh1996-12-232-4/+4
| | | | | | | | | | workings of #error in particular. He also broke the 2.2 build with this change, leading me to wonder whether or not the changes were ever even tested. Folks, I'm happy to see people work directly on 2.2 like this and will continue to encourage Nate to make direct commits, but please TEST before committing! I think that's a more than reasonable prerequisite, and this code could never have worked at all, leading me to believe that Nate skipped this most basic of steps.
* Make DFLDSIZ and MAXDSIZ fully-supported options.joerg1996-12-221-1/+3
| | | | "Don't forget to do a ``make depend''" :-)
* Document MAXDSIZ and DFLDSIZ. This is a 2.2 candidate change.dyson1996-12-222-2/+28
|
* Add & Document MD5 option.phk1996-12-222-2/+14
|
* PCCARD support safety belts.nate1996-12-212-2/+16
| | | | | | | | Don't allow people to use the 'dedicated' drivers at the same time as the generic support code, as it can cause all sorts of problems including kernel crashes. [ definite 2.2 material ]
* Give MFS_ROOT priority over NFS as root filesystem.phk1996-12-211-9/+10
| | | | 2.2 candidate.
* Mention amd driver in comment regarding PCI drivers.se1996-12-211-4/+4
|
* Fixed lseek() on named pipes. It always succeeded but should always fail.bde1996-12-191-1/+2
| | | | | | | | | | Broke locking on named pipes in the same way as locking on non-vnodes (wrong errno). This will be fixed later. The fix involves negative logic. Named pipes are now distinguished from other types of files with vnodes, and there is additional code to handle vnodes and named pipes in the same way only where that makes sense (not for lseek, locking or TIOCSCTTY).
* Test in mseopen() whether the device has been configured at all, andjoerg1996-12-191-1/+4
| | | | | | | | refuse the open intent with ENXIO otherwise. Closes PR # bin/2226. Reviewed by: bde
* Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp>kato1996-12-192-2/+11
| | | | Support 3COM 3C569 network card on PC98.
* Hawaii-Five-Typoalex1996-12-191-3/+3
|
* Added a missing prototype.bde1996-12-181-0/+4
|
OpenPOWER on IntegriCloud