Commit Graph

24012 Commits

Author SHA1 Message Date
eivind
80ebcd3b3f Fix my e-mail address. Old work addres is no good. 1997-08-31 16:38:33 +00:00
ache
5457a037a5 Restore back issetugid() usage and bump major number 1997-08-31 08:37:28 +00:00
phk
0b3a12b83e Change the 0xdeadb hack to a flag called VDOOMED.
Introduce VFREE which indicates that vnode is on freelist.
Rename vholdrele() to vdrop().
Create vfree() and vbusy() to add/delete vnode from freelist.
Add vfree()/vbusy() to keep (v_holdcnt != 0 || v_usecount != 0)
  vnodes off the freelist.
Generalize vhold()/v_holdcnt to mean "do not recycle".
Fix reassignbuf()s lack of use of vhold().
Use vhold() instead of checking v_cache_src list.
Remove vtouch(), the vnodes are always vget'ed soon enough
  after for it to have any measuable effect.
Add sysctl debug.freevnodes to keep track of things.
Move cache_purge() up in getnewvnodes to avoid race.
Decrement v_usecount after VOP_INACTIVE(), put a vhold() on
  it during VOP_INACTIVE()
Unmacroize vhold()/vdrop()
Print out VDOOMED and VFREE flags (XXX: should use %b)

Reviewed by:		dyson
1997-08-31 07:32:39 +00:00
phk
2fd4aa4ddf Remove pbzero(), things we load zero their own bss.
Make VESA_SUPPORT default
1997-08-31 06:11:26 +00:00
phk
6152eccaa4 Another 32bits of 64bits conformance.
Reviewed by:	phk
Submitted by:	jdp
1997-08-31 05:59:39 +00:00
fsmp
53cd3a6e28 Debug version of simple_lock. This will store the CPU id of the
holding CPU along with the lock.  When a CPU fails to get the lock
it compares its own id to the holder id.  If they are the same it
panic()s, as simple locks are binary, and this would cause a deadlock.

Controlled by smptests.h: SL_DEBUG, ON by default.

Some minor cleanup.
1997-08-31 03:17:48 +00:00
fsmp
92287f9b58 Created a private simple_lock to control accesses to com data structs
and hardware.
There is now another simple_lock around clock data/hardware accesses in
clock.c and microtime.s.  It is my belief that this is the only area
sio/cy might stumble into during an unblocked INTerrupt.  Thus I separated
the sio/cy code from the generic disable_intr()/enable_intr() routines.

Controlled by smptests.h: USE_COMLOCK, ON by default.
1997-08-31 03:17:18 +00:00
alex
a84f234706 Display file size as an unsigned long. 1997-08-31 01:27:04 +00:00
peter
39f822f3ed Initial elf nlist support, mostly stolen from OpenBSD (they use standard
#defines that are compatable with ours).  I made some some minor tweaks
to the leading '_' tests.

Again, this is off by default for the moment.  This probably should be
split into seperate files (like some of our other libc files that could
do with some splitting).

Obtained from: OpenBSD (plus some minor tweaks)
1997-08-31 00:08:35 +00:00
peter
487373ebf8 Initial support for dealing with an elf /kernel. This is a loose hybrid
of OpenBSD's elf nlist code for this, and our a.out version.  The OpenBSD
version was mainly a seek/read system with a mmap of the string table,
this one simply mmap's the lot (like the a.out version).

Obtained from:  a fair chunk from OpenBSD
1997-08-30 23:35:00 +00:00
peter
f8d0d61b62 A first cut at some rules for building elf shared libs. Of particular
note, using "-Wl,-f" to generate a library objects list doesn't work
anymore since the hack to ld hasn't been incorporated into binutils-2.8.
(and the -f switch is used for something else already)

This is disabled by default, don't panic! :-)
1997-08-30 23:23:18 +00:00
peter
699c94cfae Update to include some of the newer vnode flags and remove some stale ones. 1997-08-30 20:18:49 +00:00
fsmp
58f19e591b Added clock_lock protection to microtime. 1997-08-30 19:02:56 +00:00
peter
b724085a66 Define some machine characteristics using symbol naming on conventions
in place in the other BSD's.
1997-08-30 18:59:48 +00:00
peter
82c7a53f3f Collect a few missing symbols from the OpenBSD elf includes. (The OpenBSD
includes use the formal elf names like us, NetBSD have different symbols)

Obtained from: OpenBSD
1997-08-30 18:58:31 +00:00
peter
29e2c84e7a Allow non-page aligned file offset mmap's, providing that the system is
allowed to choose the address, or that the MAP_FIXED address has the same
remainder when modulo PAGE_SIZE as the file offset.  Apparently this is
posix1003.1b specified behavior.  SVR4 and the other *BSD's allow it too.
It costs us nothing to support and means we don't get EINVAL on some mmap
code that works perfectly elsewhere.

Obtained from: NetBSD
1997-08-30 18:50:06 +00:00
kato
0d58a5f146 Synchronize with sys/i386/isa/clock.c and sio.c revisions 1.101 and
i.178, respectively.
1997-08-30 15:47:49 +00:00
jmg
416e9a71f9 fix a few spelling changes
Submitted by: Josh Gilliam

Closes PR's: 4429, 4431-4438

PS: He has agreed to submit all contrib fixes back to the original author.
1997-08-30 12:22:49 +00:00
peter
d8a9aa8f8b remove global prototype for setsigvec(). It's static inside kern_sig.c
and causes redundant declaration warnings.
1997-08-30 11:24:05 +00:00
peter
fd47342b00 Update to include recently added names that are shared between the C and
asm parts of the kernel.  This is to re-enable ELF compile support.
1997-08-30 11:20:02 +00:00
jmg
7803d274e0 fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4430
1997-08-30 11:12:39 +00:00
jmg
4b06aeefe8 fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4428
1997-08-30 11:10:56 +00:00
jmg
a4a9abf758 fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4427
1997-08-30 11:09:26 +00:00
jmg
836bacca7c fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4426
1997-08-30 11:08:06 +00:00
jmg
9a7e68ee3a fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4425
1997-08-30 11:06:35 +00:00
jmg
282e436f4f fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4424
1997-08-30 11:05:34 +00:00
jmg
a5a475a202 fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4423
1997-08-30 11:04:03 +00:00
jmg
dbf5b6157a fix misspelling
Submitted-by: Josh Gilliam

Closes PR: 4422
1997-08-30 11:01:54 +00:00
helbig
0ee9759a13 The CMD640 workaround is now enabled by default. 1997-08-30 10:42:21 +00:00
phk
f314af8d77 emove /usr/local/libdata/tcl 1997-08-30 09:26:53 +00:00
fsmp
e2310cdbcf Another round of lock pushdown.
Add a simplelock to deal with disable_intr()/enable_intr() as used in UP kernel.
UP kernel expects that this is enough to guarantee exclusive access to
regions of code bracketed by these 2 functions.
Add a simplelock to bracket clock accesses in clock.c: clock_lock.

Help from:	Bruce Evans <bde@zeta.org.au>
1997-08-30 08:08:10 +00:00
fsmp
62dbf14e9a Moved the SIMPLE_LOCK stuff from machine/param.h to machine/lock.h.
include it here for now.

Reviewed by:	Bruce Evans <bde@zeta.org.au>
1997-08-30 07:59:47 +00:00
itojun
8ab1ccfa8c Scsi RESERVATION CONFLICT and BUSY support for Tekram scsi cards.
Checked with DC390.  Pls mail me if you have any trouble with this patch.
1997-08-30 05:49:20 +00:00
kato
cca63e4f09 Move MACHINE_ARCH definition from <machine/param.h> to <machine/cpu.h>.
Submitted by:	Bruce Evans <bde@zeta.org.au>
1997-08-30 02:52:04 +00:00
kato
09489fa1b7 Added hw.machine_arch. 1997-08-30 02:28:00 +00:00
kato
22c8a8129b Added HW_MACHINE_ARCH. 1997-08-30 02:26:36 +00:00
jkh
b7180e5a24 Update for impending 3.0-SNAP CDROM. 1997-08-29 23:28:44 +00:00
imp
56b404f656 Add -execdir which will execute the exec command in the dir of the file
in question.  This change and the fts changes should be merged into 2.2-stable
as soon as they are vetted in -current.  This should allow cleaning of files
in /tmp to be reneabled.
Obtained from: OpenBSD
1997-08-29 23:09:45 +00:00
imp
02b5c984e2 Merge in the safe chdir changes from Todd Miller's mods to the OpenBSD
tree.  Also merge in fix to NetBSD PR #1495.  These represent 1.3-1.9 in
the OpenBSD tree.  Make minor KNF changes to new code (which is in the
OpenBSD as 1.10).  This avoids the symlink race problems.

These patches should go into 2.2.5 before the ship if they don't
break anything in -current.
Reviewed by:	Bruce Evans
Obtained from:	OpenBSD
1997-08-29 22:56:41 +00:00
guido
175058b2d1 Plug info agthering attack as pointed out on Bugtraq recently.
Obtained from: OpenBSD
1997-08-29 19:22:28 +00:00
fsmp
13fe237edc Support for the new FAST_HI algorithm, enabled.
Preliminary support for the INTR_SIMPLELOCK algorithm, disabled.
Note that this code is NOT ready.
1997-08-29 18:45:23 +00:00
fsmp
cf2671c51e Support for the new FAST_HI algorithm.
Improved interrupt handling, fewer silo overflows.

With help from:	dave adkins <adkin003@gold.tc.umn.edu>
1997-08-29 18:16:18 +00:00
imp
b52523a54a Remove and odd sleep found by David Holland and posted to -security.
Reviewed by:	Theo de Raadt (who put it into OpenBSD)
Submitted by:	David Holland <dholland@eecs.harvard.edu>
1997-08-29 18:00:11 +00:00
fsmp
34c1430d68 Introduce FAST_HI option, ON by default.
This options allows a CPU that is blocked spinning for the giant lock
to process FAST_INTR() ISRs, eg. siointr().
1997-08-29 17:58:30 +00:00
sos
c063323c3e Dont use an internal function called warn it clashes with libc.
Allows ELF compile.
1997-08-29 16:14:20 +00:00
sos
99b7368a45 Dont have an internal function named "warn" it clashes with libc..
Needed for ELF.
1997-08-29 16:12:30 +00:00
kato
9dc7e3f1c1 Synchronize with sys/i386/i386/userconfig.c revision 1.90. 1997-08-29 14:53:18 +00:00
kato
9e55a6cbb3 Use correct member of scsi_cint for scbus. Add a space between lun
and flags.

Reviewed by:	kato
Submitted by:	Chiharu Shibata <chi@rd.njk.co.jp>
1997-08-29 14:47:31 +00:00
peter
4ba5a2f4cf Insert first cut of hooks for compiling under ELF. 1997-08-29 14:02:14 +00:00
peter
e6477d723f Insert hooks for building under elf. 1997-08-29 13:58:08 +00:00