summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* I have no idea at all why this file was not included in the last commit.julian2000-12-121-1/+2
|
* Point #includes at compat/linprocfs instead of i386/linux/linprocfs.des2000-12-125-5/+5
|
* Remove after repo-copy to sys/compat/linprocfs.des2000-12-125-2290/+0
|
* The linprocfs sources have moved to sys/compat/linprocfs.des2000-12-121-1/+11
|
* only include sys/proc.h oncemjacob2000-12-121-1/+0
|
* Include sys/proc.h so this compiles [on the Alpha].obrien2000-12-121-0/+1
|
* We reference curproc, ergo need <sys/proc.h>mjacob2000-12-121-0/+1
|
* Add a missing include of <sys/proc.h>.jhb2000-12-122-0/+2
|
* Grrrrr. That last commit was supposed to be to the head, not to -stablewpaul2000-12-1212-3/+27
| | | | | | (even though I want the fixes in -stable anyway). I'm sure I'm going to get flamed now for committing to -stable and -current too quickly. *sigh*
* oops that commit included a local hack... take it out..julian2000-12-121-1/+1
|
* Reviewed by: Archie@freebsd.orgjulian2000-12-1236-238/+493
| | | | | | | | | | | | | This clears out my outstanding netgraph changes. There is a netgraph change of design in the offing and this is to some extent a superset of soem of the new functionality and some of the old functionality that may be removed. This code works as before, but allows some new features that I want to work with and evaluate. It is the basis for a version of netgraph with integral locking for SMP use. This is running on my test machine with no new problems :-)
* Add a magic number, for easier identification of boot0. At present,rnordier2000-12-121-1/+5
| | | | this is used only by libdisk.
* Add in symbols needed in the WITNESS_ENTER and WITNESS_EXIT macros injhb2000-12-122-0/+10
| | | | i386/include/mutex.h.
* Temporarily disconnect linprocfs from the build, until I fix it so it buildsdes2000-12-121-1/+1
| | | | with Kirk's big proc patch.
* Catch up with the recent conversion the per-eventhandler list mutex toiwasaki2000-12-122-0/+2
| | | | a lockmgr lock.
* - We have access to our own device_t here, so use pci_read_configmsmith2000-12-122-30/+77
| | | | | | | | | | | | | | rather than finding our parent pcib and using its PCI_READ_CONFIG method. - Fix the defines for the 32-bit I/O decode registers, and properly process the 16-bit versions. Now we will correctly check that I/O resources behind the bridge are going to be decoded. - Bring the quirk for the Orion PCI:PCI bridge in here (since it seems to want to set the secondary/supplementary bus numbers). - Use PCI_SLOTMAX rather than a magic number.
* Don't try to fix up the Orion here; the interface we use is wrong for themsmith2000-12-121-16/+0
| | | | new code (and about to disappear too).
* make sure we tear down the devnodes for the endpoints 1 and aboven_hibma2000-12-121-46/+74
| | | | when switching configuration.
* Always build the ISA and EISA bridge code. This is slightly unintiuitive,msmith2000-12-121-2/+2
| | | | | | but serves to work around some uncleanliness whereby the ISA bus is not found on Alpha systems with PCI:EISA bridges due to the lack of EISA code for the Alpha.
* Change the proc information returned from the kernel so that itmckusick2000-12-124-85/+192
| | | | | | | | | | | | no longer contains kernel specific data structures, but rather only scalar values and structures that are already part of the kernel/user interface, specifically rusage and rtprio. It no longer contains proc, session, pcred, ucred, procsig, vmspace, pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If any of these changed in size, ps, w, fstat, gcore, systat, and top would all stop working. The new structure has over 200 bytes of unassigned space for future values to be added, yet is nearly 100 bytes smaller per entry than the structure that it replaced.
* - Convert the per-eventhandler list mutex to a lockmgr lock so that it canjhb2000-12-123-21/+29
| | | | | | | | | | | | be safely held across an eventhandler function call. - Fix an instance of the head of an eventhandler list being read without the lock being held. - Break down and use a SYSINIT at the new SI_SUB_EVENTHANDLER to initialize the eventhandler global mutex and the eventhandler list of lists rather than using a non-MP safe initialization during the first call to eventhandler_register(). - Add in a KASSERT() to eventhandler_register() to ensure that we don't try to register an eventhandler before things have been initialized.
* Fix the assembly mutex macros to call the appropriate witness functions ifjhb2000-12-122-6/+76
| | | | | | the witness code is compiled in. Without this, the witness code doesn't notice that sched_lock is released by fork_trampoline() and thus gets all confused about spin lock order later on.
* Since _mtx_enter() and friends are static inline functions now instead ofjhb2000-12-121-13/+0
| | | | | | macros, the mutex KTR log entries don't actually have the useful filename and line numbers in the KTR_EXTEND case, so remove a comment claiming this and go back to one set of KTR strings.
* - Don't return early from the PCI:EISA bridge attachment, or we will losemsmith2000-12-122-42/+41
| | | | | | | | | the ISA bus. - Don't expect that a PCI:ISA bridge will have a correct class value; if we're checking PCI IDs, only depend on these. This should fix the loss of ISA on machines with PCI:EISA bridges like the AS4100.
* enable the proper cascade irq on as1000agallatin2000-12-121-1/+1
| | | | tested by: wilko
* fix AS1000/AS1000A support. It turns out the that iobus depends on thegallatin2000-12-121-2/+10
| | | | | | | | CPU version (apecs:ev4::cia:ev5) and the irq hardware depends on the systype previously, only ev4 AS1000s and ev5 AS1000a's would have worked. tested by: wilko (in its -stable form) noticed by: daniel
* fix various compiler warnings generated by previous commitgallatin2000-12-121-5/+5
|
* - Add code to detect if a system call returns with locks other than Giantjake2000-12-1210-4/+78
| | | | | | | | | held and panic if so (conditional on witness). - Change witness_list to return the number of locks held so this is easier. - Add kern/syscalls.c to the kernel build if witness is defined so that the panic message can contain the name of the offending system call. - Add assertions that Giant and sched_lock are not held when returning from a system call, which were missing for alpha and ia64.
* - Don't bother taking a trace message if we have panic'd since doing sojhb2000-12-121-1/+3
| | | | | | | | | | | can lead to further panics. - Call getnanotime() instead of nanotime() for the timestamp. nanotime() is more precise, but it also calls into the timer code, which results in mutex operations on the i386 arch. If KTR_LOCK is turned on, then ktr_tracepoint() recurses on itself until it exhausts the kernel stack. Eventually this should change to use get_cyclecount() instead, but that can't happen if get_cyclecount() is calling nanotime() instead of getnanotime().
* Oops, the witness mutex is a spin lock, so use MTX_SPIN in the call tojhb2000-12-123-3/+3
| | | | | mtx_init(). Since the witness code ignores its internal mutex, this doesn't result in any functional change.
* add comment about ispfwmjacob2000-12-112-0/+2
|
* Add the spic driver, which is a simple first attempt at providing accessnsayer2000-12-115-0/+551
| | | | to the jog dial device.
* Stake a claim on major 160 for the forthcoming spic driver.nsayer2000-12-111-0/+1
|
* fix problem with vmware DAD. reported by many, tested @ IETF49 withume2000-12-111-5/+15
| | | | | | help from Florent Parent <Florent.Parent@viagenie.qc.ca>. Obtained from: KAME
* Change sppp from optional to count. At least ar(4) and sr(4) needs it injhay2000-12-111-1/+1
| | | | the non-NETGRAPH case.
* add PNPID for PnP PCMCIA, SCM SwapBox Classic X2P.sanpei2000-12-112-0/+2
| | | | PR: kern/23344 (Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>)
* Remove DDB, it leaked in here with another commit.phk2000-12-112-4/+0
| | | | Submitted by: bde
* It looks like we can't count on these devices always having a consistentmsmith2000-12-111-44/+43
| | | | | | class/subclass, so give up trying to cull the list. Instead, complain in the bootverbose case, but otherwise just accept that we will have to carry this list of device IDs around.
* Be less conservative with a recently added KASSERT. Certain edgedillon2000-12-111-1/+4
| | | | | | | | | | cases with file fragments and read-write mmap's can lead to a situation where a VM page has odd dirty bits, e.g. 0xFC - due to being dirtied by an mmap and only the fragment (representing a non-page-aligned end of file) synced via a filesystem buffer. A correct solution that guarentees consistent m->dirty for the file EOF case is being worked on. In the mean time we can't be so conservative in the KASSERT.
* Fix a bug where if the interface was in promiscuous mode when thearchie2000-12-111-0/+2
| | | | | | | last hook was disconnected, the interface would not get reset to non-promiscuous mode. Reported by: jdp
* The ICH2 reports itself as a PCI:ISA bridge, so don't special-case itmsmith2000-12-101-1/+0
| | | | | | here. Submitted by: Michael Harnois <mdharnois@home.com>
* Added 'MACHINE=pc98' to MKMODULESENV variable. It is needed to make modulesnyan2000-12-101-0/+1
| | | | for PC-98 on IBM-PC box.
* Added '-DPC98' to CFLAGS if MACHINE == pc98.nyan2000-12-101-0/+4
|
* Removed the VoxWare sound drivers.nyan2000-12-102-40/+4
|
* o Remove mcclockmarcel2000-12-101-7/+4
| | | | o s/alpha/ia64/g
* Sync-up so that buils actually work again.marcel2000-12-101-15/+9
|
* Put the bits in place for Alpha support for ext2. Not tested.mjacob2000-12-095-0/+263
|
* Correct to a common %ld the 5 argument to a printf.mjacob2000-12-092-4/+4
|
* Use a pointer to a size_t for the 4th argument to copyinstr-mjacob2000-12-092-2/+2
| | | | not a pointer to a u_int.
* Store in globaldata our CPU ID#. Provide a lock for panics - only onemjacob2000-12-096-0/+11
| | | | | CPU can panic at a time. Obtained from:Andrew Gallatin <gallatin@cs.duke.edu>
OpenPOWER on IntegriCloud