summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Save pnp changes into a sysctl variable for kget, just as is donejkh1999-02-101-3/+27
| | | | with the isa changes.
* Add a prioritization field to the devstat_add_entry() call so thatken1999-02-1022-55/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | peripheral drivers can determine where in the devstat(9) list they are inserted. This requires recompilation of libdevstat, systat, vmstat, rpc.rstatd, and any ports that depend on the devstat code, since the size of the devstat structure has changed. The devstat version number has been incremented as well to reflect the change. This sorts devices in the devstat list in "more interesting" to "less interesting" order. So, for instance, da devices are now more important than floppy drives, and so will appear before floppy drives in the default output from systat, iostat, vmstat, etc. The order of devices is, for now, kept in a central table in devicestat.h. If individual drivers were able to make a meaningful decision on what priority they should be at attach time, we could consider splitting the priority information out into the various drivers. For now, though, they have no way of knowing that, so it's easier to put them in an easy to find table. Also, move the checkversion() call in vmstat(8) to a more logical place. Thanks to Bruce and David O'Brien for suggestions, for reviewing this, and for putting up with the long time it has taken me to commit it. Bruce did object somewhat to the central priority table (he would rather the priorities be distributed in each driver), so his objection is duly noted here. Reviewed by: bde, obrien
* After wading in the cesspool of ip_input for an hour, I have managed towollman1999-02-091-10/+8
| | | | | | | | convince myself that nothing will break if we permit IP input while interface addresses are unconfigured. (At worst, they will hit some ULP's PCB scan and fail if nobody is listening.) So, remove the restriction that addresses must be configured before packets can be input. Assume that any unicast packet we receive while unconfigured is potentially ours.
* Remove dictHashSummary internal function; it used doubles.jkh1999-02-093-79/+0
| | | | Submitted by: Daniel C. Sobral <dcs@newsguy.com>
* Add missing poatch for ibcs2_ipc.h as well.guido1999-02-091-4/+14
| | | | Sorry this took so long but there was a routing problem earlier today.
* Addendum to vm_map coalesce optimization. Also, this was backed-outdillon1999-02-091-1/+1
| | | | | | because there was a concensus on current in regards to leaving bss r+w+x instead of r+w. This is in order to maintain reasonable compatibility with existing JIT compilers (e.g. kaffe) and possibly other programs.
* Cleanup. Set all PCI parameters of importance. Set a define that willmjacob1999-02-092-30/+210
| | | | allow us via config options prefer mem space to I/O space.
* Roll internal release tag. Roll core version minor. Fix broken DPARM_DEFAULTmjacob1999-02-091-5/+8
| | | | | | | | | | | | define. Add a new config flag param (ISP_CFG_NONVRAM) whose intent it is to cause NVRAM to be ignored. Add ISPASYNC_LOOP_DOWN and ISPASYNC_LOOP_UP isp_async enums. Amazingly enough, I did all my scsi_sa work recently without realizing that I had a broken isp card whose (unchangeable- it's an old old old isp1020) NVRAM has sync mode enabled, but disconnect/reconnect disabled- the ISP_CFG_NONVRAM is definitely warranted when you want to bloody well ignore the NVRAM and set something sensible.
* clean up some NVRAM definesmjacob1999-02-091-9/+5
|
* Add in defines that disable (temp) fast posting.mjacob1999-02-091-3/+7
|
* Allow fibre channel 'bus resets' to go through. Handle Loop Down/Loop Upmjacob1999-02-091-13/+43
| | | | | events by freezing/unfreezing the simq- nice to have such control at this level! Do bus resets in attach layer (non-CAM defined code).
* Roll internal release tag. Print out if we're in a 64 bit PCI slot.mjacob1999-02-091-59/+156
| | | | | | | | | | | | Use fast memory timing NVRAM parameter. Clean up and fix establishment of default target parameters. Don't use NVRAM if are flagged as not to do so (I had a busted NVRAM setup which I couldn't edit that enabled SYNC mode but disabled disconnect/reconnect and wide!!). Fix delays after resets. BUS resets not done in isp_init anymore- relegated to OS specific outer layers. Fix a buglet where you can get in a loop for a NULL xs in the completion list in isp_intr. Add in some defines that can disable fast posting. Add in code for Loop Up/Loop Down events that call into the outer layers as to what to do.
* roll internal release tagmjacob1999-02-094-10/+14
|
* add isp specific config options and explanationsmjacob1999-02-093-3/+75
|
* add isp host adapter specific optionsmjacob1999-02-091-1/+6
|
* Revamp vm_object_[q]collapse(). Despite the complexity of this patch,dillon1999-02-082-210/+236
| | | | | | no major operational changes were made. The three core object->memq loops were moved into a single inline procedure and various operational characteristics of the collapse function were documented.
* Generate correct DLT_NULL headers before passing packets to bpf.des1999-02-081-30/+43
| | | | | | | | | Do not modify m_len before passing mbuf chains to bpf. Don't forget to pass packets to bpf when running in Crynwr mode (LINK0). Partially based on a patch by Bill Fenner <fenner@freebsd.org>. PR: bin/7241
* Bring in the simplified port probe from src/sys/i386/isa/lpt.cdes1999-02-081-26/+20
|
* Added detection for bt848a chipsroger1999-02-082-10/+22
|
* Added check to bktr_mmap() from OpenBSD driver.roger1999-02-082-92/+166
| | | | | | | | Improved MSP34xx reset for bt848 Hauppauge boards. Added detection for Bt848a. Vsevolod Lobko<seva@sevasoft.alex-ua.com> added more XUSSR channels. Submitted by: parts from Vsevolod Lobko<seva@sevasoft.alex-ua.com> Obtained from: parts from OpenBSD
* Sync with sys/boot/i386/loader/version revision 1.3.kato1999-02-081-1/+2
|
* remove leftover garbage line.julian1999-02-081-2/+1
|
* Fix for PR 9309.julian1999-02-081-1/+10
| | | | | | Divert was not feeding clean data to ifa_ifwithaddr() so it was giving bad results. Submitted by: kseel <kseel@utcorp.com>, Ruslan Ermilov <ru@ucb.crimea.ua>
* General cleanup. Remove #if 0's and remove useless register qualifiers.dillon1999-02-081-79/+34
|
* Bumb up loader's version.dcs1999-02-081-1/+2
| | | | Reviewed by: Michael Smith <msmith@freebsd.org>
* Adjust idle zero-page fill hysteresis based on tests. Use 2/3 and 4/5dillon1999-02-086-22/+42
| | | | | | | zero-fill levels. Adjust comment for ozfod in vmmeter.h - this counter represents non-optimal ( on the fly ) zero fills, not prefills.
* Add hysteresis to alpha version of vm_page_zero_idle().dillon1999-02-083-42/+51
|
* Rip out PQ_ZERO queue. PQ_ZERO functionality is now combined in withdillon1999-02-088-163/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | PQ_FREE. There is little operational difference other then the kernel being a few kilobytes smaller and the code being more readable. * vm_page_select_free() has been *greatly* simplified. * The PQ_ZERO page queue and supporting structures have been removed * vm_page_zero_idle() revamped (see below) PG_ZERO setting and clearing has been migrated from vm_page_alloc() to vm_page_free[_zero]() and will eventually be guarenteed to remain tracked throughout a page's life ( if it isn't already ). When a page is freed, PG_ZERO pages are appended to the appropriate tailq in the PQ_FREE queue while non-PG_ZERO pages are prepended. When locating a new free page, PG_ZERO selection operates from within vm_page_list_find() ( get page from end of queue instead of beginning of queue ) and then only occurs in the nominal critical path case. If the nominal case misses, both normal and zero-page allocation devolves into the same _vm_page_list_find() select code without any specific zero-page optimizations. Additionally, vm_page_zero_idle() has been revamped. Hysteresis has been added and zero-page tracking adjusted to conform with the other changes. Currently hysteresis is set at 1/3 (lo) and 1/2 (hi) the number of free pages. We may wish to increase both parameters as time permits. The hysteresis is designed to avoid silly zeroing in borderline allocation/free situations.
* Backed out vm_map coalesce optimization - it resulted in 22% more pagedillon1999-02-081-2/+2
| | | | | | faults for reasons unknown ( under investigation ). /usr/bin/time -l make in /usr/src/bin went from 67000 faults to 90000 faults.
* Change the load address of the ELF dynamic linker from "2L*MAXDSIZ"jdp1999-02-074-5/+37
| | | | | | | | | | | | | | | | | | | | | | | to an architecture-specific value defined in <machine/elf.h>. This solves problems on large-memory systems that have a high value for MAXDSIZ. The load address is controlled by a new macro ELF_RTLD_ADDR(vmspace). On the i386 it is hard-wired to 0x08000000, which is the standard SVR4 location for the dynamic linker. On the Alpha, the dynamic linker is loaded MAXDSIZ bytes beyond the start of the program's data segment. This is the same place a userland mmap(0, ...) call would put it, so it ends up just below all the shared libraries. The rationale behind the calculation is that it allows room for the data segment to grow to its maximum possible size. These changes have been tested on the i386 for several months without problems. They have been tested on the Alpha as well, though not for nearly as long. I would like to merge the changes into 3.1 within a week if no problems have surfaced as a result of them.
* Remove MAP_ENTRY_IS_A_MAP 'share' maps. These maps were once used todillon1999-02-0710-114/+49
| | | | | | attempt to optimize forks but were essentially given-up on due to problems and replaced with an explicit dup of the vm_map_entry structure. Prior to the removal, they were entirely unused.
* Remove L1 cache coloring optimization ( leave L2 cache coloring opt ).dillon1999-02-072-196/+91
| | | | | Rewrite vm_page_list_find() and vm_page_select_free() - make inline out of nominal case.
* Reorder the pcvt(4) options to the appropriate section, so i can closejoerg1999-02-073-33/+36
| | | | | | | docs/1855. :) PR: docs/1855 Submitted by: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
* 1) Fix our view of how ibcs2_semid_ds looks. There is no padding int thereguido1999-02-072-13/+46
| | | | | | | | | | | | (SVR4 does have it so that;s probably the cause of this bug) 2) Add a wrapper function for translation between ibcs2_ipc_perm and ipc_perm as I think we screwed up when defining the ipc_perm struct and mixed up 'normal' and creator [ug]id's 3) Fix IBCS2_IPC_STAT semctl. The FreeBSD version needs a union semun whereas the IBCS2 version gives a struct ibcs2_semid_ds. Apparently this is all fixed in the SVR4 compatibility code. PR: 7729
* Remove strange-looking quotes. This part of the code is #if'ed out,dcs1999-02-071-1/+1
| | | | | | | | and the variable doesn't even exist (though it is referenced elsewhere). Just make sure it produces error messages when Mike get back to it. PR: kern/9934 Submitted by: Adrian Filipi-Martin
* When shadowing objects, adjust the page coloring of the shadowing objectdillon1999-02-071-1/+6
| | | | | | | such that pages in the combined/shadowed object are consistantly colored. Submitted by: "John S. Dyson" <dyson@iquest.net>
* Hmm- I must be blind. There *was* already an appropriate typedef stillmjacob1999-02-061-2/+1
| | | | | left there. The typedef that was inserted negated the correct typedef. This may have just been cvs automerge foo. Sorry.
* I don't know what happened here- I submitted a *working* patch formjacob1999-02-061-2/+3
| | | | | | | alpha to John Polstra yesterday and it was checked in. Then there was a bunch of CVS activity, and it ended up with the *broken* prototype being reinserted. All I see in the history is 'style nits' as a comment, and I certainly agree with the latter of those two words.
* Changed to use IICBUS_REPEATED_STARTroger1999-02-061-2/+2
| | | | Submitted by: Changed to use IICBUS_REPEATED_START
* Make it possible to use lo0 as an internal IPX network. This is usefulljhay1999-02-063-7/+6
| | | | | | for mars_nwe server and nwfs. PR: 9871 Submitted by: Boris Popov <bp@butya.kz>
* Don't use the pointer returned by MALLOC before checking if it is NULL.jhay1999-02-061-3/+3
| | | | | PR: 9871 (part of it) Submitted by: Boris Popov <bp@butya.kz>
* Sync with syscons for i386.kato1999-02-064-32/+100
| | | | Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
* Added underscores to some names in svr4_locore.s so that it compilesbde1999-02-062-9/+10
| | | | | | | | | | | | | | with -aout. Added translation back to elf names in asnames.h as usual. The elf names were inconsistent in the aout case even internally because a macro adds an underscore to just one of them. Removed commented out code for a previous life of `svr4_esigcode'. Didn't add an underscore to `svr4_esigcode' since it is correct for aout although wrong for elf, like most internal names in assembler files. These names should be in a different namespace so that gprof can ignore them. Fixed some disorder in asnames.h.
* Flush delayed-write data out prior to issuing a rename rpc. This appearsdillon1999-02-062-2/+28
| | | | | | to fix the problem w/ NFSV3 whereby a make installworld would get into high-network-bandwidth situations continuously trying to retry nfs writes that fail with a 'stale file handle' error.
* Honor ${LDFLAGS} for building svr4_genassym. This is part of fixingbde1999-02-061-5/+3
| | | | | | | | | | | | | | | | | | | | | world breakage (mainly for cross-world cases). The world Makefile attempts to build tools static so that nonexistent or wrong shared libraries and interpreters don't get used. This is broken anyway since the world Makefile doesn't know about svr4_genassym. Force building svr4_genassym static. This is part of "fixing" aout-to-elf-build breakage. aout-to-elf-build abuses NOTOOLS to avoid rebuilding all the aout tools. This saves time and avoids some complications. However, it breaks all the internal tools -- they get linked to target libraries which might not work. Cases where the host can run the target's static libraries are "fixed" by encrufting all Makefiles that build internal tools to build the tools static. Don't add .depend to CLEANFILES -- it just breaks the separation of `make cleandepend' from `make clean'. Removed some superflous explicit dependencies.
* Add hysteresis to the 'swap_pager_getswapspace; failed' console message.dillon1999-02-061-5/+9
| | | | | Also widen the hysteresis levels a little ( these really should be dynamically configured ).
* Back out rev 1.89. The #include is necessary for the #if that testspeter1999-02-061-2/+2
| | | | | | the value that config(8) provides when intpm is configured. It seems that somebody forgot to rerun config at the time and commented this out instead.
* Use snd_nxt, not rcv_nxt, when calculating the ISS during TIME_WAIT.fenner1999-02-062-4/+4
| | | | | | | | This was missed in the 4.4-Lite2 merge. Noticed by: Mohan Parthasarathy <Mohan.Parthasarathy@eng.Sun.COM> and jayanth@loc201.tandem.com (vijayaraghavan_jayanth) on the tcp-impl mailing list.
* Correct an "&" operator which should have been "&&".jdp1999-02-051-2/+2
| | | | Submitted by: mjacob
* Style nit: sort elf_brand_inuse() prototype in with the others.newton1999-02-051-2/+3
| | | | | | Prototype also needed to be added for !ELFCLASS32 case. Submitted by: bde
OpenPOWER on IntegriCloud