summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* With Alfred's permission, remove vm_mtx in favor of a fine-grained approachdillon2001-07-0480-1124/+566
| | | | | | | | | (this commit is just the first stage). Also add various GIANT_ macros to formalize the removal of Giant, making it easy to test in a more piecemeal fashion. These macros will allow us to test fine-grained locks to a degree before removing Giant, and also after, and to remove Giant in a piecemeal fashion via sysctl's on those subsystems which the authors believe can operate without Giant.
* postsig() currently requires Giant to be held. Giant is held properly atdillon2001-07-041-0/+2
| | | | | the first postsig() call, but not always held at the second place, resulting in an occassional panic.
* - Don't overwrite inb, inw and outw.nyan2001-07-0412-225/+404
| | | | | | | | - Move the lance_probe function to if_lnc.c. - Support C-NET(98)S again. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) and nyan No response from: Paul Richards
* adjust mbuf length right in route_output().ume2001-07-041-1/+7
| | | | | Obtained from: KAME MFC after: 1 week
* When the link-layer address of a router changes, select theume2001-07-041-0/+18
| | | | | | | | best router again. In particular, when the neighbor entry is newly created, it might affect the selection policy. Obtained from: KAME MFC after: 1 week
* Check the void * argument in the AC_FOUND_DEV case against NULL. Whethermjacob2001-07-047-1/+16
| | | | correctly or not, this sometimes is propagated up via XPT.
* Follow Bruce's suggestions. They're probably wrong, but better than before.mjacob2001-07-041-3/+10
|
* Add code, imperfect though it may be, for CAM_NEW_TRAN_CODE compilation.mjacob2001-07-041-11/+115
|
* Implement mwakeup, mwakeup_one, cv_signal_drop and cv_broadcast_drop.jake2001-07-044-6/+58
| | | | | | | | | These take an additional mutex argument, which is dropped before any processes are made runnable. This can avoid contention on the mutex if the processes would immediately acquire it, and is done in such a way that wakeups will not be lost. Reviewed by: jhb
* Constify the format string.des2001-07-032-2/+2
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Make the code to read the kernel message buffer via sysctl machine-tmm2001-07-033-84/+45
| | | | | independent and rename the corresponding sysctls from machdep.msgbuf and machdep.msgbuf_clear (i386 only) to kern.msgbuf and kern.msgbuf_clear.
* properly check DES weak key. KAME PR 363.ume2001-07-031-5/+2
| | | | | Obtained from: KAME MFC after: 1 week
* * simplifycg2001-07-032-823/+325
| | | | | | | | | | | | * add support for mic record channel * add support for setblocksize * make mpsafe * make getptr accurate * reduce buffer size from 64k to 16k for better synchronisation
* Remove spl's in uio_yield() that are covered by the sched_lock.jhb2001-07-031-3/+0
|
* remove obsolete typedefs.cg2001-07-033-7/+5
| | | | only define INTR_TYPE_AV if it is not already defined.
* use TAILQ_FOREACH() in searching address listume2001-07-031-2/+1
| | | | | Obtained from: KAME MFC after: 1 week
* Add Transmeta Crusoe LongRun support.iwasaki2001-07-032-0/+396
| | | | | | Submitted by: Tamotsu HATTORI <athlete@kta.att.ne.jp> Reviewed by: arch@ folks MFC after: 1 week
* Remove commented-out garbage that skipped updating schedcpu() stats forjhb2001-07-031-2/+0
| | | | ithreads in SWAIT.
* Just check p_oncpu when determining if a process is executing or not.jhb2001-07-031-4/+1
| | | | | | | We already did this in the SMP case, and it is now maintained in the UP case as well, and makes the code slightly more readable. Note that curproc is always executing, thus the p != curproc test does not need to be performed if the p_oncpu check is made.
* Axe spl's that are covered by the sched_lock (and have been for quitejhb2001-07-031-30/+4
| | | | some time.)
* Include the wait message and channel for msleep() in the KTR tracepoint.jhb2001-07-031-1/+2
|
* Fix a XXX comment by moving the initialization of the number of pbuf'sjhb2001-07-031-9/+9
| | | | | for the vnode pager to a new vnode pager init method instead of making it a hack in getpages().
* Remove bogus need_resched() of the current CPU in roundrobin().jhb2001-07-031-3/+6
| | | | | | | We don't actually need to force a context switch of the current process. The act of firing the event triggers a context switch to softclock() and then switching back out again which is equivalent to a preemption, thus no further work is needed on the local CPU.
* Grab Giant around postsig() since sendsig() can call into the vm tojhb2001-07-032-6/+2
| | | | grow the stack and we already needed Giant for KTRACE.
* Quiet warning by removing ast() prototype.jhb2001-07-032-2/+0
| | | | Forgotten by: jhb (me)
* Allow Giant to be recursed when a process terminates.jhb2001-07-036-12/+12
|
* Correct obviously wrong mistakes.green2001-07-023-3/+3
|
* Add a couple of major numbers for ICP Vortex (who were acquired by Intel,msmith2001-07-021-0/+2
| | | | thus taking over the SRC controllers).
* gif(4) and stf(4) modernization:brooks2001-07-0218-203/+287
| | | | | | | | | | | - Remove gif dependencies from stf. - Make gif and stf into modules - Make gif cloneable. PR: kern/27983 Reviewed by: ru, ume Obtained from: NetBSD MFC after: 1 week
* Add kernel infrastructure for network device cloning.brooks2001-07-024-5/+242
| | | | | | Reviewed by: ru, ume Obtained from: NetBSD MFC after: 1 week
* A slightly more complete change to timeouts:mjacob2001-07-024-14/+31
| | | | | | | | | | 1. Add SA_IO_TIMEOUT as an option (4 minutes default) to cover reads, writes, wfm, test unit ready. 2. Add internal SCSIOP_TIMEOUT (e.g., for mode sense) at 1 minute. This should not require an option, but is cleaner to parameterize. MFC after: 1 week
* make it compile again in -currentmjacob2001-07-021-1/+1
|
* Reviewed by: Matthew Jacoblars2001-07-021-1/+1
| | | | | Changed the timeout to wait for writing of filemarks to complete from 1 minute to 3 minutes. This should probably be enhanced to be a sysctl variable.
* While in there fixing a fragment logging bug, fix it so we logcjc2001-07-021-8/+11
| | | | | | | | | | | | | | | | | | fragments "right." Log fragment information tcpdump(8)-style, Jul 1 19:38:45 bubbles /boot/kernel/kernel: ipfw: 1000 Accept ICMP:8.0 192.168.64.60 192.168.64.20 in via ep0 (frag 53113:1480@0+) That is, instead of the old, ... Fragment = <offset/8> Do, ... (frag <IP ID>:<data len>@<offset>[+]) PR: kern/23446 Approved by: ru MFC after: 1 week
* Detect the device on e.g. Dell OptiPlex GX110s.green2001-07-021-0/+1
|
* Make all this compile on 4.3, modulus sbuf.green2001-07-024-3/+15
|
* Add device ID for the OHCI controller in the Apple KeyLargo chip.benno2001-07-022-0/+10
|
* Fixed warning message.nyan2001-07-022-6/+4
| | | | Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* Fixed to support C-NET(9N)E.nyan2001-07-021-9/+2
|
* Minor style(9) changes before I get going.imp2001-07-021-41/+40
|
* Fix a couple of compile warnings because WLDEBUG and WLCACHE wereimp2001-07-021-2/+8
| | | | not defined.
* Move wl driver to dev/wl. Repo copied to dev/wl, the old copiesimp2001-07-026-2785/+3
| | | | | | | | removed and a minimal number of changes to make it compile in the new location. # I have a fully converted on a disk that may be crashed. If it is # crashed, I'll redo the work.
* Bump config version.imp2001-07-025-5/+5
|
* Repo copy i82586.h to dev/ic/i82586.h.imp2001-07-022-333/+1
| | | | | This file currently is very ie specific, but I have plans to change that...
* Combine a couple of tests to reduce the indentation level.imp2001-07-011-9/+7
|
* Some interrelated interrupt changes.imp2001-07-012-15/+49
| | | | | | | | | | | | | | | | | | | | | | | | | Frist, for pci slots, make the setup intr save the requested interrupt vector and arg and return rather than passing it up to our parent. On interrupts, we call this vector iff there's a card in the slot. This should eliminate some of the hangs or "weird" messages that people see when ejecting cards and also help close the race window somewhat. Reading the pci bus one more time for this information is judged to be an acceptible tradeoff since it is very very fast. Cleanup a little how we detect unsupported cards. Only detect unsupported cards (eg cardbus cards) on card insertion (or more pedantically when a card is actually present). This should allow us to change the message in the future to "cardbus card not supported with OLDCARD" :-). Note: We may also consider this for the ISA bus case, but there the reads are much more expensive and the location of the CD pin status lines appears to be less standardized. Also, the ISA management interrupt isn't shared with the card's interrupt. The mutliplex the CSC and function interrupts bit also appears to be non-standard (or at least not imlemented on all bridges).
* Write zeros into the base/bounds register bars. We need to do thisimp2001-07-011-0/+16
| | | | | | | | because NEWBUS (and I think some versions of Windows sometimes) writes 0xffffffff to these registers to disable them. When they are "disabled" like this, writing memory ranges to the pcic registers are ignored and you will get "card (null) (null)" when you insert a call otherwise.
* First cut at getting the pcic controller and power information forimp2001-07-011-32/+62
| | | | | | each of the bridge chips. Before we wrongly assumes that all cardbus bridge chips were intel compatible step A/B. This mostly worked, but likely caused problems with certain cirrus logic cardbus bridges.
* Clarify some of the 3.3V code with better comments. Also, since theimp2001-07-011-6/+12
| | | | types are treated as a bitfield, test them as such.
* Add comments explaining why we do the somewhat odd irq mapping on PC98imp2001-07-011-0/+7
| | | | machines with C-BUS cards.
OpenPOWER on IntegriCloud