summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Make sure that installing a module complains if the target modulesroam2001-07-181-1/+1
| | | | | | | | | | | | | | | directory does not exist, instead of creating/overwriting a file with the name of the (expected) directory. Yes, this deviates a bit from nearly all other install targets in the tree, but let's face it, removing a modules directory is not all that uncommon a mistake, and finding a file with the contents of the last module installed is a baaad surprise at boot time.. PR: 26317 Submitted by: "T. William Wells" <bill@twwells.com> (the PR) Gregory Bond <gnb@itga.com.au> (the actual patch) Reviewed by: silence on -arch and -audit for the last 10 days MFC after: 2 weeks
* Skip the route checking in the case of multicast packets with knowndcs2001-07-171-9/+22
| | | | | | | interfaces. Reviewed by: people at that channel Approved by: silence on -net
* Increase NMBCLUSTERS by 4x.obrien2001-07-171-1/+1
| | | | This takes a GENERIC kernel (MAXUSERS=32) from 1536 to 3072.
* The per-cpu temporary buffers are not needed since the pcb_save areas havetegge2001-07-173-42/+15
| | | | | | | the proper alignment. Change dummy variable in npxinit from stack to bss to ensure proper alignment. Reviewed by: bde
* Backout damage to the INADDR_TO_IFP() macro in revision 1.7.ru2001-07-171-12/+5
| | | | | | | | | | | | | This macro was supposed to only match local IP addresses of interfaces, and all consumers of this macro assume this as well. (See IP_MULTICAST_IF and IP_ADD_MEMBERSHIP socket options in the ip(4) manpage.) This fixes a major security breach in IPFW-based firewalls where the `me' keyword would match the other end of a P2P link. PR: kern/28567
* Add missing () around macro argument in cv_waitq_empty()phk2001-07-171-1/+1
| | | | Submitted by: Harti Brandt <brandt@fokus.gmd.de>
* Change the interrupt handler a bit so that we call the nge_rxeof() handlerwpaul2001-07-161-3/+2
| | | | | | when we get an RX_ERR interrupt rather than the nge_rxeoc() handler. The rxeoc (end of channel) handler attempts to reinitialize the whole NIC, which we don't want to do if we only received a bad packet.
* Use PCPU_GET(cpuid) instead of curproc->p_oncpu.tegge2001-07-163-27/+27
| | | | Reviewed by: peter
* Use a fixed type for times in on-disk structures for ufs rather thanpeter2001-07-163-5/+6
| | | | something that could potentially change like time_t.
* Now that config(8) has stopped breaking POLA (mkmakefile.c rev 1.69) byobrien2001-07-151-25/+25
| | | | | always including <KERNEL>.hints if its exist reguardless of the lack of a "hints" directive in the <KERNEL> file; we can have a real hints file again.
* do not M_WAITOK in in6_update_ifa(), since this function can be calledume2001-07-151-1/+6
| | | | | | | under splnet(). (some comment was added by KAME) PR: 28927 MFC after: 1 week
* Remove whitespace at EOL.dd2001-07-151-3/+3
|
* Put module directories one per line so adding new modules creates readablebrooks2001-07-152-14/+137
| | | | diffs and produces less conflicts with local source trees.
* The i386-specific includes in this file were "fixed" by bracketing them withbenno2001-07-151-3/+3
| | | | | | | #ifndef __alpha__. Fix this for the rest of the world by turning it into #ifdef __i386__. Reviewed by: obrien
* Turn off preemption on the Alpha for the time being. Peter and JHB aren'tobrien2001-07-151-1/+1
| | | | | | | | | | | | sure when things got so bad (JHB says preemption worked just fine for months before the AlbertVM commit). Even post DillionVM locking commit, Miatas (DEC Personal Workstations) are very fragile -- not making it thru a world build. With this patch it does. Those hacking on SMPng will want to locally back out this commit. The rest of us will want to run with it until the SMPng guys figure out the problem(s). Submitted by: peter
* Fix MCOUNT_ENTER() so it actually compiles in the profiling case.jhb2001-07-142-2/+2
| | | | | Pointy hat to: me Submitted by: Danny J. Zerkel <dzerkel@columbus.rr.com>
* Fix reboot hangs that have happened with multiple processorsmjacob2001-07-144-3/+26
| | | | | | | | | | | | | on Alpha 4100s. Basically, if you're halting or you're rebooting, you should tell all other processors to halt first. Define IPI_HALT- IPI_STOP is not what we want for this purpose, which will call prom_halt(0) on receipt. The processor running the halt or reboot wil send an IPI_HALT to all other processors, delay a bit, then continue to do what what it was planning on doing (prom_halt({0|1})).
* Hrmpf. nyan's rev 1.25 commit to fdc.h crossed with my removal of it.joerg2001-07-142-0/+34
| | | | Back-integrate his (PC98) changes into fd.c.
* Yet another large non-function change.joerg2001-07-143-434/+542
| | | | | | | | | | | | | | | | | | | | . Integrate fdc.h into fd.c, with the removal of ft(4) there's no longer a reason to scatter things across two files. . Sanitize comments. Convert them into the style(9)-recommended multi-line form, make them sentences where apprpriate, etc. . Declare all functions on top, and declare them in the order they appear in the file. This order is totally chaotic, but Bruce convinced me that reordering the file wouldn't make it better either. . Kill a `possibly uninitialized' warning (only seen with -O2) in fd_read_status(). . Make the comments at return (0|1) statements in fdstate() consistent. . Nuke a ``keep the compiler happy'' dummy return at the end of fdstate(), gcc is smart enough to detect that it would never be reached anyway.
* Move the hints gunk to a seperate file. It isn't really part of thepeter2001-07-142-299/+1
| | | | newbus structure (no more than subr_rman.c is anyway).
* Fixed conflict with sys/dev/syscons/syscons.h.nyan2001-07-142-10/+0
| | | | Submitted by: yokota
* Move fxp to the miibus section where it belongs.dd2001-07-142-2/+2
|
* remember to set the return address in a message whenjulian2001-07-141-0/+1
| | | | | | | | | sending it along a hook. PR: 27906 Submitted by: Harti Brandt <brandt@fokus.gmd.de> no MFC as code is different in 4.x
* - Refine pc98 supports.nyan2001-07-145-90/+195
| | | | | - Use bus_space stuff. - Rename FDO_* -> FDC_* (obtained from NetBSD/pc98)
* Added epson_inw function.nyan2001-07-141-0/+11
|
* Merged from the following changes.nyan2001-07-147-58/+74
| | | | | | | | sys/dev/syscons/scvgarndr.c revision 1.11 sys/dev/syscons/scvtb.c revision 1.8 sys/dev/syscons/syscons.c revisions 1.361, 1.363, 1.364, 1.365 and 1.366 sys/isa/atkbd_isa.c revision 1.9 sys/isa/syscons_isa.c revision 1.17
* Merged from sys/i386/conf/GENERIC revision 1.313.nyan2001-07-141-1/+1
|
* Added (commented out) audio driver.nyan2001-07-141-0/+4
|
* Merged from sys/conf/options.i386 revision 1.150.nyan2001-07-141-0/+1
|
* Catch up with NetBSD/pc98.non2001-07-1426-3151/+7499
| | | | | | | | | | | | | | | | | | | | | | | o Much cleanly separate NetBSD(XS) / FreeBSD(CAM) codes. o Improve tagged queing support (full QTAG). o Improve quirk support. o Improve parity error retry. o Impliment wide negotheation. o Cmd link support. o Add copyright of CAM part. o Change for CAM_NEW_TRAN_CODE. o Work around for buggy KME UJDCD450. o stg: add disconnet condition. o nsp: use suspend I/O. and more. I thank Honda-san. conf/options.pc98: add CT_USE_RELOCATE_OFFSET and CT_BUS_WEIGHT dev/{ct,ncv,nsp,stg}/*_{pccard,isa}.c: add splcam() before calling attach/detach functions. Tested by: bsd-nomads Obtained from: NetBSD/pc98
* Go back to having either static OR dynamic hints, with fallbackpeter2001-07-142-32/+82
| | | | | | | | support. Trying to fix the merged set where dynamic overrode static was getting more and more complicated by the day. This should fix the duplicate atkbd, psm, fd* etc in GENERIC. (which paniced the alpha, but not the i386)
* Merge with latest version of the Mylex 6+ driver.msmith2001-07-148-1423/+1320
| | | | | | | | | | | | | | - All sources are built in a single object, reducing namespace pollution. - Kill the ready queue, and handle a busy response to mly_start in callers rather than deferring the command. - Improve our interaction with CAM: - Don't advertise physical channels as SCSI busses by default. - use the SIM queue freeze capability rather than queueing CDBs internally. - force bus reprobe at module load time. - Clean up more resources in mly_free. - Tidy up debugging levels. - Tidy up handling of events (mostly just code cleanliness). - Use explanatory macros for operations on bus/target/channel numbers.
* Return a locked struct buf from ufsdirhash_lookup() to avoid oneiedowse2001-07-133-9/+9
| | | | | | | | | | extra getblk/brelse sequence for each lookup. We already had this buf in ufsdirhash_lookup(), so there was no point in brelse'ing it only to have the caller immediately reaquire the same buffer. This should make the case of sequential lookups marginally faster; in my tests, sequential lookups with dirhash enabled are now only around 1% slower than without dirhash.
* I really should have just commented out this intire file vs. removing allobrien2001-07-131-0/+25
| | | | | the contents. One may still want the contents as reference for creating /boot/device.hints.
* Bump net.inet.tcp.sendspace to 32k and net.inet.tcp.recvspace to 65k.obrien2001-07-131-2/+2
| | | | | | | | | | | | | This should help us in nieve benchmark "tests". It seems a wide number of people think 32k buffers would not cause major issues, and is in fact in use by many other OS's at this time. The receive buffers can be bumped higher as buffers are hardly used and several research papers indicate that receive buffers rarely use much space at all. Submitted by: Leo Bicknell <bicknell@ufp.org> <20010713101107.B9559@ussenterprise.ufp.org> Agreed to in principle by: dillon (at the 32k level)
* Hints processing is FUBAR'ed right now.obrien2001-07-131-25/+0
| | | | | | | By default, we will end up with a duplicate set of hints if people have a properly populated /boot/device.hints. So for now, remove the hints here until Peter revisits the new hints processing from mid-June that broke Alpha booting.
* `pcn' supports AMD Am79C97x cards, not Am79C79x cards.dd2001-07-138-8/+8
| | | | | PR: 28946 Submitted by: Ryuichiro Imura <imura@ryu16.org>
* Unbroke kernel if I686_CPU is not defined.sobomax2001-07-132-0/+4
|
* Deal with the condition where we lose link in the middle of transmittingwpaul2001-07-122-2/+2
| | | | | | | | | | | | | | | a bunch of frames. In this case, the dc_link flag is cleared, and dc_start() stops draining the if_snd send queue, which results in lots of 'no buffers available' errors being reported to applications. The whole idea behind not draining the send queue until the link comes up was to avoid having the gratuitous ARP being lost while we're waiting for autoneg to complete after the interface is first brought up. As an optimization, change the test in dc_start() so that we only bail if dc_link is not set _and_ there are less than 10 packets in the send queue. If the queue has many frames in it, we need to drain them. If the queue has a small number of frames in it, we can hold off on sending them until the link comes up. MFC after: 1 week
* The #define for pcb_savefpu seems to do more harm than good.peter2001-07-122-2/+0
|
* Fix another missed pcb_savefpu reference (inside NPX_DEBUG)peter2001-07-124-8/+8
|
* Do not depend on pcb_savefpu backwards compat #define.peter2001-07-122-2/+2
|
* Forgot this fix from another tree. make enable_sse() a real prototype.peter2001-07-122-2/+2
|
* - Define a convenience macro ISTTYOPEN().yokota2001-07-122-21/+29
| | | | | | | - Slightly refine screen saver logic. No functional change. MFC after: 2 weeks
* Bump param, for SSE support and include file impact (<machine/pcb.h>)peter2001-07-121-1/+1
|
* Move init_sse() out of the "GenuineIntel" section, my AthlonMP systempeter2001-07-122-2/+2
| | | | has it, for example, and it works fine.
* Apply the i386 SSE mods to pc98 as well.peter2001-07-123-21/+238
|
* Activate SSE/SIMD. This is the extra context switching support thatpeter2001-07-1242-71/+653
| | | | | | | | | | | | | | | we are required to do if we let user processes use the extra 128 bit registers etc. This is the base part of the diff I got from: http://www.issei.org/issei/FreeBSD/sse.html I believe this is by: Mr. SUZUKI Issei <issei@issei.org> SMP support apparently by: Takekazu KATO <kato@chino.it.okayama-u.ac.jp> Test code by: NAKAMURA Kazushi <kaz@kobe1995.net>, see http://kobe1995.net/~kaz/FreeBSD/SSE.en.html I have fixed a couple of style(9) deviations. I have some followup commits to fix a couple of non-style things.
* Another NatSemi gigE card; the Netgear GA622Twpaul2001-07-112-2/+2
|
* Document additional cards supported by the nge driver: LinkSys EG1032wpaul2001-07-112-2/+4
| | | | | | anf EG1064, and the Surecom EP-320G-TX. Also fix typo in nge.4 man page: Addrton -> Addtron.
OpenPOWER on IntegriCloud