summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* 1) Fix error with port recognition, speed initialization codeache1993-12-093-6/+39
| | | | | | | added to probe. 2) Force CLOCAL=on for outgoing ports and CLOCAL=off for incoming ports into open in bidirectional case. 3) Add DELAY after writing to com_ier for fifo drain into probe.
* Fixed spelling error. Added NSIP (XNS over IP). Fixed TP class 4 overwollman1993-12-063-9/+12
| | | | | IP line (TPIP) to be an option rather than a pseudo-device (the code keys off #ifdef TPIP, not #if NTPIP > 0, as makes sense).
* Fixed the error that a Fdopen succeeds without a found fd controller inats1993-12-043-6/+9
| | | | the system.
* From: Jeffrey Hsu <hsu@soda.berkeley.edu>alm1993-12-039-9/+26
| | | | | | | | | | | | | | | | | | | | | | The following patch adds the addr argument to signal handlers. The kernel with the patch is no more and no less in compliance or in violation of POSIX and ANSI C than the kernel before the patch. The added functionality this addr argument provides is quite useful. It enables an entire class of algorithms which use mprotect to trace memory references. Beside garbage collectors, I have heard of this technique being applied to debuggers and profilers. The only benchmarking I've performed is using akcl to compile maxima: without the kernel patch, it takes 7 hours to compile maxima, while with stratified garbage collection, it only takes 50 minutes. Basically, I can't think of a reason not to add the addr argument and there is a compelling need for it. If you find the patch acceptable, please let me know so I can send my FreeBSD akcl config files to wfs for inclusion in the core akcl release. The old 386BSD config files there won't work on either NetBSD or FreeBSD.
* Reset fdc during probe.alm1993-12-033-3/+21
| | | | | | | | | | | | From: <dec@lazarus.nrtc.northrop.com> Changes between EPSILON and RELEASE of FreeBSD have again caused the kernel to not see my floppy disk drives. I don't know what happened, 'cause I don't see any changes to fd.c, but here is an old fix that I have applied to the probe routine which will solve the problem (at least for me). Since this is a rather brute-force solution - I understand if you want to ignore it... [Upgrading to pre-Beta FreeBSD caused this on my system. -AM]
* wmesg was too long (>7), fixedache1993-11-292-6/+6
|
* * Revision 2.16 1993/11/29 16:55:56 davidgdg1993-11-294-20/+56
| | | | | | | | * merged in Garrett Wollman's strict prototype changes * * Revision 2.15 1993/11/29 16:32:58 davidg * From Thomas Sandford <t.d.g.sandford@comp.brad.ac.uk> * Add support for the 8013W board type
* Direct #undefs removed to allow flexible manipulationache1993-11-283-32/+14
| | | | | via config options. Unneded #defines removed. Improved dependance of "snd.h" and NSND.
* Patch from Gene Stark:dg1993-11-283-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: Page fault in PTE area fails in copyout Index: sys/i386/i386/trap.c FreeBSD-1.0.2 Description: Reading files of several megabytes into Emacs, or many small files all at once, would fail with "IO error - bad address". Repeat-By: The bug can be exercised by a test program that malloc()'s a 5MB chunk of memory, and then, without accessing the memory first, filling it with data from a file using read(). (I read 64k chunks from /dev/wd0d into successive 64k regions of the 5MB chunk.) The read() will fail with EFAULT at the first virtual address boundary that is a multiple of 0x400000. Fix: The problem was code in sys/i386/i386/trap.c that tries to figure out what kind of trap occurred and to handle it appropriately. It was interpreting any page fault with virtual address >= vm->vm_maxsaddr as being a user stack segment fault. In fact, addresses >= USRSTACK are in the user structure/PTE area, and if they are handled as stack faults, the proper PTE will not be paged in when it is supposed to be. This situation comes up in copyout() and copyoutstr(), if PTE's are accessed for the first time ever. The page fault on accessing the nonexistent PTE is mishandled as a stack fault, and then the fault that occurs on the subsequent access to the page itself causes copyout to fail with EFAULT.
* Move soundcard.h & ultrasound.h to proper location <machine/...>ache1993-11-2710-20/+139
| | | | to allow application access it.
* Declare cnopen, cnclose, and other console routines.wollman1993-11-272-4/+32
|
* Declared cn{open,close,read,write,ioctl,select} extern.rich1993-11-271-1/+7
|
* Fix conflicting prototypes and return values.rich1993-11-273-63/+114
|
* Fix d_write_t -> d_rdwr_t (typing error).wollman1993-11-261-8/+4
|
* Patch from Julian Elischer:dg1993-11-251-2/+3
| | | | | | | | | | | | | | Here is the fix for the 'hanging' bug. This bug happenned whenever two operations were already underway on the disk and a third (non-IO) command was requested.. in this case the process submitting the NON-IO command was requested to wait, and a flag set so that on completion of the IO commands, the Non-io command was given priority over any pending IO commands. (the queue is not allowed to drain while there are pending "special" ops). The flag that indicated this was not being reset, so further IO commands were prohibited from that moment on.
* Make the LINT kernel compile with -W -Wreturn-type -Wcomment -Werror, andwollman1993-11-2590-926/+1571
| | | | add same (sans -Werror) to Makefile for future compilations.
* Subject: Panic - can't mount route (Soren's changes)nate1993-11-231-2/+2
| | | | | | | | | | | | | From: Geoff Rehmet <g89r4222@braae.ru.ac.za> Description: On bootup, probe of wd drives fails (CP30104), and kernel panics - cannot mount root It appears that the device probe just times out. Increasing the timeout back to its old value fixes the problem. Repeat-By: SUP FreBSD-current, Find a CP30104 ..... (ok ok ok) Basically - Soren's changes barf my disk.
* Changed return(-1) in switch_scr to return(EINVAL), because -1 ischmr1993-11-233-6/+6
| | | | ERESTART on return from a system call.
* Stop gap measure until we can get Bruce's driver debugged.nate1993-11-221-70/+101
| | | | | | | | | | | | | | | | | | | | | | | | --- From: sos@login.dkuug.dk (S|ren Schmidt) Subject: IDE-disk hangs - solution/patches NetBSD/FreeBSD Summary: fixes for lost interrupts with IDE disks Keywords: hanging-disk, IDE-disk, lost-interrupt Due to "popular" demand I'm posting these patches to NetBSD/FreeBSD instead of mailing them around the world :-) As many have found out there is a problem when using IDE disks on FreeBSD. Following is a patch that fixes the problem with lost intterrupts. Both fixes is based on a patch posted here some month ago by Stefan Behrens?? (sorry I've lost the original article). But anyway it works (for me :-). Basically it does a timeout on lost interrupts, starting the operation again and logging and error message on the console. It additionally makes the allready present while loop timeouts independent of CPU speed, and adds minor numbers for easy access to dos partitions.
* * Revision 2.14 1993/11/22 10:55:30 davidgdg1993-11-224-110/+294
| | | | | | | | | | | | | * change all splnet's to splimp's * * Revision 2.13 1993/11/22 10:53:52 davidg * patch to add support for SMC8216 (Elite-Ultra) boards * from Glen H. Lowe * * Revision 2.12 1993/11/07 18:04:13 davidg * fix from Garrett Wollman: * add a return(0) at the end of ed_probe so that if the various device * specific probes fail that we just don't fall of the end of the function.
* patches from Julian Elischer -dg1993-11-223-5/+57
| | | | Added support for mmapping /dev/mem
* added 5us delay before checking BUSY flag to conform to ATA spec -dg1993-11-191-2/+17
| | | | as suggested by John Dyson (dyson@implode.rain.com)
* New version of scsi code from Julianrgrimes1993-11-1830-11198/+10105
|
* Fixed comments.wollman1993-11-181-2/+2
|
* Fix attach message, make separate line for itache1993-11-173-3/+9
| | | | (old version assumed that line is probe line)
* Fixed comments that start within a comment, so code compiles cleanly withwollman1993-11-1711-21/+18
| | | | -Wcomment.
* Increased symtab space and added two more options that don't do anythingwollman1993-11-173-6/+12
| | | | (yet).
* If netmask == 0, new value changed from 0x8000 to 0x10000ache1993-11-172-8/+4
| | | | (don't mess with IRQ15)
* new process tracing code from Sean Eric Fagen (sef@kithrup.com).dg1993-11-164-24/+394
| | | | ...also, fixed up the syscall args to make GCC happy.
* We don't want shared boot, so -Bstatic added to ld optionsache1993-11-162-4/+4
|
* Changed -Z back to -z.paul1993-11-163-6/+6
| | | | In line with all other ld's -z is now the "standard" ZMAGIC format.
* Changed -z to -Z so we create old-style ZMAGIC kernels.paul1993-11-153-6/+6
|
* timeout+sleep changed to tsleepache1993-11-152-90/+106
|
* if netmask == 0, then the loopback code can do some reallyache1993-11-142-2/+16
| | | | | | bad things. workaround for this: if netmask == 0, set it to 0x8000, which is value used by splsoftclock
* New sio driver from Bruce.ache1993-11-143-585/+633
|
* Add _bde_exists: label so that the global is really defined. Fix spellingrgrimes1993-11-143-9/+9
| | | | error (mount -> amount)
* >From Charles Hannumrgrimes1993-11-132-6/+10
| | | | | | | Change movl %es: -2(reg) to use a subl $2,reg when fixing up the IDT entries for bdb. This seems to be the best way to go. Some day soon #ifdef BDB all of Bruces debugger code.
* First steps in rewriting locore.s, and making info usefuldg1993-11-1330-5474/+6274
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when the machine panics. i386/i386/locore.s: 1) got rid of most .set directives that were being used like #define's, and replaced them with appropriate #define's in the appropriate header files (accessed via genassym). 2) added comments to header inclusions and global definitions, and global variables 3) replaced some hardcoded constants with cpp defines (such as PDESIZE and others) 4) aligned all comments to the same column to make them easier to read 5) moved macro definitions for ENTRY, ALIGN, NOP, etc. to /sys/i386/include/asmacros.h 6) added #ifdef BDE_DEBUGGER around all of Bruce's debugger code 7) added new global '_KERNend' to store last location+1 of kernel 8) cleaned up zeroing of bss so that only bss is zeroed 9) fix zeroing of page tables so that it really does zero them all - not just if they follow the bss. 10) rewrote page table initialization code so that 1) works correctly and 2) write protects the kernel text by default 11) properly initialize the kernel page directory, upages, p0stack PT, and page tables. The previous scheme was more than a bit screwy. 12) change allocation of virtual area of IO hole so that it is fixed at KERNBASE + 0xa0000. The previous scheme put it right after the kernel page tables and then later expected it to be at KERNBASE +0xa0000 13) change multiple bogus settings of user read/write of various areas of kernel VM - including the IO hole; we should never be accessing the IO hole in user mode through the kernel page tables 14) split kernel support routines such as bcopy, bzero, copyin, copyout, etc. into a seperate file 'support.s' 15) split swtch and related routines into a seperate 'swtch.s' 16) split routines related to traps, syscalls, and interrupts into a seperate file 'exception.s' 17) remove some unused global variables from locore that got inserted by Garrett when he pulled them out of some .h files. i386/isa/icu.s: 1) clean up global variable declarations 2) move in declaration of astpending and netisr i386/i386/pmap.c: 1) fix calculation of virtual_avail. It previously was calculated to be right in the middle of the kernel page tables - not a good place to start allocating kernel VM. 2) properly allocate kernel page dir/tables etc out of kernel map - previously only took out 2 pages. i386/i386/machdep.c: 1) modify boot() to print a warning that the system will reboot in PANIC_REBOOT_WAIT_TIME amount of seconds, and let the user abort with a key on the console. The machine will wait for ever if a key is typed before the reboot. The default is 15 seconds, but can be set to 0 to mean don't wait at all, -1 to mean wait forever, or any positive value to wait for that many seconds. 2) print "Rebooting..." just before doing it. kern/subr_prf.c: 1) remove PANICWAIT as it is deprecated by the change to machdep.c i386/i386/trap.c: 1) add table of trap type strings and use it to print a real trap/ panic message rather than just a number. Lot's of work to be done here, but this is the first step. Symbolic traceback is in the TODO. i386/i386/Makefile.i386: 1) add support in to build support.s, exception.s and swtch.s ...and various changes to various header files to make all of the above happen.
* Fixed minor bug in M[LSN] interpretation, added octave-tracking.ache1993-11-092-80/+136
| | | | | Added the slur-mark feature. Name of ioctl's include sys/spkr.h changed to machine/speaker.h
* Name of ioctl's include sys/spkr.h changed to machine/speaker.hache1993-11-092-0/+60
|
* Applied David Greenman's hack to disable IRQ conflict checkingalm1993-11-092-2/+6
| | | | when COM_MULTIPORT is defined.
* Change from David Greenman to return properly unsigned irq.jkh1993-11-091-1/+1
|
* Add missing read flush code to siostopache1993-11-083-3/+15
|
* Increase timeout in sd_start_unit procedure from 2000 to 6000, per Adam Davidrgrimes1993-11-081-2/+2
|
* Added the netrmp protocol from the Net/2 tape. While of dubious utility,wollman1993-11-073-6/+9
| | | | | it's simple enough that it might actually work and be useful on some systems. (That's more than you can say for netccitt or netimp!)
* Get rid of WFJ's use of sleep() for more user-friendly tsleep().wollman1993-11-074-8/+8
|
* Add options MACHVMCOMPAT and bump symtab space appropriately.wollman1993-11-073-6/+9
|
* Made all header files idempotent and moved incorrect common data fromwollman1993-11-072-8/+6
| | | | | | headers into a related source file. Deleted some very old device-specific headers for devices that we don't support and likely never will.
* Made all header files idempotent and moved incorrect common data fromwollman1993-11-076-7/+30
| | | | headers into a related source file.
* Made all header files idempotent and moved incorrect common data fromwollman1993-11-078-8/+36
| | | | | headers into a related source file. Also fixed a bug in ed_probe() where it was possible to fall off the end of the function
OpenPOWER on IntegriCloud