aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Check for error return from uiomove to prevent looping endlessly inDavid Greenman1996-11-291-1/+3
| | | | | | | | | soreceive(). Closes PR#2114. Submitted by: wpaul Notes: svn path=/head/; revision=20030
* Fixed sigaction() for SIGKILL and SIGSTOP. Reading the old action nowBruce Evans1996-11-291-5/+9
| | | | | | | | | | | | succeeds. Writing an action now succeeds iff the handler isn't changed. (POSIX allows attempts to change the handler to be ignored or cause an error. Changing other parts of the action is allowed (except attempts to mask unmaskable signals are silently ignored as usual).) Found by: NIST-PCTS Notes: svn path=/head/; revision=20028
* Made O_NOCTTY distinct from the other flags (it clashed with O_RDONLY).Bruce Evans1996-11-291-3/+3
| | | | | | | Found by: NIST-PCTS Notes: svn path=/head/; revision=20027
* Relax the constraints on the bswap opcode (it works on non-byteJohn Dyson1996-11-291-24/+16
| | | | | | | | | registers.) Also clean up some namespace pollution, and remove gcc-1 support (nothing really works with it anymore anyway.) Submitted by: Bruce Evans <bde@freebsd.org> and me. Notes: svn path=/head/; revision=20026
* Help broken d_stop() routines by flushing the output queue beforeBruce Evans1996-11-291-2/+4
| | | | | | | | | calling them (as well as after). Found by: NIST PCTS Notes: svn path=/head/; revision=20025
* Fixed bugs handling (background) orphaned process groups. ttyBruce Evans1996-11-291-5/+10
| | | | | | | | | | writes and tty ioctls by processes in such groups must return -1/EIO, but they were allowed. tty reads were handled correctly. Found by: NIST PCTS Notes: svn path=/head/; revision=20024
* Fixed some bugs in BREAK handling. If BRKINT is set, then always flushBruce Evans1996-11-291-7/+8
| | | | | | | | | | | | the queues and generate a SIGINT. Previously, this wasn't done if ISIG was clear or the VINTR character was disabled, and it was done by converting the BREAK to a VINTR character and sometimes bogusly echoing this character. Found by: NIST-PCTS Notes: svn path=/head/; revision=20021
* Fixed handling of non-POSIX control characters. They must not doBruce Evans1996-11-292-15/+17
| | | | | | | | | anything special unless IEXTEN is set. Found by: NIST-PCTS Notes: svn path=/head/; revision=20020
* Changed _POSIX_VERSION from 198808L to 199009L. We're close to conformingBruce Evans1996-11-291-2/+2
| | | | | | | | to the 1990 version according to NIST-PCTS. Many man pages still refer to the 1988 version. Notes: svn path=/head/; revision=20019
* Fixed EFAULT handling in i586_copyin() and i586_copyout(). Use aBruce Evans1996-11-293-90/+138
| | | | | | | | | | consistent stack frame in fastmove() so that only one new fault handler is necessary. Should be in 2.2. Harmless until the i586 versions are reenabled. Notes: svn path=/head/; revision=20018
* Don't print bootinfo.bi_n_bios_used in cpu_startup() since it is alwaysBruce Evans1996-11-292-4/+2
| | | | | | | zero because no drivers have had a chance to change it. Notes: svn path=/head/; revision=20017
* Don't clobber the SIGCONT bit in the signal mask in sigreturn(). UseBruce Evans1996-11-292-6/+4
| | | | | | | | | the `sigcantmask' macro to get the correct set of unmaskable signals. Found by: NIST-PCTS. Notes: svn path=/head/; revision=20016
* Correct name in probe type. Closes PR# 2122 (with a change, since the PRJordan K. Hubbard1996-11-291-1/+1
| | | | | | | | did not actually use the correct name either :-). Submitted-By: Toyonori Fujiura <toyo@exiv.pearnet.org> Notes: svn path=/head/; revision=20014
* Clarified the comment about removing other CPU defs. Specifically,John Dyson1996-11-293-6/+6
| | | | | | | I added the suggestion to remove the I386_CPU def if possible. Notes: svn path=/head/; revision=20011
* Support the appropriate use of bswap instruction on non-I386 builds.John Dyson1996-11-291-1/+10
| | | | | | | | | Per Wayne Scott of Intel, the old sequence took 20cycles!!! on a P6. Another nice side-benefit is that the kernel is about 3K smaller!!! Submitted by: Wayne Scott <wscott@ichips.intel.com> Notes: svn path=/head/; revision=20010
* Make the kernel smaller with at worst a neutral effect on perf byJohn Dyson1996-11-283-34/+34
| | | | | | | de-inlining some VM calls. (Actually, I measured a small improvement.) Notes: svn path=/head/; revision=20007
* I broke psm.c and none of the 5 reviewers noticed :-)Poul-Henning Kamp1996-11-281-6/+12
| | | | Notes: svn path=/head/; revision=20004
* Add a timeout here, just like in if_ed.cPoul-Henning Kamp1996-11-281-1/+2
| | | | | | | | Reviewed by: phk Submitted by: Luigi Rizzo <luidi@labinfo.iet.unipi.it> Notes: svn path=/head/; revision=20002
* Rogue entry for DEC DLT2700Poul-Henning Kamp1996-11-281-1/+5
| | | | | | | | Reviewed by: julian & phk Submitted by: Andre Albsmeier <Andre.Albsmeier@mchp.siemens.de> Notes: svn path=/head/; revision=20001
* Potentially fix a problem, whereby MSDOSFS can request buffersJohn Dyson1996-11-281-1/+4
| | | | | | | | | | | larger than the vfs layer can provide. We now automatically support 32K clusters if MSDOSFS is installed, and panic if a filesystem tries to allocate a buffer larger than MAXBSIZE. This commit is a result of some "prodding" by BDE. Notes: svn path=/head/; revision=19996
* Potentially fix a problem, whereby MSDOSFS can request buffersJohn Dyson1996-11-281-1/+5
| | | | | | | | | | | larger than the vfs layer can provide. We now automatically support 32K clusters if MSDOSFS is installed, and panic if a filesystem tries to allocate a buffer larger than MAXBSIZE. This commit is a result of some "prodding" by BDE. Notes: svn path=/head/; revision=19995
* Make intro command a NO-OP if no VISUAL_USERCONFIGPoul-Henning Kamp1996-11-271-5/+9
| | | | Notes: svn path=/head/; revision=19993
* Waste less space.Poul-Henning Kamp1996-11-273-44/+49
| | | | Notes: svn path=/head/; revision=19991
* Remove warning at AHC_SCBPAGING_ENABLE, not needed nowAndrey A. Chernov1996-11-273-6/+3
| | | | Notes: svn path=/head/; revision=19990
* Replace LC_TIME= with LC_TIME=CAndrey A. Chernov1996-11-261-2/+2
| | | | Notes: svn path=/head/; revision=19969
* Make a kernel with DDB but without sio possible again. This is onlyPoul-Henning Kamp1996-11-252-0/+18
| | | | | | | | | | a stopgap measure, a more complete solution is on somebodys whiteboard (and we all know that THAT means :-). Reviewed by: pst Notes: svn path=/head/; revision=19957
* Enlarge the transmit and receive bufferspace of ipx. Make it tweakableJohn Hay1996-11-242-7/+19
| | | | | | | with sysctl. Notes: svn path=/head/; revision=19947
* Back out my previous change here. aic7xxx_asm is only a stdio programPeter Wemm1996-11-242-4/+4
| | | | | | | that runs in the host's build environment, not the kernel's environment. Notes: svn path=/head/; revision=19946
* Fix my previous (untested) commit. The probe routine now appears to workPeter Wemm1996-11-241-2/+2
| | | | | | | | | | again. Something needs to be done about this in 2.2, since the code there doesn't even compile anymore since the syscons/kbdio/psm merge into 2.2. Notes: svn path=/head/; revision=19945
* Allocate a header mbuf for the start of the encapsulated packet.Bill Fenner1996-11-231-3/+3
| | | | | | | | | | | The rest of the code was treating it as a header mbuf, but it was allocated as a normal mbuf. This fixes the panic: ip_output no HDR when you have a multicast tunnel configured. Notes: svn path=/head/; revision=19940
* Make this compile again after the syscons/psm/kbdio changes that removedPeter Wemm1996-11-232-14/+20
| | | | | | | | | | | | | | the keyboard IO port definitions from <machine/console.h>. Note: I do not have a machine available to test this yet, I sent this for review to several people who have not replied. This is also totally busted in 2.2, which has half of the syscons/psm/kbdio changes in it. This really desperately needs to be tested and fixed in 2.2 as well. Notes: svn path=/head/; revision=19933
* Add code to the SCSIINT handler for unexpected busfrees and handling immediateJustin T. Gibbs1996-11-221-52/+130
| | | | | | | | | | | | | | SCBs in response to a busfree. When re-queueing an SCB that returned with QUEUE FULL status, reset its timeout. Ensure that aborted SCBs have an error code set in there xs before it gets passed back up with scsi_done. Fix a few KNF nits. Notes: svn path=/head/; revision=19923
* Conditionally enable the busfree interrupt to catch unexpected busfrees.Justin T. Gibbs1996-11-222-56/+29
| | | | | | | | | | | | | | | | | | | | | | Immediate SCBs, since they always send messages that tell the target to transition to bus free now rely on the busfree interrupt instead of the IMMEDDONE sequencer interrupt that was generated before. Rearrange some code in the message out loop to give ATN a little more time to drop before we ACK the last byte. Use SPIORDY instead of REQINIT when snooping for a tag message on a reconnect. This is done for the same reasons we use SPIORDY in the inb functions. When going into BITBUCKET mode, turn off HDMAEN in the DFCNTRL register so that we can "not care" what the value of HCNT is. If HCNT is 0, BITBUCKET mode won't transfer any data if HDMAEN is set. Seeing as we don't want the transfer to even think about touching the host, this seems more sane anyway. Thanks to "Dan Willis" <dan@plutotech.com> for pointing out that this was a problem. Notes: svn path=/head/; revision=19921
* Set a more explicit #include path for building aix7xxx_asm, otherwise itPeter Wemm1996-11-222-4/+4
| | | | | | | | | | | | | uses /usr/include/sys/*, which may point to a different build tree. I'm not sure that this is necessary, but there was a question mark over what /usr/include/sys points to when building the "user mode" binaries in the kernel code, especially when building the smp tree. I suspect that the "right" line here is to use ${INCLUDES}, but that causes warnings about unused static inline functions in stdio.h and ctype.h Notes: svn path=/head/; revision=19918
* Fix ifconfig link flag handlingGuido van Rooij1996-11-211-3/+6
| | | | | | | Submitted by: "Jon Morgan" <morgan@terminus.trailblazer.com> Notes: svn path=/head/; revision=19915
* changes to make devfs more 'normal'Julian Elischer1996-11-215-155/+251
| | | | | | | | | | | | | | | | | also fixes a bug I've been chasing for a LONG TIME, due to the fact that spec_bwrite is a NOP and I didn't realise it.. old symptom: mount -t devfs devfs /mnt mount /mnt/wd0e /mnt/mnt2 umount /mnt2 <process hangs> there are some pretty large structural differences internal to devfs but outwards it should look the same. I have not yet tested extensively but will do so and fix 3 warnings tomorrow. Notes: svn path=/head/; revision=19909
* Update comment and disable SCB paging for Rev E cards since paging, at leastJustin T. Gibbs1996-11-211-6/+3
| | | | | | | in its current form, will not work with these cards. Notes: svn path=/head/; revision=19907
* Change the way Automatic PIO is performed in the mesgin and mesgout phases.Justin T. Gibbs1996-11-211-27/+18
| | | | | | | | | | | | | | SPIORDY should go active on any REQ of the bus, so testing for REQINIT is not necessary. It also seems that testing for SPIORDY is more robust then REQINIT since SPIORDY comes active after REQINIT and PHASEMIS seems to take some time to come true after REQ is asserted if the phase has changed. Of course, none of this is documented. This should give the code savings of my original changes, without breaking the driver on fast peripherals. Notes: svn path=/head/; revision=19906
* Fix UserConfig w/syscons.Nate Williams1996-11-193-6/+6
| | | | | | | | | | | | | | | | The 'getchar' function in syscons (sccngetc) is used by UserConfig to get keyboard input from the user. When it was modified to use the shared keyboard port routines it used the port passed in during the probe routine. Since the probe routine was not yet called, the port was set to 0, which is obviously not going to work. Pre-initialize sc_port to IO_KBD which is really a kludge, but it's how the previous driver did it's job. Found by: remote GDB Notes: svn path=/head/; revision=19869
* Fixed broken SIOCGIFADDR. It was copying out garbage as the ethernetDavid Greenman1996-11-181-2/+2
| | | | | | | address. Notes: svn path=/head/; revision=19846
* Fixed obsolete comment.David Greenman1996-11-182-6/+4
| | | | Notes: svn path=/head/; revision=19845
* Improve the locality of reference for variables in vm_page andJohn Dyson1996-11-172-27/+27
| | | | | | | | vm_kern by moving them from .bss to .data. With this change, there is a measurable perf improvement in fork/exec. Notes: svn path=/head/; revision=19830
* Improve the caching of small files like directories, while notJohn Dyson1996-11-173-8/+8
| | | | | | | | | | substantially increasing buffer space. Specifically, we double the number of buffers, but allocate only half the amount of memory per buffer. Note that VDIR files aren't cached unless instantiated in a buffer. This will significantly improve caching. Notes: svn path=/head/; revision=19828
* Commit AWE32 changes I forgot in my first round. Whoops!Jordan K. Hubbard1996-11-162-0/+6
| | | | Notes: svn path=/head/; revision=19807
* AHC_FORCE_PIO -> AHC_ALLOW_MEMIOJustin T. Gibbs1996-11-161-2/+2
| | | | Notes: svn path=/head/; revision=19806
* Be even more careful in how we manipulate the QOUTQCNT variable. Now weJustin T. Gibbs1996-11-161-20/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | do reset it from the QOUTCNT register inside a pause/unpause. This now happens once per command complete interrupt in the paging case (one interrupt can be for multiple completed commands). I may introduce a counter and do a lazy update in the future, similar to what is done with the QINCNT. Enhance the QUEUE FULL condition handling so that the number of openings will be reduced. This has become more important now that the driver is faster. This code really belongs in the gerneric SCSI layer, as will be the case once 3.0 gets the code from the 'SCSI' branch. Add some #if 0'd out trace code I've been using to help debug sequencer problems. Fix the SCB paging problem that I was seeing. This was only on my 7850 controller and stems from the fact that its QINFIFO can only handle 3bit SCB identifiers. This means that you can only have 8 transactions open at a time with the current paging scheme to these controllers. The code added to enforce this is generic in that it tests for the number of relevent bits that the QINFIFO can store and adjusts the max accordingly. It may be possible to come up with a scheme that allows for more than 8 commands at a time, but I don't know that it is worth the effort simply to fix a low end card. The aic7880 still can do 255. This problem may be related to what Andrey was seeing since I don't have n aic7770 rev E chip here to test on, but as soon as someone probes one of these cards with this new code, the dmesg output will tell the whole story. Notes: svn path=/head/; revision=19805
* Since there have been so many reports of the Memory Mapped I/O to theJustin T. Gibbs1996-11-167-27/+21
| | | | | | | | | | aic7xxx cards failing on certain motherboards, reverse the logic used to control this feature. AHC_FORCE_PIO is replaced with AHC_ALLOW_MEMIO. GENERIC no longer needs to specify the AHC_FORCE_PIO option since this is the default. Notes: svn path=/head/; revision=19804
* Assert that we have seen an identify or have not disconneccted since theJustin T. Gibbs1996-11-162-12/+17
| | | | | | | | | | | | | | | | | | initial selection when entering the status phase. This is the same assertion we use for all the other data transfer phases. Hopefully fix the hangs in the mesgin and mesgout phases that I introduced last week during some code cleanup. I need to get some of these 12MB/s drives so I can reproduce these hangs here... Add a pause disable in the SCB paging case around our manipulation of the QOUTQCNT variable. This is simply extra sanity. Set LASTPHASE to P_BUSFREE once we see a busfree so that the kernel driver can differentiate this from a data out phase. Notes: svn path=/head/; revision=19803
* Disabled i586-optimized copyin and copyout. They usually panic if theBruce Evans1996-11-153-3/+9
| | | | | | | | | | user supplies a bad address, because they push a lot of stuff that the fault handler doesn't know about onto the stack. This has been broken for more than half a year despite being tested for almost half a year in -current. Notes: svn path=/head/; revision=19798
* Reword two messages:Bill Fenner1996-11-151-5/+6
| | | | | | | | | | | | | | | | | | duplicate ip address 204.162.228.7! sent from ethernet address: 08:00:20:09:7b:1d changed to arp: 08:00:20:09:7b:1d is using my IP address 204.162.228.7! and arp info overwritten for 204.162.228.2 by 08:00:20:09:7b:1d changed to arp: 204.162.228.2 moved from 08:00:20:07:b6:a0 to 08:00:20:09:7b:1d I think the new wordings are more clear and could save some support questions. Notes: svn path=/head/; revision=19794