summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Oops I forgot to add the official id for this card.jhay1996-11-132-4/+6
|
* Another round of resync and some added sound support.asami1996-11-138-40/+23
| | | | | | | | | | | | sys/pc98/i386/machdep.c: sync with i386/i386/machdep.c sys/pc98/conf/options.pc98: sync with i386/conf/options.i386 sys/i386/isa/sound: DMA auto initialize mode support for PC98. contributed by: Akio Morita <amorita@bird.scphys.kyoto-u.ac.jp> Definite 2.2 material, I believe. Submitted by: The FreeBSD (98) Development Team
* Submitted by: Archie and me.julian1996-11-131-1/+3
| | | | | | | | | | | | | | | | We encountered an interesting situation where the superblock for a file system got written to disk with the "fs_fmod" flag set to one. It appears that this flag is normally supposed to be cleared during ffs_sync(), but we experienced a crash, or some other weird occurrence that left it on the disk set to 1. Later this partition was mounted read-only... and the fs_fmod field was never cleared, causing ffs_sync() to panic "rofs mod" when trying to unmount that filesystem (ffs_vfsops.c: line 790). fix: set this bit to 0 when you load the superblock from disk. (see more complete mail on this to hackers)
* Add support for header type == 1 devices (PCI 2.1 compatible PCI to PCIse1996-11-126-8/+22
| | | | | | | | bridges with support for 64 bit memory addresses and 32 bit I/O addresses). The code is not complete. It ignores the upper half of the long addresses. This is not a problem on PC compatible systems, but has to be fixed for real computers.
* Fix PCI to PCI bridge register bit field masks.se1996-11-124-72/+22
| | | | | Thanks to "Mike Durian" <durian@plutotech.com> for the very good problem report and his support as a beta tester of this patch.
* Fixed buffer overflow for large values in editval(). The buffers werebde1996-11-121-5/+5
| | | | | | | | | | | | one too small for (hex) 12345678 and 4 too small for -1234567890. Large values can be created by config and userconfig although not (previously) by visual userconfig. Fixed a sign extension bug for backspacing on "negative" hex values in editval(). Increased field width and range for `flags' so that all possible values can be displayed and edited.
* Removed another #include of opt_temporary.h.bde1996-11-123-6/+3
| | | | YA2.2C.
* Removed #include of "opt_temporary.h". All the temporary options wentbde1996-11-122-4/+2
| | | | | | | away, so this header is no longer generated. This change should be in 2.2. The old version shouldn;t have been in 2.2 (blush).
* Added missing prototype for new function sbcreatecontrol().bde1996-11-121-1/+3
| | | | Should be in 2.2.
* Forward-declare `struct inpcb' so that including this file doesn't causebde1996-11-121-1/+2
| | | | | | lots of warnings. Should be in 2.2. Previous version shouldn't have been in 2.2.
* Fixed spelling error in previous commit. This did not compile.bde1996-11-121-3/+3
|
* Restored writability of kern.maxvnodes. It was broken a year ago inbde1996-11-122-4/+4
| | | | | | rev.1.29 of kern_sysctl.c. Should be in 2.2.
* Killed "unknown protocol" printf.dg1996-11-121-2/+1
|
* Near AHC_SCBPAGING_ENABLE add following commentache1996-11-123-3/+6
| | | | | # WARNING: can effectively kill your disks with some controllers (I am the victim of -current kernel, inodes wiped completely)
* 1. Avoid a race in scclose(). tty.c has kludges so that the race issos1996-11-113-15/+45
| | | | | | | | | | | | | | | | | | | actually harmless. 2. Fixed code to match comment in scintr(). 3. Don't allow even root to take control of the machine when securelevel > 0. I've secured the accesses to PSL_IOPL in all drivers and asked pst to review it, but he seems to be busy. Write access to /dev/kmem and other critival devices currently leaks across raisings of securelevel via open fd's, so there may as well be a similar leak for PSL_IOPL. 4. (Most important.) Don't corrupt memory beyond the screen buffers if the cursor happens to be off the 80x25 screen when syscons starts. 5. Fix console cursor update (not perfect yet). Submitted by: bruce ~
* Removed (now unused) XT_KEYBOARD option.nate1996-11-112-4/+2
|
* Removed 'XT_KEYBOARD' option from syscons. Document new-style way ofnate1996-11-116-18/+30
| | | | | | | | getting the same behavior using the flags, which can be done inside of UserConfig. (Also document other syscons flags which were previously undocumented). Requested by: bde
* Replaced I586_OPTIMIZED_BCOPY and I586_OPTIMIZED_BZERO with boot-timebde1996-11-1115-222/+577
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | negative-logic flags (flags 0x01 and 0x02 for npx0, defaulting to unset = on). This changes the default from off to on. The options have been in current for several months with no problems reported. Added a boot-time negative-logic flag for the old I5886_FAST_BCOPY option which went away too soon (flag 0x04 for npx0, defaulting to unset = on). Added a boot-time way to set the memory size (iosiz in config, iosize in userconfig for npx0). LINT: Removed old options. Documented npx0's flags and iosiz. options.i386: Removed old options. identcpu.c: Don't set the function pointers here. Setting them has to be delayed until after userconfig has had a chance to disable them and until after a good npx0 has been detected. machdep.c: Use npx0's iosize instead of MAXMEM if it is nonzero. support.s: Added vectors and glue code for copyin() and copyout(). Fixed ifdefs for i586_bzero(). Added ifdefs for i586_bcopy(). npx.c: Set the function pointers here. Clear hw_float when an npx exists but is too broken to use. Restored style from a year or three ago in npxattach().
* Fixed pessimized (short) i/o port type.bde1996-11-114-10/+10
| | | | | | The change in if_epreg.h affects if_epreg.o and 3c5x9.o. These changes are probably harmless, but I can't test them.
* Fixed pessimized (short) i/o port types.bde1996-11-111-4/+4
|
* Fixed pessimized (short) i/o port type.bde1996-11-111-2/+2
|
* Turned off -W and -Winline so that the warnings that should be fixed forbde1996-11-111-3/+3
| | | | | | | | | | | | 2.2 are more obvious. -Winline is unimportant, but -W gives thousands of warnings for comparisions. Turning off -W also loses warnings for: - auto variables clobbered by longjmp. Not much of a problem in the kernel. - functions returning without a value. I don't like losing this. - an expression statement or the left side of a comma operand contains no side effects. Turning this off also stops warnings for the low quality debugging macros in gsc.c and lpt.c. Should be in 2.2.
* Fixed pessimized (short) i/o port type.bde1996-11-111-2/+2
| | | | Obtained from: SCSI branch
* Preserve %esi and %edi for get_diskinfo(). See the logs for similar fixesbde1996-11-111-0/+4
| | | | | | in bios.S. I only fixed the case that is known to be broken here. Should be in 2.2.
* Make snake 3.0-CURRENT here.jkh1996-11-112-4/+4
| | | | There's gotta be a better way of syncronizing our release numbers. :-)
* Preserve %esi and %edi for all BIOS calls. This is probably only necessarybde1996-11-111-1/+25
| | | | | | | | | | | for get_diskinfo(), whose BIOS call sets %es:%edi in some cases, although most documentation says that it doesn't change %edi in the cases that happened to matter (for hard disks). This shall be in 2.1.6 and 2.2. Submitted by: Tor.Egge@idt.ntnu.no (except I kept the unnecessary preservation of %edx and %ecx)
* Update the database of known devices (people, please consider this when youmsmith1996-11-111-7/+13
| | | | | | | | | | are adding new drivers...) to match, as best I can tell, majors.i386. Improve behaviour when attempting to save changes for devices that should not be changeable. Now correclty avoids non-device items, PCI devices and devices with no isa_device structure. Submitted by: (observations from) joerg, bde
* Clean up the memory mapped/Programmed I/O stuff so that the driver completelygibbs1996-11-111-69/+73
| | | | | | | | | | | | | | uses one or the other. This required some changes to the ahc_reset() function, and how early the probes had to allocate their softc. Turn the AHC_IN/OUT* macros into inline functions and lowercase their names to indicate this change. Geting AHC_OUTSB to work as a macro doing conditional memory mapped I/O would have been too gross. Be smart about the STPWEN control bit in SCFRCTL1. It should only be set if the low byte of the bus is to be terminated. We figure this out either by "caching" the value left over from the BIOS setup before we reset the card or by using the values stored in the seeprom if it is availible.
* Clean up the memory mapped/Programmed I/O stuff so that the driver completelygibbs1996-11-112-302/+337
| | | | | | | | | | | | | | | | | | | uses one or the other. This required some changes to the ahc_reset() function, and how early the probes had to allocate their softc. Turn the AHC_IN/OUT* macros into inline functions and lowercase their names to indicate this change. Geting AHC_OUTSB to work as a macro doing conditional memory mapped I/O would have been too gross. Stop setting STPWEN in the main driver and let the PCI front end do it instead. It knows better. Add the clearing of the QOUTQCNT variable during command complete processing in the SCB paging case. Go back to doing unconditional retries for the QUEUE FULL status condition. This is really a kludge, but the code to handle it properly is on the SCSI branch and will not make it into 2.2.
* Clean up the memory mapped/Programmed I/O stuff so that the driver completelygibbs1996-11-111-16/+22
| | | | | | | | | uses one or the other. This required some changes to the ahc_reset() function, and how early the probes had to allocate their softc. Turn the AHC_IN/OUT* macros into inline functions and lowercase their names to indicate this change. Geting AHC_OUTSB to work as a macro doing conditional memory mapped I/O would have been too gross.
* Add the AHC_FORCE_PIO option.gibbs1996-11-113-12/+24
| | | | Update comment on AHC_SCBPAGING_ENABLE since I think it works now.
* Fix two problems with SCB Paging.gibbs1996-11-112-36/+29
| | | | | | | | | | 1) get_free_or_disc_scb was not being passed its argument correctly in one case 2) Add protection in the form of the QOUTQCNT variable to prevent overflowing the QOUTFIFO. This should make SCB Paging work. Really, I mean it now. 8-)
* Add the IP_RECVIF socket option, which supplies a packet's incoming interfacefenner1996-11-119-112/+180
| | | | | | | | using a sockaddr_dl. Fix the other packet-information socket options (SO_TIMESTAMP, IP_RECVDSTADDR) to work for multicast UDP and raw sockets as well. (They previously only worked for unicast UDP).
* Support the PG_G flag on Pentium-Pro processors. This prettydyson1996-11-117-89/+255
| | | | | much eliminates the unnecessary unmapping of the kernel during context switches and during invtlb...
* Allow us to enable the 'XT_KEYBOARD' code using a configuration flag.nate1996-11-106-24/+60
| | | | | | | | This allows the user to add modify syscons's configuration flags using UserConfig that will allow older/quirky hardware (most notably older IBM ThinkPad laptops) to work with the standard boot kernel. Inspired by: The Nomads
* Put the packet error printf inside #ifdef DIAGNOSTIC.dg1996-11-102-2/+6
|
* Re-enable the TCP SYN-attack protection code. I was the one who didn'tfenner1996-11-102-6/+2
| | | | | | understand the socket state flag. 2.2 candidate.
* Fixed lookup of ".." in checkpath. It always failed, so renames ofbde1996-11-092-2/+2
| | | | | | | | directories to a different parent directory always failed. This bug was caused by 4.4Lite2 changing the directory format and ext2fs not keeping up. Should be in 2.2.
* Fix an ordering bug -- pmap_remove_pages should be called BEFOREdyson1996-11-091-2/+2
| | | | | | vm_map_remove, not after... 2.2-RELEASE candidate.
* Back out my previous change.max1996-11-091-2/+2
| | | | | | It probably broke the support for the device. Pointed-Out by: joerg
* Re-sync with -current. Should be in 2.2.asami1996-11-0911-127/+158
| | | | Submitted by: The FreeBSD(98) Development Team
* (1) Updateasami1996-11-0910-30/+38
| | | | | | | | | | (2) Don't depend on BOOTSEG (3) Change BOOTSEG from 0x9000 to 0x1000 Should be in 2.2. Submitted by: FreeBSD(98) Development Team
* Only access the specific interrupt status registers if required.se1996-11-081-4/+4
| | | | | | | | | This follows more closely the suggestions in the latest NCR docs, and has been running on my system for weeks with no problem. It does improve the quality of diagnostic messages and does allow to better understand the sequence of events in case of an error. This should go into 2.2 and 2.1.6.
* Fixed spacefree calculation in ext2_direnter(). This bug sometimes causedbde1996-11-082-2/+2
| | | | | | | | | panics. This should be in 2.2, of course. Submitted by: davidg Obtained from: bouyer@antioche.ibp.fr (Manuel BOUYER) (fix for NetBSD)
* Removed gratuitous differences between ext2_readwrite.c and ufs_readwrite.c.bde1996-11-082-24/+34
| | | | | | | | | | | | | | | | | This fixes several bugs and one missing feature: - cluster_read() was needlessly used for reading files of size exactly 1 block. - EFAULT errors for read didn't terminate the loop. This was probably harmless. - IO_VMIO handling was missing near line 275. I don't know what this does. - B_CLUSTEROK was only set if (doclusterwrite) nead line 293. This was harmless, if only because another bug prevents doclusterwrite from being 0. - MNT_NOATIME wasn't implemented. This should be in 2.2, of course. Reviewed by: davidg
* Remove option I586_FAST_BCOPY. The code will be included by defaultasami1996-11-088-52/+38
| | | | | | | if I586_CPU is defined. Note there is a runtime check so the code won't be run for non-Pentium CPUs anyway. 2.2 candidate, this code has been tested for almost half year in -current.
* Typo, MATSHITA -> MATSUSHITA.max1996-11-071-2/+2
| | | | 2.2 & 2.1.6 candidate.
* Fix the message buffer mapping. This actually allows to increasejoerg1996-11-074-68/+66
| | | | | | | the message buffer size in <sys/msgbuf.h>. Reviewed by: davidg,joerg Submitted by: bde
* Bzero the kernel scb array after it is allocated otherwise the control bytegibbs1996-11-071-3/+5
| | | | | | used on the first transaction on an SCB is indeterminate. Spaces -> tabs.
* Don't switch from fast interrupt handlers to normal interruptbde1996-11-073-12/+24
| | | | | | | | | | | | | handlers if interrupts are nested more than a few (3) deep. This only reduces the maximum nesting level by 1 with the standard drivers unless there is a related bug somewhere, but can't hurt much (the worst case is returning to hoggish interrupt handler like wdintr(), but such interrupt handlers hurt anyway). Fixed a previously harmless race incrementing the interrupt nesting level. This should be in 2.1.6 and 2.2.
OpenPOWER on IntegriCloud