summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Follow NetBSD and ANSIfy the function definitions.joe2002-02-033-343/+232
| | | | Remove trailing whitespaces (submitted to NetBSD).
* WARNS=n and lint(1) silencer. Declare an array of (const) stringsmarkm2002-02-031-1/+1
| | | | as const char.
* Zero functional difference; make some integer constants unsigned, asmarkm2002-02-032-4/+4
| | | | | they are used in unsigned context. This shuts lint(1) up in a few significant ways with "signed/unsigned" arithmetic warnings.
* Make the style a little bit more consistant by removing parametermarkm2002-02-032-6/+4
| | | | | names from some prototypes. (Other prototypes here already have these removed).
* Use osigreturn(2) instead of sigreturn(2) plus broken magic for returningbde2002-02-037-42/+18
| | | | | | | | | | | | | | | | | | from old signal handlers. This is simpler and faster, and fixes (new) sigreturn(2) when %eip in the new signal context happens to match the magic value (0x1d516). 0x1d516 is below the default ELF text section, so this probably never broken anything in practice. locore.s: In addition, don't build the signal trampoline for old signal handlers when it is not used. alpha: Not fixed, but seems to be even less broken in practice due to more advanced magic. A false match occurs for register #32 in mc_regs[]. Since there is no hardware register #32, a false match is only possible for direct calls to sigreturn(2) that happen to have the magic number in the spare mc_regs[32] field.
* 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.
OpenPOWER on IntegriCloud