summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Improve the change in the previous commit: use a stub for osigreturn()bde2002-02-035-0/+20
| | | | when it is not really used instead of unconditionalizing all of it.
* Regenerate.joe2002-02-022-503/+615
|
* Update comments and product identifiers so that they're the samejoe2002-02-021-12/+12
| | | | as NetBSD's definitions.
* Add some missing usb vendors (from NetBSD).joe2002-02-021-0/+16
|
* Sync with NetBSD's version, dropping all the 'ltd', 'corp', etc.joe2002-02-021-140/+140
| | | | | | It's more important to keep this file easily syncable across the BSDs, and NetBSD have stated a preference for not adding them to theirs.
* o Add the prototype of cr_cansignal() from an earlier change torwatson2002-02-021-0/+1
| | | | | | | | | kern_prot.c. This has apparently been sitting in my local tree for ages, and has been generating a warning during the building of kern_prot.o. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Merged cy_pcireg.h into the one file that uses it (cy_pci.c).bde2002-02-023-47/+32
|
* Fixed breakage of interrupt setup in previous commit. It used anbde2002-02-022-0/+4
| | | | uninitialized variable in the !CY_PCI_FASTINTR case (*blush*).
* In the routines vrele() and vput(), we must lock the vnode andmckusick2002-02-021-15/+15
| | | | | | | | | | | call VOP_INACTIVE before placing the vnode back on the free list. Otherwise there is a race condition on SMP machines between getnewvnode() locking the vnode to reclaim it and vrele() locking the vnode to inactivate it. This window of vulnerability becomes exaggerated in the presence of filesystems that have been suspended as the inactive routine may need to temporarily release the lock on the vnode to avoid deadlock with the syncer process.
* When taking a snapshot, we must check for active files that havemckusick2002-02-026-272/+336
| | | | | | been unlinked (e.g., with a zero link count). We have to expunge all trace of these files from the snapshot so that they are neither reclaimed prematurely by fsck nor saved unnecessarily by dump.
* Remove bogus assertion in dup2 that can lead to panics when kernelalfred2002-02-011-2/+0
| | | | | | | | | | | | | | | | | threads race for a file slot. dup2(2) incorrectly assumes that if it needs to grow the ofiles array that it will get what it wants. This assertion was valid before we allowed shared filedescriptor tables but is now incorrect. The assertion can trigger superfolous panics if the thread doing a dup2 looses a race with another thread while possibly blocked in the MALLOC call in fdalloc. Another thread may grab the slot we are requesting which makes fdalloc return something other than what we asked for, this will triggering the bogus assertion. MFC after: 2 weeks Reviewed by: phk
* Avoid lock order reversal filedesc/Giant when calling FREE() in fdallocalfred2002-02-011-0/+2
| | | | | | by unlocking the filedesc before calling FREE(). Submitted by: bde
* Don't recurse on filedesc lock in chroot_refuse_vdir_fds().alfred2002-02-012-16/+18
| | | | Noticed by: Michael Nottebrock <michaelnottebrock@gmx.net>
* Regenerate to make osigreturn standard.bde2002-02-015-12/+13
|
* Made osigreturn(2) standard so that SYS_osigreturn can be used in thebde2002-02-011-1/+1
| | | | | | | | | | | | signal trampoline for old signals. The arches that support old signals currently abuse sigreturn(2) instead. This mainly complicates things and slightly breaks the the new sigreturn(2). COMPAT is too limited to support the correct configuration of osigreturn, and this commit doesn't attempt to fix it; it just moves the bogusness: osigreturn() must now be provided unconditionally even on arches that don't really need it; previously it had to be provided under the bogus condition defined(COMPAT_43).
* Compile osigreturn() unconditionally since it will always be needed onbde2002-02-019-33/+30
| | | | | | | | | | | | | | | | | | some arches and the syscall table is machine-independent. It was (bogusly) conditional on COMPAT_43, so this usually makes no difference. ia64: in addition: - replace the bogus cloned comment before osigreturn() by a correct one. osigreturn() is just a stub fo ia64's. - fix the formatting of cloned comment before sigreturn(). - fix the return code. use nosys() instead of returning ENOSYS to get the same semantics as if the syscall is not in the syscall table. Generating SIGSYS is actually correct here. - fix style bugs. powerpc: copy the cleaned up ia64 stub. This mainly fixes a bogus comment. sparc64: copy the cleaned up the ia64 stub, since there was no stub before.
* Expand COMBRD(x) macro.nyan2002-02-011-2/+2
|
* Some netgraph parse types (such as for the 'value' field in ng_ksocket'sarchie2002-02-011-8/+15
| | | | | | | | 'struct ng_ksocket_sockopt') like to peek into the ng_mesg header for information. Make sure when generating default values that we provide a valid header to peek into. MFC after: 1 week
* * Remove __P and convert to ANSI prototypes.obrien2002-02-011-1/+3
| | | | | * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's.
* GC P_BUFEXHAUST leftovers, we've had a new mechanism to avoid bufferdillon2002-01-313-5/+1
| | | | | | cache lockups for over a year now. MFC after: 0 days
* identify GLPRISM2 PCI WaveLAN/IEEE 802.11alfred2002-01-311-0/+1
| | | | Submitted by: Toni Andjelkovic <toni@soth.at>
* Finish revs.1.23 and 1.24 so that MCOUNT_ENTER really actually compilesbde2002-01-312-0/+2
| | | | | | | | | for SMP in the plain profiling case. It seems to work too. This error was not detected by LINT because LINT only compiles the GUPROF profiling case, which is is a superset of the plain profiling case for !SMP but which is so broken for SMP that the buggy code is not compiled.
* Add support of PhotoClip USB Camera (http://www.myphotoclip.com):sobomax2002-01-314-0/+27
| | | | | | | | | - Vendor&Device IDs for USB product, - quirk for SCSI CAM. PR: 34481 Submitted by: Olexander Kunytsa <kunia@x-telecom.net> MFC in: 3 days
* Fix irq/drq handling. IRQ and DRQ resource information can be gettakawata2002-01-312-28/+43
| | | | | in one object for one resource. Array of values in a object means possible values for the object.
* MFi386: revision 1.489.nyan2002-01-312-26/+16
|
* Changed iskanji[12] to inline functions.nyan2002-01-312-350/+344
|
* Merged from sys/dev/sio/{sio.c,sio_isa.c} revisions 1.363 and 1.5,nyan2002-01-314-312/+250
| | | | respectively.
* Add pc98 support.nyan2002-01-311-0/+3
|
* Remove obsolete COMBRD* definitions.nyan2002-01-311-6/+0
|
* MFi386: revision 1.180nyan2002-01-313-0/+15
|
* MFi386: revision 1.52nyan2002-01-311-10/+13
|
* Fix error handling.takawata2002-01-311-7/+19
| | | | | PR:30665 Submitted by:TOMITA Yoshinori <yoshint@flab.fujitsu.co.jp>
* Allow this to compile againjulian2002-01-301-0/+1
| | | | not tested under LINT by: msmith
* include sys/lock.h and sys/mutex.h to make compile.alfred2002-01-301-0/+2
| | | | Noticed by: Vincent Poy <vince@oahu.WURLDLINK.NET>
* o Reserve two interface ioctl values, 38, and 38, for SIOCGIFMAC andrwatson2002-01-301-0/+2
| | | | | | | | SIOCSIFMAC, which are for the Mandatory Access Control implementation. This will prevent collisions on the p4 development branch. Obtained from: TrustedBSD Project
* fget_locked fixes.alfred2002-01-301-4/+3
| | | | | | | | sort declaration. give paramters names. remove bogus check for negative fd (u_int) cast does this for us. Pointed out by: bde
* Remove unused variables in select(2) from previous delta.alfred2002-01-301-2/+1
| | | | Pointed out by: bde
* Backed out the main part of revs.1.14-16. Don't disable interrupts inbde2002-01-302-20/+6
| | | | | | | | the packet transfer routines, since rev.1.468 of machdep.c does this better. I'm surprised that disabling interrupts helped much. Disabling them in the packet receive routine is too late. Fixed some minor style bugs in rev.1.14.
* Backed out the last vestiges of rev.1.51. Don't enter a criticalbde2002-01-302-20/+2
| | | | | region in Debugger(), since rev.1.468 of machdep.c does this better. Other cosmetic backouts.
* Cleaned up the 0ldSiG magic check before removing it. Just use fuword()bde2002-01-302-26/+16
| | | | | | | | | | | | | | | to fetch the magic word instead of useracc() plus a direct access. This is more efficient as well as simpler and less incorrect: - it was inefficent because useracc() takes much longer than just accessing the data using a correct access method, at least on i386's. - it was incorrect because direct access is incorrect unless the address has been mapped. This and nearby direct accesses are mostly handled better for other arches because they have to be (direct accesses don't work). - using magic in sigreturn is still fundamentally broken because false matches are possible. On i386's, a false match occurs when %eip in a new signal context happens to equal the magic value. This is not handled better for other arches.
* Add support for different serial clock frequencies and not just thejhay2002-01-306-72/+100
| | | | | | | standard one of 1.8432MHz. This will be used by the puc (PCI "universal" communication card) device driver. Reviewed by: bde
* Regenerate just this file after unbreaking makesyscalls.sh. The previousbde2002-01-301-1/+1
| | | | commit broke the world in libc.
* Oops, fix previous commit to not generate a C comment in syscall.mk.bde2002-01-301-1/+1
|
* Removed the one use of the mandatory keyword (for npx).bde2002-01-302-2/+2
| | | | | | | | | | | | npx is no more mandatory than sc. Its mandatoryness went away in rev.1.226 of i386/machdep.c 9 months before it was made mandatory in rev.1.24 of config/mkmakefile.c. This change is mainly to test building of minimal kernel configurations. npx should really be even more standard than clk. It was optional mainly so that the usual device driver configuration info could be specified in the usual way in config files, but this hasn't been necessary for a few years.
* Don't include <isa/isavar.h> or compile code depending on it when isabde2002-01-3018-3/+84
| | | | | | | | is not configured. Including <isa/isavar.h> when it is not used is harmful as well as bogus, since it includes "isa_if.h" which is not generated when isa is not configured. This was fixed in 1999 but was broken by unconditionalizing PNPBIOS.
* Removed unused includes. In particular, don't include <isa/isavar.h> sincebde2002-01-302-48/+4
| | | | | | its only effect is to break the optionality of the isa option. Sorted includes.
* Regenerate _after_ the commit to syscalls.master.bde2002-01-305-6/+6
|
* Escape $FreeBSD$ in a different way to avoid using the bogus escapes \$bde2002-01-301-5/+5
| | | | and \F. Awk just started warning about these.
* Attempt to fixup select(2) and poll(2), this should fix some races withalfred2002-01-293-125/+22
| | | | | | | | | | | | | | | | | | | other threads as well as speed up the interfaces. To fix the race and accomplish the speedup, remove selholddrop and pollholddrop. The entire concept is somewhat bogus because holding the individual struct file pointers offers us no guarantees that another thread context won't close it on us thereby removing our access to our own reference. Selholddrop and pollholddrop also would do multiple locks and unlocks of mutexes _per-file_ in the fd arrays to be scanned, this needed to be sped up. Instead of using selholddrop and pollholddrop, simply hold the filedesc lock over the selscan and pollscan functions. This should protect us against close(2)'s on the files as reduce the multiple lock/unlock pairs per fd into a single lock over the filedesc.
* Backout 1.120, EINVAL isn't a proper error return when the passed fd isalfred2002-01-291-1/+1
| | | | | | | negative, the 'pointer' referred to by the manpage is actually the struct file's f_offset field. Pointed out by: bde
OpenPOWER on IntegriCloud