Commit Graph

44232 Commits

Author SHA1 Message Date
rgrimes
0822438cc7 The dynamically allocated struct's where not getting properly initialized
as malloc memory is NOT zerod.  Added bzero's after the malloc calls
to make sure that things are initialized.

>From Julian Elischer
1993-09-20 06:27:06 +00:00
rgrimes
cdb785565c Enabled floppy drive ioctl's so that disklabel on a floppy is now
quite and works correctly.  This is derived from notes in Bruce Evans
lattest patches to fd.c:

>From: bde@kralizec.zeta.org.au (Bruce Evans)
>Subject: fixes for fd driver

6. I picked up some code posted the other day to implement label ioctls.
   Now `disklabel fd0' works.  See a comment for how to modify conf.c.
1993-09-15 23:29:11 +00:00
rgrimes
37b4f865ec Removed $Log$ section and patch kit headers. And here is the full
message for Bruces changes:

>From: bde@kralizec.zeta.org.au (Bruce Evans)
>Subject: fixes for fd driver

I think I've fixed some bugs in the 0.2.4 fd driver.

1. The main cause of hangs was that there was no timeout for seeks.  So
   attempting i/o with no floppy in the drive hung iff a seek was required.

2. Opens of unattached drives were allowed.  The kernel usually paniced
   soon after due to a bad pointer.

3. Some timeout functions ran at splclock() instead of splbio().  This
   may not have mattered.

4. The state machine was left in a funny state after a timeout.

5. Some function headers were new-style.

6. I picked up some code posted the other day to implement label ioctls.
   Now `disklabel fd0' works.  See a comment for how to modify conf.c.
1993-09-15 23:27:45 +00:00
rgrimes
6ceafd1cce >From: paul@u.tvt.se (Paul Pries)
>Subject: Bad bug in kbdtables.h [FreeBSD]

I found a bug in /sys/i386/isa/kbdtables.h which contain the
different keyboard layouts for syscons.  This regards all tables exept
the Danish and US.  When compiling the kernel with any other keymapping
than Danish or none at all (US), you get an error that 'key_map' is undefined.
This is because there is a typo in the name of the struct containing
the tables, keymap intead of key_map.
1993-09-15 23:03:21 +00:00
jkh
46899c1bb1 Bruce's multifarious patches for the floppy driver (not well tested, but
since what we have is crap as it is, it can't do much worse!).
1993-09-14 19:34:32 +00:00
rgrimes
39d99ae8fe Put the uha0 controller at its proper default IRQ of 14! Thanks Warner! 1993-09-13 03:15:26 +00:00
rgrimes
02cac21034 >From: rich@id.slip.bcm.tmc.edu.cdrom.com (Rich Murphey)
I'd like to be able to say:

options         "SYMTAB_SPACE=78000"    # Kernel debugger symbol table size

If this seems a reasonable interim solution for freebsd, here's the
patch.. Rich
1993-09-12 21:56:50 +00:00
nate
1173244df9 Removed volatile functions which were causing grief in the system, since
volatile functions are undefined, and there is no reason to have them
in our kernel.
1993-09-10 22:14:37 +00:00
rgrimes
0e09870112 This is just to shut the compiler up
===================================================================
RCS file: /a/cvs/386BSD/src/sys/i386/i386/vm_machdep.c,v
retrieving revision 1.3
diff -c -r1.3 vm_machdep.c
*** 1.3	1993/07/27 10:52:21
--- vm_machdep.c	1993/09/10 20:12:53
***************
*** 179,184 ****
--- 179,186 ----
  #endif
  	splclock();
  	swtch();
+ 	/*NOTREACHED*/
+ 	for(;;);
  }

  cpu_wait(p) struct proc *p; {
1993-09-10 20:39:13 +00:00
ats
46df9f333a Fixed a small typo in an error printf. 1993-09-10 18:03:21 +00:00
rgrimes
46ce6ad1ef From guido@gvr.win.tue.nl Wed Sep 8 13:34:16 1993
That is because TIOCMGET was broken. Yes...this is known for some time
and no, we (Bruce and me) never posted it. Why? Simply because we choose
to post fixes when we fixed most of the bugs.

Anyway..now that the slip problems are coming, here is a fix for
correct TIOCMGET behaviour.

-Guido
Note: this should be tested first (Rich?).  Tested by rgrimes
1993-09-10 16:59:16 +00:00
rgrimes
8d725acd9d Moved db_end_line after db_printf to eliminate forward reference and
shut up the compiler about prototype mismatch.
1993-09-09 23:03:24 +00:00
rgrimes
379bb68e66 The scsi cd.c driver is now fully dynamic. You can change the lines
in your config file from:
device          cd0
device          cd1
...
device          cdn
to either
device          cd0
or
psuedo-device   cd0

The driver now dynamically allocates all per unit dependent structs, so it
will never run out of units (okay, so now we need 32 bit device major/minor
numbers!).  It will allocate unit numbers as it needs them.
1993-09-09 07:18:52 +00:00
dg
7fcbfde571 As of this revision, all known bugs have been fixed. Some of the fixes include:
1) fixed 3c503 lock-up if the thinwire cable was disconnected at boot time
2) 8013EBT boards now work (quite well!) in 16bit/16k mode
3) ED_NO_DOUBLE_BUFFERING flag now works
4) slightly higer performance (about 3%) with 16bit WD/SMC boards
5) support for WD8013WC (10BaseT) boards

   Additionally, the probe code has been reorganized to be much cleaner. This
revision of the driver is 1.25. The release notes have been updated as well.
1993-09-09 07:01:23 +00:00
rgrimes
2dc8bfe269 Changed the delay from 100 seconds to 20 seconds if you don't have scsi
dump code.
1993-09-09 01:30:46 +00:00
rgrimes
8d76c1b366 Changed the pg("ptdi> %x") to a printf and then a panic, since we are
going to panic shortly after this anyway.  Destroys less state, and
keeps the machine from waiting for someone to smash the return key
a few times before it panics!
1993-09-09 01:11:41 +00:00
jkh
7b70e998d3 Soren's latest syscons changes. 1993-09-08 22:11:48 +00:00
rgrimes
51a0bf34d7 First pass fixes to start using malloc structures for all per unit
data.  cd_data is now malloced on a per unit basis.

Protected all if ({scsi,cd}_debug).... with #ifdef CDDEBUG to reduce the
the size of the kernel when not debugging.
1993-09-08 21:04:32 +00:00
rgrimes
5410766eac >From Theo Derradt
This is a machine specific include, it belongs in the machine specific
directory.
1993-09-08 19:29:54 +00:00
rgrimes
e9755182d2 From michaele@vice.ico.tek.com Wed Sep 8 09:50:45 1993
Subject: Re: Some small errors in GAMMA
4.      Move printf("\n"); at line 491 in "/sys/i386/isa/sio.c" to after
        COM_MULTIPORT block at line 512.
From rgrimes:
The above would cause the word (multiport) with out a new line to
appear after the uart type message if you had COM_MULTIPORT enabled.
1993-09-08 17:38:05 +00:00
rgrimes
903cbd3c7a Several fixes to the st driver, for density detection and selection. No
longer have to do the st -f /dev/rst0 blocksize 0 on dat drives!
1993-09-07 15:58:00 +00:00
rgrimes
b922130a3b Reverting wd driver back to version before Bruces new driver until the
many bugs can be worked out of it...
1993-09-07 02:08:51 +00:00
rgrimes
208a394528 Removed patch kit header, added $Id$
Increased timeout in wdwait from 1000 to 2000, this makes the st157A's
at least pass the probe routines :-)
1993-09-06 17:41:46 +00:00
rgrimes
c8c5213a7c Enabled options NS since it can now be compiled! 1993-09-06 16:17:37 +00:00
rgrimes
3bcad64d09 Fixed usage of arpcom and #define blahblah arpcom.blahblah, fixed ioctl
support for options NS (XNS networking).
1993-09-06 16:13:15 +00:00
rgrimes
de3f48b21a Removed patch kit header, added $Id$
Added support of DONET({IMP,NS,ISO}) so you can now compile with options
NS and ISO, still missing some IMP code, but since the imp is old and
gone I doubt this will ever be used.
1993-09-06 16:12:05 +00:00
rgrimes
f9345fedea Add the following line to all generic configs as a comment so people would
know that they need to turn this on to get packets to forward.
#options      GATEWAY                 #Host is a Gateway (forwards packets)
1993-09-06 12:26:10 +00:00
rgrimes
16ea7bb496 Added ns_cksum.c from NetBSD 1993-09-06 12:12:24 +00:00
rgrimes
3eb22ff846 From: barclay_a_c <barclay_a_c@bt-web.bt.co.uk>
Subject: More information on "netstat -r
Date: Mon, 7 Jun 1993 11:57:33 +0100

Gentlemen,
I have been trying for some time now to get "netstat -r"
working from the 0.2.2 patchkit. I have the following solution to the
bug.

The symbol _radix_node_head needs to be added to the symbols.raw file
to enable the new routing table access. If this symbol is not present
then the old system us used which results in no routes being given. I
don't think that this justifies a patch in its own right but perhaps
could be added to a related patch sometime..
1993-09-05 18:30:58 +00:00
rgrimes
8c4a5ac647 Fixed printf if you are using SCSI_DELAY to allow the scsi bus to
settle down after the reset.
1993-09-05 17:41:07 +00:00
rgrimes
d865300567 SCSI code update from Julian 1993-09-05 15:42:22 +00:00
rgrimes
2c59b6bd3c Date: Fri, 3 Sep 93 01:25:44 +1000
From: bde@kralizec.zeta.org.au (Bruce Evans)

This fixes several problems.

It has almost everything that is in the FreeBSD version of Aug 22.
It is missing the bug for 2 drives and still prints <> around the
drive type.  It handles BADEND144 less verbosely.  It does wdgetctlr()
somewhat differently from NetBSD/FreeBSD.

Date: Sun Sep  5 06:45:12 PDT 1993
From: rgrimes@cdrom.com

Fixed printf's to be correct, since Bruce used the old ones.  This driver
still prints phantom wd1's on some Maxtor and other IDE drives, I have
a patch I am sending to Bruce for checking.
1993-09-05 13:46:17 +00:00
rgrimes
e3b372af2a Increased stack size to 8MB just to be on the real safe side. 1993-09-01 09:38:32 +00:00
rgrimes
c900491b6f Changed default irq and iomem address for ed0 so that most 3c503's and
wd80x3 class boards can be configured to the GENERIC kernels.

Entry was:
device ed0 at isa? port 0x280 net irq 9 iomem 0xd0000 vector edintr

Is now:
device ed0 at isa? port 0x280 net irq 5 iomem 0xd8000 vector edintr
1993-08-31 15:17:26 +00:00
rgrimes
826c991c7e Replaced the return (1)'s with return (IO_KBDSIZE) in the probe code so
that the printfs during the probing prints the range instead of just the
start address.
1993-08-28 13:26:30 +00:00
rgrimes
17b1e3c82c Changed trap.c so that a panic will occur if we do not have hardware
FP and we try to call the emulator when it is not compiled in.
Removed the #if defined(i486) || defined(i387) that use to call the
panic if we did not have a math emulator.
Removed an extranious include of i386/i386/math_emu.h from math_emulate.c.
1993-08-28 13:25:22 +00:00
rgrimes
21e084e1b7 Added options MATH_EMULTATE to the kernel config files to pull in the
387 math emulator (sys/i386/i386/math_emulate.c).  Made that file only
get compiled if options MATH_EMULATE is in the kernel.
1993-08-28 13:21:48 +00:00
rgrimes
e2d3d5cf10 Changed MAXSSIZ from MAXDSIZ to 2MB 1993-08-28 09:19:01 +00:00
rgrimes
a4192f6488 Revised headers from Julian. Support for generic scsi.
Better audio support
1993-08-28 03:10:05 +00:00
rgrimes
4a3e5fbc26 Revised drivers from Julian. Support for generic scsi. Fixed scsi tape (st.c)
problems with respect to multiple tar files on one tape.  Now uses malloc
of data structures to reduce static kernel size.
1993-08-28 03:08:59 +00:00
rgrimes
e2fd251e4b Revised drivers from Julian. 1993-08-28 03:07:44 +00:00
rgrimes
17d0b92e33 Added support for scsi/sg.c as cdev major 18. 1993-08-28 03:06:59 +00:00
rgrimes
32f0a39423 xxxprobe now returns the correct number of I/O registers used so that
the probe output during boot gives the I/O range instead of just the
starting address
1993-08-28 03:02:52 +00:00
alm
8853467d03 prefixed inline functions' parameter names with _ and declared
the return type explicitly.
1993-08-27 05:09:38 +00:00
rgrimes
ad429a3dfc Kernel support for ppp 1.3 + fixes 1993-08-27 02:10:12 +00:00
rgrimes
7948f398b4 Added the following line to all the supplied config files to shut up the
config program until this thing is fixed correctly.

maxfdescs	2048			#Max file descriptors per process
1993-08-26 17:55:59 +00:00
alm
cd6817cfbf adding fpgetround(3) IEEE floating point environment support 1993-08-25 09:01:44 +00:00
rgrimes
44c046f5c5 Fix so that unit number 1 is found again. 1993-08-24 19:41:58 +00:00
rgrimes
5319cd53f8 Corrected off by 2 error in DELAY macro (it was delaying for 2 * value).
From Bruce Evans.
1993-08-24 01:24:43 +00:00
rgrimes
3be3a76264 Some more small nits in the printf's fixed. 1993-08-22 10:00:16 +00:00
rgrimes
78807a9290 New kernel config file for checking out the kernel sources. It does pulls
in every thing that is known to work, and a lot of things that don't!
1993-08-22 02:59:49 +00:00
rgrimes
10bd2abc94 Moved if_we.c to be back in alphabetic order.. 1993-08-21 23:52:36 +00:00
rgrimes
a9c4feab55 Update to be a clone of GENERICAH, but for syscons driver. 1993-08-21 23:48:06 +00:00
rgrimes
1d07ceee64 Added Id: string 1993-08-21 23:47:20 +00:00
rgrimes
8d386d3250 Updated GENERICAH to be more current, new kernel GENERICBT for bt/uha
systems cloned from new GENERICAH.
1993-08-21 23:46:42 +00:00
rgrimes
4b8ce95720 Removed patch kit header, added Id: 1993-08-21 22:24:24 +00:00
rgrimes
e2f9e9b45b Removal of patch kit header, removal of old scsi as device, added Id: 1993-08-21 22:20:50 +00:00
rgrimes
92947fa0c8 Fixed printf's so that they announce them selfs correctly (ie aha%d: before
every error message and every probe message).
1993-08-21 20:01:59 +00:00
rgrimes
ddb2a98fca Added from: line to reference the pccons.c derivation of this code, otherwise
the BSD copyright would be very bad to have on this file.
1993-08-20 17:19:29 +00:00
rgrimes
b067071425 Enabled call to sddump so that if you have options SCSIDUMP in your kernel
you'll get to the dump code.  If you don't trust this on your disk also
add option NOT_TRUSTED, that disables the dump code, but prints out what
it WOULD do it it was going to scrible on your disk.
1993-08-20 12:51:53 +00:00
rgrimes
8515c9c892 Update scsi code to the latest from Julian. This code is now identical
to the last copy from Julian.  After this commit I will be commiting the
local fixes and makeing diffs to send back to Julian so he can update his
code.

----
From julian@jules.DIALix.oz.au  Thu Aug  5 09:25:23 1993
To: hd@world.std.com, julian@jules.DIALix.oz.au
Cc: nate@bsd.coe.montana.edu
Subject: Re: new scsi

----
From julian@jules.DIALix.oz.au  Sat Aug  7 04:13:17 1993
To: hd@world.std.com (HD Associates)
Cc: nate@bsd.coe.montana.edu
Subject: Re: timeout diffs

Here are the diffs to take the scsi stuff to my latest tree from what
Nate and you received..

the changes remove all the local timeout stuff and use (un)timeout(),

----
From julian@jules.DIALix.oz.au  Sat Aug  7 04:13:45 1993
To: hd@world.std.com (HD Associates)
Cc: nate@bsd.coe.montana.edu, briggs@csugrad.cs.vt.edu

here is a fix for a silly bug in the scsiconf I just sent out
and a similar fix for st.c
1993-08-20 09:23:30 +00:00
rgrimes
67474ae923 Update scsi code to the latest from Julian. This code is now identical
to the last copy from Julian.  After this commit I will be commiting the
local fixes and makeing diffs to send back to Julian so he can update his
code.

----
>From julian@jules.DIALix.oz.au  Thu Aug  5 09:25:23 1993
To: hd@world.std.com, julian@jules.DIALix.oz.au
Cc: nate@bsd.coe.montana.edu
Subject: Re: new scsi

----
>From julian@jules.DIALix.oz.au  Sat Aug  7 04:13:17 1993
To: hd@world.std.com (HD Associates)
Cc: nate@bsd.coe.montana.edu
Subject: Re: timeout diffs

Here are the diffs to take the scsi stuff to my latest tree from what
Nate and you received..

the changes remove all the local timeout stuff and use (un)timeout(),

----
>From julian@jules.DIALix.oz.au  Sat Aug  7 04:13:45 1993
To: hd@world.std.com (HD Associates)
Cc: nate@bsd.coe.montana.edu, briggs@csugrad.cs.vt.edu

here is a fix for a silly bug in the scsiconf I just sent out
and a similar fix for st.c
1993-08-20 09:21:40 +00:00
rgrimes
20d0d77e15 Update scsi code to the latest from Julian. This code is now identical
to the last copy from Julian.  After this commit I will be commiting the
local fixes and makeing diffs to send back to Julian so he can update his
code.

----
From julian@jules.DIALix.oz.au  Thu Aug  5 09:25:23 1993
To: hd@world.std.com, julian@jules.DIALix.oz.au
Cc: nate@bsd.coe.montana.edu
Subject: Re: new scsi

----
From julian@jules.DIALix.oz.au  Sat Aug  7 04:13:17 1993
To: hd@world.std.com (HD Associates)
Cc: nate@bsd.coe.montana.edu
Subject: Re: timeout diffs

Here are the diffs to take the scsi stuff to my latest tree from what
Nate and you received..

the changes remove all the local timeout stuff and use (un)timeout(),

----
From julian@jules.DIALix.oz.au  Sat Aug  7 04:13:45 1993
To: hd@world.std.com (HD Associates)
Cc: nate@bsd.coe.montana.edu, briggs@csugrad.cs.vt.edu

here is a fix for a silly bug in the scsiconf I just sent out
and a similar fix for st.c
1993-08-20 09:14:22 +00:00
rgrimes
60afe9cbcb Moved /sys/scsi code files information to independed files file where it
should have always been.
1993-08-20 08:53:08 +00:00
alm
1b6327eaa3 patch 1of2 to prevent kill -1 syslogd from hanging the console
blindly applied patch provided by Christoph Robitschko:
*** cons.c.orig	Sat Jun 12 07:57:53 1993
--- cons.c	Thu Aug 19 22:34:53 1993
***************
*** 56,61 ****
--- 56,62 ----
  #include "sys/tty.h"
  #include "sys/file.h"
  #include "sys/conf.h"
+ #include "sys/vnode.h"

  #include "cons.h"

***************
*** 105,118 ****
--- 106,130 ----
  	(*cp->cn_init)(cp);
  }

+ static struct vnode	*cnopenvp = NULLVP;
+
+
  cnopen(dev, flag, mode, p)
  	dev_t dev;
  	int flag, mode;
  	struct proc *p;
  {
+ 	int		error;
+
+
  	if (cn_tab == NULL)
  		return (0);
  	dev = cn_tab->cn_dev;
+ 	if (cnopenvp == NULLVP)
+ 		if ((error = getdevvp(dev, &cnopenvp, VCHR))) {
+ 			printf("cnopen: getdevvp returned %d !\n", error);
+ 			return(error);
+ 		}
  	return ((*cdevsw[major(dev)].d_open)(dev, flag, mode, p));
  }

***************
*** 121,130 ****
  	int flag, mode;
  	struct proc *p;
  {
  	if (cn_tab == NULL)
  		return (0);
  	dev = cn_tab->cn_dev;
! 	return ((*cdevsw[major(dev)].d_close)(dev, flag, mode, p));
  }

  cnread(dev, uio, flag)
--- 133,153 ----
  	int flag, mode;
  	struct proc *p;
  {
+ 	int		error;
+
+
  	if (cn_tab == NULL)
  		return (0);
  	dev = cn_tab->cn_dev;
! 	if (vcount(cnopenvp) <= 1)
! 		error = (*cdevsw[major(dev)].d_close)(dev, flag, mode, p);
! 	else
! 		error = 0;
! 	if (error == 0) {
! 		vrele(cnopenvp);
! 		cnopenvp = NULLVP;
! 	return(error);
! 	}
  }

  cnread(dev, uio, flag)
1993-08-20 05:46:09 +00:00
alm
390c971c95 added Bustek 545 support (patch from Christoph Robitschko):
*** aha1542.c~	Thu Aug 19 14:25:33 1993
--- aha1542.c	Thu Aug 19 14:25:49 1993
***************
*** 954,959 ****
--- 954,960 ----
  	printf("aha%d:",unit);
  #define	PRNT(x) printf(x)
  #endif	__386BSD__
+ 	DELAY(1000);	/* for Bustek 545 */
  	aha_cmd(unit,0, sizeof(conf), 0 ,&conf, AHA_CONF_GET);
  	switch(conf.chan)
  	{
1993-08-19 21:32:59 +00:00
rgrimes
732f7813ef Fixed poor timeout code in out_fdc. The timeout counter was not being
reinitialized between while loops.  Added comments about what was going
on in the out_fdc routine.

out_fdc now returns if the direction bit is not set in time instead of
trying to wait for MRQ to get cleared.
1993-08-12 09:21:20 +00:00
rgrimes
edccb8da6b Removed one more reverence to the old Adaptec 1542b as.c driver, one less
dependent for autoconf.c.
1993-08-10 10:18:33 +00:00
rgrimes
b2b7260ff3 Finish removal of reminents of as.c Adaptec scsi driver. 1993-08-09 19:02:21 +00:00
rgrimes
5ec5eb52a2 Moved _eintr{names,cnt} so that vmstat -i does not report all the debugging
stuff of the fast interrupt code.
1993-08-09 18:20:26 +00:00
rgrimes
ad97a190ea Removal of support for old scsi as.c driver, removal off old unneeded
kernel config files since AH?TEST are now supported by GENERICISA,
and the others used the old as driver they are no longer valid.
1993-08-09 14:39:37 +00:00
rgrimes
513d8832de From guido@gvr.win.tue.nl Sat Aug 7 06:58:04 1993
I posted some patches on the 386bsd_patchkit list to prohibit io access.
Because of a noninitialised filed in the tss, this was possible.
It is included below as the patch to machdep.c
However, when you do this *necessary* fix (security), it will be
impossible form within user space to do io.

therefor, I included another fix: when you open /dev/io, you
get the access. Of course you can rewrite it to use another minor
and thus giving access to the iospace when /dev/mem is opened, e.g.

NOTE: The /dev/io entry has not been added to /dev/MAKEDEV yet.
The patch is in NetBSD.
1993-08-09 06:16:42 +00:00
rgrimes
f196837c91 Fixed for DQFLQUIET flag from: Terry Lee <terry@uivlsisd.csl.uiuc.edu>
I submitted the part of patch00155 that fixes wd.c not reporting any
bad blocks.  Unfortunately, the patch created a new problem that makes new
installations using that kernel impossible.  I have included a patch below that
should fix both problems.  The fix comes from Tom Ivar Helbekkmo's wd driver
(the Norway wd driver).  I've also eliminated the use of the DKFL_QUIET flag
completely, since it is not used anymore.

Fixed wdgetctrl routines for so that it returns a meaniful string for
non IDE disk drives.  It also nolonger returns success when a drive is
not really there.
1993-08-08 07:03:21 +00:00
rgrimes
b6252fdd91 Removed the asking for a root file system when booting from floppy as that
is now handled by the new boot blocks immediatly after the kernel is loaded.
1993-08-08 06:24:15 +00:00
rgrimes
63ce7023d0 Added printf for cases AHB_ASN (async even notification) and AHB_HW_ERR so
that we are notified when these events occur.  This may lead us to the
cause of certain AHB timeout/lockup problems.

From: Roy Neese of Adaptec
1993-08-08 04:46:37 +00:00
rgrimes
9a63995a38 Removed tabs from the front of XXU: messages to make it fit the other
messages closer.  Added missing new line to the message about to many
scsi cd drives.
1993-08-06 12:11:52 +00:00
rgrimes
161adabb77 Fixed **probing for scsi devices** message to have a controller and unit
message on the begining of it:
aha0: **probing for scsi devices**
1993-08-06 11:59:06 +00:00
nate
0c36f1e1e4 Fix the problem where newvers gets called every time make is run on
the kernel.
1993-08-04 23:51:59 +00:00
dg
5bb13f8c55 * Fixed problem where some rev 8013EBT boards want the DCR_LS flag
* set in order to work in 16bit mode.

   Seems also to improve performance by 15%! (?!) I think there might
be more to this flag than the manual says.
1993-08-02 10:36:05 +00:00
jkh
340580baa4 Whoops - try again. Include safeties. 1993-07-30 10:57:09 +00:00
jkh
a1ecb5049c Now have very necessary include safety checks 1993-07-30 10:51:58 +00:00
jkh
89cdfc3bd0 Updated syscons to 0.2b - please test this! It won't be in the ALPHA
release, but it's still worth testing.
1993-07-30 02:20:26 +00:00
jkh
08445d950e Free'd up major number assigned to codrv. 1993-07-30 00:57:06 +00:00
jkh
f29be955f5 Removed entries for codrv, nuked sample config file since no longer necessary. 1993-07-30 00:56:31 +00:00
nate
019ba0c4cc Syncing our sources back with Julian's, and removing PATCHKIT headers.
Large Bustek changes, most everything else is minimal.
1993-07-29 11:55:37 +00:00
nate
13d364d221 Removed PATCHKIT headers and updated our sources to Julian's with
our patches back in.  Major changes to the Bustek driver and the
Tape driver, the rest are minor.
1993-07-29 11:49:13 +00:00
nate
de4110e5f9 fts(3) integration patches 1993-07-28 01:42:17 +00:00
dg
025f4aa392 * Applied fixes from Bruce Evans to fix COW bugs, >1MB kernel loading,
profiling, and various protection checks that cause security holes
  and system crashes.
* Changed min/max/bcmp/ffs/strlen to be static inline functions
  - included from cpufunc.h in via systm.h. This change
  improves performance in many parts of the kernel - up to 5% in the
  networking layer alone. Note that this requires systm.h to be included
  in any file that uses these functions otherwise it won't be able to
  find them during the load.
* Fixed incorrect call to splx() in if_is.c
* Fixed bogus variable assignment to splx() in if_ed.c
1993-07-27 10:52:31 +00:00
dg
7ffa94bf90 * Added include of systm.h to pick up inlined min/max/bcmp if you have
* them in cpufunc.h. Modified wait loop in reset to look a little better.
 * Added read for talley counters to prevent an infinite loop on old
 * 8003E's if they (the counters) overflow.
1993-07-27 03:13:50 +00:00
jkh
df631761d8 Sample kernel config for syscons. 1993-07-26 21:27:38 +00:00
jkh
e1598967d0 Added necessary files for syscons (may move font include later, but for now
it's easier to leave there since I don't feel like breaking anything).
1993-07-26 21:21:11 +00:00
jkh
628e2cc0b5 Added entry for syscons. 1993-07-26 21:19:30 +00:00
dg
63a4f3d26b Fixed logic problem which caused a bogus value to be written to the 3c503
asic register even if the board isn't a 3c503. This caused old 8003E's not
to work because they ignore IO address bits >10bits and the 3c503 asic is
located at +0x400....the offset was ignored by the 8003E and so the
value was written to one of the NIC registers. The bug was discovered by
Wolfgang Solfrank.
1993-07-25 23:43:30 +00:00
rgrimes
b54582d7a4 Very small patch from Julian Elischer to make the ultra14f.c driver work
with the 34f as well.
1993-07-22 00:56:23 +00:00
paul
c9cb33a376 Fixed attach printfs for new format (thanks Chris) 1993-07-21 06:07:58 +00:00
paul
8eadf42a80 Added statistical counters ipackets,opackets etc. 1993-07-21 04:18:47 +00:00
dg
b361efa59c Added config file override for memory size and added flags to force
8bit or 16bit operation, and a flag to disable transmitter double buffering.
   See the updated "ed.relnotes" file for information about how to set
the flags.
   This should be considered the first "production"  release. It still
needs a manual page, though.
1993-07-20 23:16:50 +00:00
jkh
cd18b68a80 Applied Andrew's patch to fix loop-on-logout problem. 1993-07-20 02:06:49 +00:00
jkh
c850d6c77d Changed comment relating to memsize to be a little less misleading. 1993-07-20 02:02:12 +00:00
jkh
6eed476a63 Fixed to allow iosiz config parameter to override what was (for me,
incorrectly) probed.  This allows you more flexibility in getting weird
WD 80x3 clones to work.
1993-07-20 01:39:24 +00:00
jkh
5eed4aca6e Removed check for interrupting board before interrupts were enabled.
This should result in more AST clones getting seen.
1993-07-20 00:22:30 +00:00
rgrimes
02203b252c Fixed sccs id to be From:\n com.c xxxx. The sccs id was changed by the
patch kit and it should not have been.
1993-07-18 21:27:57 +00:00
paul
773b4a7325 Fixed warning from gcc1 (but not gcc2 for some reason).
2nd parameter to isread was unsigned char and function declaration was for
char. Changed function declaration to unsigned char.
1993-07-18 20:57:34 +00:00
paul
d5ae41c7e8 Added volatile void to cpu_exit() in the hope that it would
stop warning about returning from gcc.

It hasn't but the declaration is still correct.
1993-07-18 20:56:17 +00:00
paul
79c246679c Small fix to correct warning --
missing cast of u_short to int in isread call.
1993-07-18 04:18:00 +00:00
dg
d06821a2d0 New locore from Christoph Rubitschko. 1993-07-16 23:55:07 +00:00
dg
d37d05a7da Updated kernel files to move occurances of "struct args" syscall
argument definitions outside of the function parameter list.  This is
to reduce the copious warning messages that (non-Jolitz) gcc produces.
Also fixed some bogus variable declarations and casts to make the
compiler happy.
1993-07-16 20:50:44 +00:00
rgrimes
612d636c07 Changed header from 386BSD BOOT to FreeBSD BOOT. 1993-07-16 13:06:08 +00:00
dg
b5cec41fcb Modified attach printf's so that the output is compatible with the "new"
way of doing things. There still remain several drivers that need to
be updated.  Also added a compile-time option to pccons to switch the
control and caps-lock keys (REVERSE_CAPS_CTRL) - added for my personal
sanity.
1993-07-15 17:53:14 +00:00
rgrimes
3693aeaa9a From Bruce Evans:
lpt doesn't work here if the printer is not turned on at boot time (this
has been reported for other systems).

lpt has a weird mapping of the flag bits vs printer numbers and MAKEDEV
does not understand this (printer 0 uses minor numbers 0-0x3f, printer 1
uses minors 0x40-0x7f, etc).

The following (simpler) problems are fixed by the patch.

lpt did not check the minor number on open, so if NLPT1 == 1 and you
try to open printer 1 then random memory above the lpt_sc array is
accessed.  I thought I had this problem for minors 1 and 2.  However,
it does not actually occur until minor 0x40.  Does anyone have lpt64?

lpt had several unnecessary && broken ANSIisms and other sloppy
declarations.

Bruce
1993-07-13 18:52:49 +00:00
root
ab9184f877 New boot blocks, from Bruce Evans, and NetBSD fixes. Allows kernel to
be loaded above 1MB.  Same boot code for floppies now.  Speed improvements.
etc etc etc. (I don't have much history on this, but then have been tested)
1993-07-13 18:15:32 +00:00
rgrimes
0586e44224 Fixed two occarances of ldos which should have been lods.
(From Christoph Robitschko)
1993-07-12 09:34:38 +00:00
rgrimes
ad3267a150 For all ed0 driver lines removed iosiz 8192, and fixed the weintr to be
edintr (error from last time I updated these)
1993-07-12 09:30:31 +00:00
jkh
bddc6a954b Put if_we driver well and truly back into the kernel. 1993-07-09 01:17:46 +00:00
paul
0beeef336e Added copyright message -- it didn't have one before 1993-07-09 00:09:34 +00:00
root
6178089f40 Increased default data size (DFLDSIZ) to 16MB. Need to rebuild libutil,
kernel, ps and w for this to work!
1993-07-03 21:21:35 +00:00
nate
9649ed228d Added (protection) around negative constants, in case a program wants
to use the negative of that constant.

#define NEG_NUM -3
#define SAFE_NEG_NUM (-3)

i = -NEG_NUM;		/* Error --3 */
j = -SAFE_NEG_NUM	/* Okay -(-3) */
1993-06-30 22:59:18 +00:00
nate
55e1c2ead0 Setting up for updated (usable) FPE atof/vfprintf/vfscanf fixes 1993-06-29 13:34:33 +00:00
dg
ba63a1cb7d fixed bugs in the probe routine uncovered by the previous fix. 1993-06-27 10:28:28 +00:00
dg
ca6f850684 fixed bug in probe that causes it to complain about 'Invalid irq configuration'
if the interface isn't present in the system.
1993-06-26 02:32:26 +00:00
dg
5d9363be88 Second beta release of device driver for SMC/WD 80x3 ethernet boards +
some additional comments.
1993-06-23 16:22:04 +00:00
dg
148b471fd1 Second beta release of device driver for WD/SMC 80x3 and 3c503 ethernet boards 1993-06-22 12:10:07 +00:00
paul
5a1a31c1ca Added bpf support to if_is.c (Isolan driver) 1993-06-19 08:24:14 +00:00
rgrimes
19d5199c53 Obsolete if_we.c driver, more attach call to where it belongs.
Still need to fix all the drivers.
1993-06-18 22:18:57 +00:00
rgrimes
a1439f8e9b Changed all we0's to ed0's. Obsoleting if_we.c driver. 1993-06-18 22:17:43 +00:00
paul
53efc2c195 New if_is.c isolan ethernet driver that can handle multiple cards. 1993-06-18 20:25:32 +00:00
paul
76bdcd462a Upgrade to GCC 2.X 1993-06-18 02:47:24 +00:00
dg
fd403edf04 Beta release of device driver for SMC/WD80x3 and 3C503 ethernet boards. 1993-06-14 22:21:25 +00:00
rgrimes
e209a83c1e This commit was generated by cvs2svn to compensate for changes in r4,
which included commits to RCS files with non-trunk default branches.
1993-06-12 14:58:17 +00:00
rgrimes
25062ba061 Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00
rgrimes
89bebeef18 Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00
rgrimes
c7d5f60d3a Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00