summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* add sndstat.c so module users have /dev/sndstat againcg2001-06-232-2/+2
|
* Add sysctl interface (Read-only) for temprature, AC-line and Battery.iwasaki2001-06-236-73/+618
| | | | Patches for acpi_cmbat.c submitted by Munehiro Matsuda.
* Merged from sys/i386/isa/npx.c revision 1.102.kato2001-06-231-2/+2
|
* Merged from sys/i386/i386/machdep.c revisions 1.456 and 1.457.kato2001-06-232-34/+16
|
* Removed pcm and sbc devices.kato2001-06-231-4/+0
|
* Merged from sys/conf/files.i386 revisions 1.362 and 1.363.kato2001-06-231-5/+2
|
* Merged from sys/boot/i386/btx/btx/btx.s revision 1.25.kato2001-06-232-2/+2
|
* Convert inb/outb to bus_space.nsouch2001-06-234-50/+68
| | | | Submitted by: jcm@FreeBSD-uk.eu.org
* Translate various ppbus sequences into microsequences to limitnsouch2001-06-232-109/+128
| | | | | | overhead of abstraction layers. Submitted by: jcm@FreeBSD-uk.eu.org
* Eliminate the allocation of a tcp template structure for eachsilby2001-06-238-135/+122
| | | | | | | | | | | | connection. The information contained in a tcptemp can be reconstructed from a tcpcb when needed. Previously, tcp templates required the allocation of one mbuf per connection. On large systems, this change should free up a large number of mbufs. Reviewed by: bmilekic, jlemon, ru MFC after: 2 weeks
* Fix a number of bugs in the implementation of the WEP related statusbrooks2001-06-223-67/+156
| | | | | | | | | | | | | functions in ifconfig. "ifconfig an0" should output the correct status now. Also, make the read and write functions both more robust and more consistant. This should stop most of the incorrect size complaints and eliminate the possiability of panics from firmware that increases resource sizes. PR: kern/27826 Reviewed by: imp, jlemon Submitted by: Doug Ambrisko <ambrisko@ambrisko.com> David Wolfskill <dhw@whistle.com>
* - Lock CURSIG() with the proc lock to close the signal race with psignal.jhb2001-06-221-99/+67
| | | | | | | | | | | | | | | | - Grab Giant around ktrace points. - Clean up KTR_PROC tracepoints to not display the value of sched_lock.mtx_lock as it isn't really needed anymore and just obfuscates the messages. - Add a few if conditions to replace gotos. - Ensure that every msleep KTR event ends up with a matching msleep resume KTR event (this was broken when we didn't do a mi_switch()). - Only note via ktrace that we resumed from a switch once rather than twice in several places in msleep(). - Remove spl's rom asleep and await as the proc lock and sched_lock provide all the needed locking. - In mawait() add in a needed ktrace point for noting that we are about to switch out.
* - Lock CURSIG with the proc lock and don't release the proc lock untiljhb2001-06-221-4/+10
| | | | | after grabbing the sched lock to close a race. - Lock ktrace points with Giant.
* - Grab the proc lock around CURSIG and postsig(). Don't release the procjhb2001-06-225-13/+20
| | | | | | | | lock until after grabbing the sched_lock to avoid CURSIG racing with psignal. - Don't grab Giant for addupc_task() as it isn't needed. Reported by: tegge (signal race), bde (addupc_task a while back)
* - Change CURSIG() and postsig() to require that the proc lock is heldjhb2001-06-221-9/+10
| | | | | | | | | | rather than grabbing it and releasing it themselves. This allows callers of these functions to get the lock to close race conditions. - Grab Giant around ktrace in postsig. - Count the switches performed on SIGSTOP's as involuntary context switches in the resource usage stats. Reported by: tegge (signal race), bde (missing csw stats)
* People wanted this bumped for the Bzip2 import.obrien2001-06-221-1/+1
|
* Make the hw.physmem and hw.usermem variables unsigned so that they dontpeter2001-06-222-4/+4
| | | | come up as negative on machines with >2GB ram.
* Be conservative and always perform an mb after an atomic_cmpset operation.jhb2001-06-221-0/+2
|
* - Protect all accesses to nsw_[rw]count{,_{,a}sync} with the pbuf mutex.jhb2001-06-221-4/+4
| | | | | - Don't drop the vm mutex while grabbing the pbuf mutex to manipulate said variables.
* int -> size_t fixmjacob2001-06-221-2/+2
|
* Make hostid an unsigned long (matches kern_mib.c change)mjacob2001-06-221-1/+1
| | | | | PR: kern/21132 MFC after: 1 month
* Temporary fix at least- define NCPU_PRESENT which will be mp_npcus formjacob2001-06-221-2/+11
| | | | SMP kernels, one (1) for non-SMP.
* changed hostid from long to unsigned long to be able to store values > 2GBpirzyk2001-06-221-3/+2
| | | | | | | | on i386 platforms. Also changed SYSCTL type from INT to ULONG and removed comment about it. PR: kern/21132 MFC after: 1 month
* Doh, missed a printf -> db_printf in the previous commit.jhb2001-06-221-1/+1
|
* Introduce numerous SMP friendly changes to the mbuf allocator. Namely,bmilekic2001-06-2212-899/+1198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | introduce a modified allocation mechanism for mbufs and mbuf clusters; one which can scale under SMP and which offers the possibility of resource reclamation to be implemented in the future. Notable advantages: o Reduce contention for SMP by offering per-CPU pools and locks. o Better use of data cache due to per-CPU pools. o Much less code cache pollution due to excessively large allocation macros. o Framework for `grouping' objects from same page together so as to be able to possibly free wired-down pages back to the system if they are no longer needed by the network stacks. Additional things changed with this addition: - Moved some mbuf specific declarations and initializations from sys/conf/param.c into mbuf-specific code where they belong. - m_getclr() has been renamed to m_get_clrd() because the old name is really confusing. m_getclr() HAS been preserved though and is defined to the new name. No tree sweep has been done "to change the interface," as the old name will continue to be supported and is not depracated. The change was merely done because m_getclr() sounds too much like "m_get a cluster." - TEMPORARILY disabled mbtypes statistics displaying in netstat(1) and systat(1) (see TODO below). - Fixed systat(1) to display number of "free mbufs" based on new per-CPU stat structures. - Fixed netstat(1) to display new per-CPU stats based on sysctl-exported per-CPU stat structures. All infos are fetched via sysctl. TODO (in order of priority): - Re-enable mbtypes statistics in both netstat(1) and systat(1) after introducing an SMP friendly way to collect the mbtypes stats under the already introduced per-CPU locks (i.e. hopefully don't use atomic() - it seems too costly for a mere stat update, especially when other locks are already present). - Optionally have systat(1) display not only "total free mbufs" but also "total free mbufs per CPU pool." - Fix minor length-fetching issues in netstat(1) related to recently re-enabled option to read mbuf stats from a core file. - Move reference counters at least for mbuf clusters into an unused portion of the cluster itself, to save space and need to allocate a counter. - Look into introducing resource freeing possibly from a kproc. Reviewed by (in parts): jlemon, jake, silby, terry Tested by: jlemon (Intel & Alpha), mjacob (Intel & Alpha) Preliminary performance measurements: jlemon (and me, obviously) URL: http://people.freebsd.org/~bmilekic/mb_alloc/
* Move check against CAM_NEW_TRAN_CODE ahead of the file that might includemjacob2001-06-222-6/+8
| | | | the option file that would define it.
* Don't set CONSPEED to the default and deobfuscate the comment.dd2001-06-212-2/+4
| | | | | PR: 28296 Submitted by: bde, Giorgos Keramidas <keramida@ceid.upatras.gr>
* Use the M_ZERO flag to malloc(9)greid2001-06-2121-64/+32
| | | | | Reviewed by: cg MFC after: 1 week
* Don't dereference NULL regs pointer (should mapping I/O ports fail, asmjacob2001-06-211-6/+7
| | | | | | | they did for me on an alpha) Approved by: gibbs@freebsd.org MFC after: 2 days
* - Renumber KAME local ICMP types and NDP options numberes beacaues theysumikawa2001-06-211-6/+8
| | | | | | | | | are duplicated by newly defined types/options in RFC3121 - We have no backward compatibility issue. There is no apps in our distribution which use the above types/options. Obtained from: KAME MFC after: 2 weeks
* Remove -DNEW_LINKERSET, it is not used here anymore. This is now native.peter2001-06-214-12/+0
|
* Don't lock around swap_pager_swap_init() that is only called once duringjhb2001-06-201-0/+2
| | | | | the pagedaemon's startup code since it calls malloc which results in lock order reversals.
* Fix some lock order reversals where we called free() while holding a procjhb2001-06-202-11/+14
| | | | | | lock. We now use temporary variables to save the process argument pointer and just update the pointer while holding the lock. We then perform the free on the cached pointer after releasing the lock.
* Cosmetics:joerg2001-06-202-66/+6
| | | | | | | | | | . staticize out_fdc(), there's no longer an ft(4) driver sharing its use . remove in_fdc(), has been used by ft(4) last time, long since obsoleted by fd_in() . move the declaration of fd_clone() to where most of the other function declarations are . de-__P()ify fd_clone(), it's been the only _P()ed function in the entire file
* Change m_devget()'s outdated and unused `offset' argument to actually meanbmilekic2001-06-2015-90/+57
| | | | | | | | | | | | | | | | | | | | something: offset into the first mbuf of the target chain before copying the source data over. Make drivers using m_devget() with a first argument "data - ETHER_ALIGN" to use the offset argument to pass ETHER_ALIGN in. The way it was previously done is potentially dangerous if the source data was at the top of a page and the offset caused the previous page to be copied (if the previous page has not yet been appropriately mapped). The old `offset' argument in m_devget() is not used anywhere (it's always 0) and dates back to ~1995 (and earlier?) when support for ethernet trailers existed. With that support gone, it was merely collecting dust. Tested on alpha by: jlemon Partially submitted by: jlemon Reviewed by: jlemon MFC after: 3 weeks
* Preemption by an interrupt thread is an involuntary switch, not a voluntaryjhb2001-06-201-1/+1
| | | | | | one. Pointy-hat to: me
* Applied the patch to fix HARP ATM that was broken when KAME IPv6 camepirzyk2001-06-202-1/+4
| | | | | | | | into FreeBSD. PR: kern/23620 Submitted by: rh@matriplex.com MFC after: 1 month
* The serial console break-to-debugger support only functioned whileiedowse2001-06-202-2/+42
| | | | | | | | | | | | | | the console device was open. At other times, the interrupts that are used to detect the break signal or ~^B sequence were disabled, so these events would not be noticed until the next open (e.g. the next kernel printf). This was mainly a problem while there was no getty running on the console, such as during bootup or shutdown. For serial consoles with break-to-debugger support, we now enable the generation of interrupts at attach time, and we leave them enabled while the device is closed. Reviewed by: bde (I've since made chages as per his suggestions)
* Constify (silence warnings introduced by last commit to sys/module.h)des2001-06-201-7/+7
|
* Allow individual ports to use alternate pin settings (swap dsr & cd)brian2001-06-202-12/+89
| | | | | | | | | | | via the new DIGIIO_SETALTPIN ioctl, and allow the port's ALTPIN setting to be queried via DIGIIO_GETALTPIN. The initial state and lock devices are normally used to set and/or lock ALTPIN settings although the device itself may also be used. ALTPIN settings are applied per-device and apply to both the callin and callout device at the same time.
* Add DIGIIO_SETALTPIN and DIGIIO_GETALTPIN ioctl valuesbrian2001-06-201-5/+7
|
* made sure to use the correct sa_len for rtalloc().ume2001-06-202-4/+4
| | | | | | | | | | sizeof(ro_dst) is not necessarily the correct one. this change would also fix the recent path MTU discovery problem for the destination of an incoming TCP connection. Submitted by: JINMEI Tatuya <jinmei@kame.net> Obtained from: KAME MFC after: 2 weeks
* Close a race where we were releasing the unit resource at the startbrian2001-06-201-2/+4
| | | | | | | | | | | | of tunclose() rather than the end, and tunopen() grabbed that unit before tunclose() finished (one process is allocating it while another is freeing it!). It may be worth hanging some sort of rw mutex around all specinfo calls where d_close and the detach handler get a write lock and all other functions get a read lock. This would guarantee certain levels of ``atomicity'' (is that a word?) that people may expect (I believe Solaris does something like this).
* Revert last change: it was unintended at this time.imp2001-06-201-31/+37
|
* Add new entries for:imp2001-06-202-38/+35
| | | | | | | TI1210, TI4410 and TI4450 and fix what looks like a typo in the OZ6860 entry. Obtained from: NetBSD
* Add B921600 (yes, some serial ports can do this, but generic sio not supportache2001-06-202-0/+2
| | | | them yet)
* Put the scheduler, vmdaemon, and pagedaemon kthreads back under Giant forjhb2001-06-202-19/+1
| | | | | now. The proc locking isn't actually safe yet and won't be until the proc locking is finished.
* Constify the module name. This silences a few warnings ("initializationdes2001-06-191-2/+2
| | | | | | | discards qualifier"), and probably adds a few where module names are compared to or passed as non-const strings. Not-objected-to-by: bde
* Actually document TCPDEBUG.wollman2001-06-192-2/+6
|
* Fix punctuation in comment.wollman2001-06-192-4/+4
|
OpenPOWER on IntegriCloud