summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add back some now needed #include <sys/systm.h>phk2000-12-0732-12/+36
| | | | Fix various warnings while here anyway.
* Build the sym driver as a kernel module.alex2000-12-071-0/+9
|
* Remove unneeded include of <pci.h>alex2000-12-071-1/+0
| | | | Approved by: groudier
* Create a pmtimer device instance for GENERIC and NEWCARD kernels by default.iwasaki2000-12-073-0/+3
| | | | Submitted by: Masayuki FUKUI <fukui@sonic.nm.fujitsu.co.jp>
* Add Isochronus transfer mode support required byroger2000-12-071-13/+180
| | | | | | | | | | | | | | | | USB WebCams, using a patch from Peter Housel. With this change ugen, and with Peter's 'vid' program in ports/graphics/vid, we can capture single images from USB Cameras using the OmniVision OV511 chipset (including some models of the Creative WebCam 3) NetBSD merged in Peter's patch to their ugen.c file several months ago, so this brings us back in line. Submitted by: Peter Housel <housel@acm.org> http://members.home.com/housel/ Approved by: Nick Hibma
* Non functional change.roger2000-12-071-70/+21
| | | | | | | | | Change a few indentations to tabs. Change the functions to use ANSI sytle parameters. This lowers the diffs between our copy of ugen.c and NetBSD's copy Approved by: Nick Hibma
* Add support for compiling ray driver.imp2000-12-071-0/+9
|
* Fix broken register restraints that needlessly clobbered registers %ecxjhb2000-12-072-26/+26
| | | | and %edx resulting in gcc not having enough registers left to work with.
* Convert from spl -> mutex.archie2000-12-072-39/+35
|
* Partially re-write T2 chipset support based on Tru64 platform supportgallatin2000-12-075-99/+454
| | | | | | | | | | | | | | | | | | | files which Compaq open-sourced (with a BSD license). This commit adds support for proper PCI interrupt mapping and much better support for swizzling between "standard" isa IRQs and the stdio irqs used by the t2. This also adds enabling/disabling/eoi support for AlphaServer 2100A machines. The 2100A (or lynx) interrupt hardware is is very different (and much nicer) than the 2100. Previously, only AS2100 and AS2000 machines worked. This commits also lays the groundwork for supporting ExtIO modules. These modules are essentially a second hose. This work is left unfinished pending testing on real hardware. Wilko tells me that ExtIO modules are quite rare, and may not actually exist in the wild. Obtained from: Tru64 Tested by: wilko
* Really fix phys_pager:alfred2000-12-061-31/+36
| | | | | | | | | | | | | | | | | | Backout the previous delta (rev 1.4), it didn't make any difference. If the requested handle is NULL then don't add it to the list of objects, to be found by handle. The problem is that when asking for a NULL handle you are implying you want a new object. Because objects with NULL handles were being added to the list, any further requests for phys backed objects with NULL handles would return a reference to the initial NULL handle object after finding it on the list. Basically one couldn't have more than one phys backed object without a handle in the entire system without this fix. If you did more than one shared memory allocation using the phys pager it would give you your initial allocation again.
* Add necessary bwillwrite() in writev() entry point.dillon2000-12-062-3/+4
| | | | | | Deal with excessive dirty buffers when msync() syncs non-contiguous dirty buffers by checking for the case in UFS *before* checking for clusterability.
* Untangle vfsinit() a bit. Use seperate sysinit functions rather thanpeter2000-12-066-32/+29
| | | | having a super-function calling bits all over the place.
* Simplify this a bit so that it doesn't have to generate silly redundantpeter2000-12-062-28/+6
| | | | | | __P() prototypes when an ansi-style static inline is a prototype already. Since vnode_if.[ch] are generated on the fly, there are no CVS diffs to mess up.
* This is kind of a nasty hack, but it appears to solve the Compaq DL360peter2000-12-067-14/+91
| | | | | | | | SMP problem. Compaq, in their infinite wisdom, forgot to put the IO apic intpin #0 connection to the 8259 PIC into the mptable. This hack is to look and see if intpin #0 has *no* table entry and adds a fake ExtInt entry for the remap routines to use. isa/clock.c will still test the interrupts. This entry is only ever used on an already broken system.
* Pass RFSTOPPED to fork1() in kthread_create() to avoid a race conditionjhb2000-12-061-1/+9
| | | | | | | | | | where fork1() could put the process on the run queue where it could be snatched up by another CPU before kthread_create() had set the proper fork handler. Instead, we put the new kthread on the runqueue after its fork handler has been sent. Noticed by: jake Looked over by: peter
* - Add in PROC_LOCK() and PROC_UNLOCK() macros. For now these do simplejhb2000-12-061-2/+14
| | | | | | mutex operations. In the future they may call functions that verify correct locking order between processes in the INVARIANTS case. - Lock the process in PHOLD() and PREL().
* Protect accesses to member of struct proc with the proc lock.jhb2000-12-066-4/+24
|
* Move io_apic_{read,write} from apic_ipl.s (where they do not belong) intopeter2000-12-065-41/+32
| | | | | | mpapic.c. This gives us the benefit of C type checking. These functions are not called in any critical paths and are not used by the interrupt routines.
* Restore a sense of cleanly supporting multiple platforms. That is,mjacob2000-12-062-36/+95
| | | | | | | | place the LOCKing macros within the areas within if_wxvar.h that is set aside for them. Put any platform specific data also in those areas. For ease of maintenance purposes, merge in the OpenBSD version codebase here.
* Move $FreeBSD id up to top of file for multi-OS ease of support reasons.mjacob2000-12-061-1/+1
|
* GC unused assembler function apic_eoi()peter2000-12-064-10/+0
|
* Add in #include of <sys/lock.h> since it was axed from <sys/proc.h>.jhb2000-12-061-0/+1
| | | | | Noticed by: Wesley Morgan <morganw@chemikals.org> Pointy hat to: me
* Add forgotten SYSCALL_MODULE_HELPER() for msgsys() syscall.alfred2000-12-051-0/+1
| | | | Discovered by: Valentin Chopov <valentin@valcho.net>
* need to adjust allocation size to properly deal with non PAGE_SIZEalfred2000-12-051-1/+1
| | | | | allocations, specifically with allocations < PAGE_SIZE when the code doesn't work properly
* 1. Several style cleanups:jhb2000-12-051-159/+102
| | | | | | | | | | | | | - Whitespace fixes. - Comment fixes (mostly capitalization and trailing periods). - Reorderings to put variables all in the same place, function prototypes sorted alphabetically, etc. 2. Removed unused and #ifdef'd out members from struct ithd. 3. Changed ESTCPULIM() to use an explicit (PRIO_MAX - PRIO_MIN) rather than PRIO_TOTAL. 4. Remove <sys/lock.h> #include and resort #include's. Submitted by: bde (1, 3, 4)
* Move the wakeup/signaling of the reader side of the tun device intojlemon2000-12-051-9/+18
| | | | | | a tunstart function, which is called when a packet is sucessfully placed on the queue. This allows us to properly do output byte accounting within the handoff routine.
* Merged from sys/i386/isa/clock.c revision 1.164.kato2000-12-053-0/+15
|
* Merged from sys/i386/i386/machdep.c revision 1.424.kato2000-12-052-28/+0
|
* Merged from files.i386 revision 1.339.kato2000-12-051-0/+1
|
* Merged from files.i386 revisions 1.337 and 1.338.kato2000-12-051-1/+1
|
* Add support for COMPAT_LINUX and DEBUG_LINUX. Make the OSF1marcel2000-12-052-2/+37
| | | | | files dependent on 'compat_linux' as well as the Linuxulator depends on the osfulator.
* Minor cleanups:marcel2000-12-051-8/+3
| | | | | | o remove unused prototypes, o remove unused extern declarations, o move prototypes up.
* Make osendsig global. It's used by the Linuxulator.marcel2000-12-051-1/+3
|
* Update Makefile to follow acpica-1115 import.takawata2000-12-052-2/+2
|
* Only call ISP_UNLOCK/ISP_LOCK if isp->isp_osinfo.intsok in USEC_SLEEP.mjacob2000-12-051-6/+10
| | | | | | Add a test against isp->isp_osinfo.islocked prior to trying to see whether --isp->isp_osinfo.islocked is zero to cause us to unlock (non-SMPLOCK case).
* Replace some more printfs with isp_prt's. Use isp_prt/ISP_LOGDEBUG0mjacob2000-12-051-31/+31
| | | | for rate setting/getting printouts.
* Remove more printfs and use either isp_prt or device_printf. Remembermjacob2000-12-052-68/+74
| | | | to set ISP_LOGINFO if bootverbose is set.
* Remove call to bzero after MALLOC and instead add M_ZEROmarcel2000-12-051-2/+1
| | | | to MALLOC.
* Start to make code more generic so it can be used by the pccbb driverimp2000-12-052-22/+19
| | | | | | | | | | in the future: o Remove pcic_softc from pcic_handle and replace it with a void * o Reduce dependence on accessing softc via a pcic_handle Minor cleanups: o Define a macro to count the size of an array and use it. o Minor whitespace alignment o make no slots found a printf not a panic.
* Remove the last of the MD netisr code. It is now all MI. Removejake2000-12-0513-142/+32
| | | | | | | | spending, which was unused now that all software interrupts have their own thread. Make the legacy schednetisr use an atomic op for setting bits in the netisr mask. Reviewed by: jhb
* ACPI HID's aren't limited to 7 characters. Don't check the length of themsmith2000-12-051-2/+2
| | | | | | | HID passed in as an argument at all; callers are typically going to be sending us static strings anyway. Submitted by: Munehiro Matsuda <haro@tk.kubota.co.jp>
* Initialize/grab the mutex earlier in the attach phase, so thatwpaul2000-12-0417-43/+50
| | | | | bailing out to the fail: label where we release/destroy the mutex will work without exploding.
* Cleanup some leftover lint from the old interrupt system.peter2000-12-0430-728/+176
| | | | | | | | Also, while here, run up to 32 interrupt sources on APIC systems. Normalize INTREN/INTRDIS so they are the same on both UP and SMP systems rather than sometimes a macro, and sometimes a function. Reviewed by: jhb, jakeb
* Turn off the load_eject bit in cdstartunit(). It causes an `Invalidjoerg2000-12-041-1/+1
| | | | | | | | | | | | field in CDB' error when attempting to start a caddy-type CD drive, since those drives apparently in general refuse to load a medium. Since we never advertised the feature to load the medium upon calling cdstartunit() (i. e. upon receipt of a CDIOCSTART ioctl command), nobody should have relied on it. Besides, nobody noticed so far at all that this command is failing for caddy-type drives... Only few applications seem to use it at all (among them is workman, which made me notice it). Reviewed by: ken
* Fix for vanilla PC164 systems to use a slightly different PALcode magicmjacob2000-12-042-2/+39
| | | | | | | | tweak to enable/disable interrupt sources. Seems to work. It is unclear how many of the PC164 models actually might needs this, and whether or not there are other hidden issues. Obtained from:Bernd Walter <ticso@cicely8.cicely.de>
* (1) Allow a stray lock prefix to be compiled out with thejake2000-12-042-32/+48
| | | | | | | | | | | | | MPLOCKED macro (2) Use decimal 12 rather than hex 0xc in an addl (3) Implement MTX_ENTER for the I386_CPU case (4) Use semi-colons between instructions to allow MTX_ENTER and MTX_ENTER_WITH_RECURSION to be assembled (5) Use incl instead of incw to increment the recusion count (6) 10 is not a valid label, use 7, 8 and 9 rather than 8, 9 and 10 (7) Sort numeric labels Submitted by: bde (2, 4, and 5)
* Whitespace. Fix indentation, align comments.jake2000-12-041-17/+17
|
* Whitespace. Fix an overly long line.jake2000-12-041-2/+2
|
* Remove if defined(tahoe) cobwebs.jake2000-12-041-4/+0
|
OpenPOWER on IntegriCloud