Commit Graph

2036 Commits

Author SHA1 Message Date
David Greenman
5ced58e474 Support for Bruce Evans' new dynamic interrupt support.
Submitted by:	Bruce Evans
1994-08-18 05:11:32 +00:00
David Greenman
8912c0ed61 Bruce Evans' dynamic interrupt support.
/usr/src/sys/i386/isa/clock.c:
	o Garrett's statclock changes.
	o Wire xxxintr, not Vclk.
	o Wire using register_intr(), not setidt().

/usr/src/sys/i386/isa/icu.s:
	o Garrett's statclock changes.
	o Removed unused variable high_imask.
	o Fake int 8 for rtc as well as int 0 for clk.  Required for kernel
	  profiling with statclock, harmless otherwise.

/usr/src/sys/i386/isa/isa.c:
	o Allow isdp->id_irq and other things in *isdp to be changed by
	  probes.  Changing interrupts later requires direct calls to
	  register_intr() and unregister_intr() and more care.
	  ALLOW_CONFLICT_* is brought over from 1.1.5, except
	  ALLOW_CONFLICT_IRQ is not supported.  IRQ conflict checking is
	  delayed until after probing so that drivers can change the IRQ
	  to a free one; real conflicts require more cooperation between
	  drivers to handle.
	o Too many details to list.
	o This file requires splitting and a lot more work.

/usr/src/sys/i386/isa/isa_device.h:
	o Declare more things more completely.

/usr/src/sys/i386/isa/sio.c:
	o Prepare to register interrupt handlers as fast.

/usr/src/sys/i386/isa/vector.s:
	o Generate entry code for 16 fast interrupt handlers and 16 normal
	  interrupt handlers.  Changed some constants to variables:
	  # $unit is now intr_unit[intr].  Type is int.  Someday it should
	    be a cookie suitable for the handler (e.g., a struct com_s for
	    sio).
	  # $handler is now intr_handler[intr].
	  # intrcnt_actv[id_num] is now *intr_countp[intr].  The indirection
	    is required to get a contiguous range of counters for vmstat
	    and so that the drivers depend more in the driver than on the
	    interrupt number (drivers could take turns using an interrupt
	    and the counts would remain correct).  There is a separate
	    counter for each device and for each stray interrupt.  In
	    1.1.5, stray interrupt 7 clobbers the count for device 7 or
	    something worse if there is no device 7 :-(.
	  # mask is now intr_mask[intr] (was already indirect).
	 o Entry points are now _XintrI and _XfastintrI (I = intr = 0-15),
	   not _VdevU (U = unit).
	 o Removed BUILD_VECTORS stuff.  There's a trace of it left for
	   the string table for vmstat but config now generates the
	   string in one piece because nothing more is required.
	 o Removed old handling of stray interrupts and older comments
	   about it.

Submitted by:	 Bruce Evans
1994-08-18 05:09:36 +00:00
David Greenman
605f11c8f2 Moved over my fix for vnode lossage when multiple TIOCSCTTY ioctls are
done. This patch was extended to also include a suggested change by
Kirk McKusick which allows the control tty to be reasigned to a different
tty without losing a vnode.
1994-08-18 03:53:38 +00:00
Sean Eric Fagan
3171c2b4bc Bringing in version 1.34.
Reviewed by:	Sean Eric Fagan
1994-08-18 01:15:57 +00:00
Sean Eric Fagan
e03164ffd4 Bringing in nvi 1.34.
Reviewed by:	Sean Eric Fagan
1994-08-18 01:15:30 +00:00
Sean Eric Fagan
b2e899c41f Bringin in nvi 1.34.
Reviewed by:	Sean Eric Fagan
1994-08-18 01:14:32 +00:00
Sean Eric Fagan
a036a0d1f2 Bringing in version 1.34.
Reviewed by:	 Sean Eric Fagan
1994-08-18 01:13:30 +00:00
Sean Eric Fagan
74225af9b5 Bringing in nvi 1.34. Keith is too active.
Reviewed by:	Sean Eric Fagan
1994-08-18 01:12:10 +00:00
Sean Eric Fagan
57665fa8c0 Incorporating nvi 1.34. Keith needs to get away from the keyboard.
Reviewed by:	Sean Eric Fagan
1994-08-18 00:56:19 +00:00
Jordan K. Hubbard
2b52592f54 vi.0 -> vi.1
Submitted by:	jkh
1994-08-17 23:39:15 +00:00
Sean Eric Fagan
6d20d793f5 Bringing up to version 1.33.
Reviewed by:	Sean Eric Fagan
1994-08-17 22:18:26 +00:00
Sean Eric Fagan
57eb4d53f7 Bringing up to version 1.33
Reviewed by:	Sean Eric Fagan
1994-08-17 22:18:03 +00:00
Søren Schmidt
49e3cd80ee Oops, changed order of include lines...
Reviewed by:
Submitted by:
1994-08-17 19:32:23 +00:00
Sean Eric Fagan
d236b04b4b Include ../../Makefile.inc so BINDIR gets set. This should make installs
work *much* better.

Submitted by:	Sean Eric Fagan
1994-08-17 17:04:51 +00:00
Søren Schmidt
1062753e25 Added kbdcontrol & vidcontrol utils (from 1.1.5.1+)
Reviewed by:
Submitted by:
1994-08-17 09:01:52 +00:00
Søren Schmidt
7363955db6 Added vidcontrol util from 1.1.5.1+
Reviewed by:
Submitted by:
1994-08-17 09:00:13 +00:00
Søren Schmidt
08bddad1f6 Added kbdcontrol util from 1.1.5.1+
Reviewed by:
Submitted by:
1994-08-17 08:59:37 +00:00
Søren Schmidt
529f6e548c Updated to latest 1.1.5.1+ version
Reviewed by:
Submitted by:
1994-08-17 08:51:59 +00:00
Søren Schmidt
8c7004b6d4 Updated to latest version from 1.1.5.1+
Reviewed by:
Submitted by:
1994-08-17 08:51:10 +00:00
Sean Eric Fagan
bf5cfe7295 It wasn't put in during the initial import.
Reviewed by:	Sean Eric Fagan
1994-08-17 05:36:45 +00:00
Sean Eric Fagan
03b50ed143 Build vi (nvi), now that it's checked in.
Submitted by:	Sean Eric Fagan
1994-08-16 23:58:00 +00:00
Sean Eric Fagan
4feef85f47 This commit was generated by cvs2svn to compensate for changes in r2081,
which included commits to RCS files with non-trunk default branches.
1994-08-16 23:36:45 +00:00
Sean Eric Fagan
18fd508d01 Latest public release of nvi, from Keith Bostic. I hope I got this
right ;).
Reviewed by:	Sean Eric Fagan
1994-08-16 23:36:45 +00:00
Jordan K. Hubbard
d5ca85cdd4 Reenable the makedb stuff; it works fine.
Submitted by:	jkh
1994-08-16 22:44:28 +00:00
Jordan K. Hubbard
269f64ea2a Whoops, nuke libobjc until we have it too.
Submitted by:	jkh
1994-08-16 02:55:14 +00:00
Garrett Wollman
0254742789 Add option KBD_RESET_FAIL_OK so that GCC 2.6 doesn't break my
console.
1994-08-15 22:41:33 +00:00
Guido van Rooij
e27eb9e8ec Plug already known security hole. (Brought over from 1.1.5):
Fixed security problem with telnetd, which allowed
        telnet -l -hcert.org localhost
to change the user's host in utmp.
Thanks to Matthew Green <mrgreen@@mame.mu.oz.au> for showing me this one.


Reviewed by:	karl, guido
Submitted by:	mrgreen@@mame.mu.oz.au
1994-08-15 20:06:13 +00:00
Guido van Rooij
9496903032 Plug security hole that was already fixed in 1.1. It prevents
user from specifying their hostname when rlogin()-ing in
(using rlogin -f-h<host>)

Reviewed by:
Submitted by:
1994-08-15 19:44:50 +00:00
Garrett Wollman
d966229d00 Don't bother with XNSrouted and trsp, nobody uses either. If anybody
decides they want to, they can change the Makefile.
1994-08-15 03:19:25 +00:00
Garrett Wollman
8ea838500f Enable use of the RTC chip for the statistical clock. While this does
not provide the full accuracy of a randomized statistical clock, it does
provide greater accuracy than the previous method, while not significantly
increasing overhead.  It also provides profiling support at 1024 Hz.

You must re-compile config before making a new kernel, or you will end
up with unresolved symbols.

Reviewed uy:	Bruce evans said it worked for him.
1994-08-15 03:15:20 +00:00
Garrett Wollman
99ca219150 Generate vector.h line for statclock. (See next commit for details.) 1994-08-15 03:09:29 +00:00
Garrett Wollman
053b68b9ae `init' needs crypt() for insecure consoles. 1994-08-15 02:45:37 +00:00
Andreas Schulz
021d975d03 Submitted by: Bruce Evans
Delete the ifdef GPL_EMULATE case here and made the padding work for
both types of emulators so that there is no longer a need to compile
ps and friends new if you are using the GPL math emulator instead the
normal one.
1994-08-14 23:32:45 +00:00
Andreas Schulz
5e687d014e Reviewed by:
Added code to check for an adaptec 1542B Version 3.20 Board. This was the
first board that supports >1Gb drives and has the extended bios. So we
need also to disable the exbios like it is done for the 1542C/CF boards.
1994-08-14 21:06:00 +00:00
Jordan K. Hubbard
769e29bd21 cc -> cc26 for now.
Submitted by:	jkh
1994-08-14 16:53:33 +00:00
Jordan K. Hubbard
9e091cd68f Kill an errant libg++ entry.
Submitted by:	jkh
1994-08-14 16:52:44 +00:00
Jordan K. Hubbard
0a1c887538 Make keywords.h get properly built.
Submitted by:	jkh
1994-08-14 06:57:34 +00:00
Paul Richards
98072b0e33 Pulled over missing ftape.h from 1.1.5
Reviewed by:
Submitted by:	Paul Richards
1994-08-14 01:52:48 +00:00
Paul Richards
be89b92c7b Changed the include <sound/ulaw.h> to be <i386/isa/sound/ulaw.h> so
it compiles.

Reviewed by:
Submitted by:	Paul Richards
1994-08-14 01:52:02 +00:00
Poul-Henning Kamp
063ea59ae1 The tcp/ip interfaces needed longer timeouts, works fine under 2.0. 1994-08-14 01:46:28 +00:00
Sean Eric Fagan
f98d56227f More stuff from the latest curses. Really minor this time.
Reviewed by:	Sean Eric Fagan
1994-08-13 23:23:53 +00:00
Sean Eric Fagan
6c8ac72df7 Brought the 2.0 libcurses up-to-date with the current 4.4 stuff, as
distributed in keith bostic's nvi (got his permission first).  Most changes
are cosmetic, but a few errors (mostly in tty..c) were cleared up.

Reviewed by:	Sean Eric Fagan
1994-08-13 23:15:38 +00:00
Jordan K. Hubbard
3540f0e14a This is the first attempt to drag the top level Makefile Rod sent me
into 2.0.  It will surely need more work.
Submitted by:	jkh
1994-08-13 22:47:28 +00:00
Garrett Wollman
502bf5ce55 Fix conditional-compilation mixup, pointed out by Paul Richards. 1994-08-13 17:45:09 +00:00
David Greenman
0e42760866 Made the kernel compile cleanly with gcc 2.6.0. Thanks go to Bruce
Evans for suggesting a method to detect various versions of gcc.
1994-08-13 14:21:58 +00:00
David Greenman
c501fb74cf Fixed problem with returning -1 on error when the return value is a
long long. Done by plugging both eax and edx with -1. This will clobber
edx unnecessarily when the return value is only 32bit...though probably
always an okay thing to do, it could stand a better fix.
   This was the cause of gawk being broken (boy was THAT ever a subtle
bug!!!).
1994-08-13 14:00:26 +00:00
Jordan K. Hubbard
2c6983854a Change .0 man extents to .1, as reported by Julian Elischer. Whoops,
thought I'd gotten this one the first time around.
Reviewed by:
Submitted by:
1994-08-13 05:00:39 +00:00
Garrett Wollman
f540b1065a Change all #includes to follow the current Berkeley style. Some of these
``changes'' are actually not changes at all, but CVS sometimes has trouble
telling the difference.

This also includes support for second-directory compiles.  This is not
quite complete yet, as `config' doesn't yet do the right thing.  You can
still make it work trivially, however, by doing the following:

rm /sys/compile
mkdir /usr/obj/sys/compile
ln -s M-. /sys/compile
cd /sys/i386/conf
config MYKERNEL
cd ../../compile/MYKERNEL
ln -s /sys @
rm machine
ln -s @/i386/include machine
make depend
make
1994-08-13 03:50:34 +00:00
Poul-Henning Kamp
24420201d8 Submitted by: Poul-Henning Kamp <phk@login.dkuug.dk>
Added my if_lp TCP/IP driver to lpt.c.
I have (surprise) not been able to test it on a 2.0 machine yet.  Connect the
machines with a parallel "lap-link" cable, and get rates from 35 kbyte/sec
up to 75 kbyte/sec.  (when ftp'ing foo: dev/zero -> bar:/dev/null).

The same lpt.c file should compile under 1.1.5.1 without problems.

I think we should promote this feature when we dump 2.0 on the expectant
public, because it provides a cheap and efficient way to move data to and
from notebooks &c.  It is not a replacement for ethernet, but a cheap
substitute sometimes.
1994-08-13 00:37:03 +00:00
Geoff Rehmet
46592ab983 Remove the scary bits from telnetd - no more encryption left here.
Only crypt.c in libc remains.
Reviewed by:	Geoff Rehmet
1994-08-12 23:00:04 +00:00