Commit Graph

1656 Commits

Author SHA1 Message Date
se
04ad970a93 Added decoding of chipset registers for Pentium 90/100 CPUs. 1994-10-25 18:45:19 +00:00
bde
aced007bf5 Use the correct macro for deciding whether syscons' variables should
be accessed.

Remove some unused declarations and document a bogus one.
1994-10-25 18:22:32 +00:00
jkh
0b13b0b13d Add strtol() to libkern in support of some other work I'm doing.
I just know I'm going to get flamed for adding for the miserable
abortion that is libkern, but what am I supposed to do?  At least I
didn't drag in the ctype stuff! :-)
1994-10-25 14:57:57 +00:00
dg
d31e603a06 Changed some variable names in lf_addblock to make the code both
understandable and conform to other conventions used in the file.
1994-10-25 11:27:51 +00:00
dg
5eb8532563 Allow MAXMEM kernel option to indicate more memory than is detected; it
previously could only be used to limit the amount of memory.
1994-10-25 08:58:33 +00:00
swallace
b10a0127bf Patch to fix QIC-02/QIC-36 by Gene Stark.
From patch003 in CLEAR-1.1.5.1-PATCHES.
Submitted by:	Gene Stark
1994-10-25 08:57:39 +00:00
dg
5dc52e1f1e Restricted maximum bufpages to 1500; this is required for machines >64MB
of memory to work without running out of kernel VM (and increasing it to
even more than it is now (96MB) is out of the question. Changed bufpages
calculation to allocation a little less bufer cache (16% of mem-2MB instead
of 20%); this is simply a better figure for most systems.
1994-10-25 08:34:50 +00:00
dg
44d8a340c6 Moved initialization of tmpstk so that it immediately follows the kernel
text. Fixed rounding bug that caused the last page of kernel text to be
read/write instead of read-only. This is important now that tmpstk can
crash into it. Removed +4 bias of tmpstk because it screws up ddb's
ability to traceback correctly.
1994-10-25 07:25:56 +00:00
dg
2837d58a98 Improved I/O error reporting. 1994-10-25 07:06:20 +00:00
dg
5461dd7c15 #if 0'd out the object cache trimming code - there are multiple ways
that the pageout daemon can deadlock otherwise.

Submitted by:	John Dyson
1994-10-25 05:35:44 +00:00
sos
61b5dc899b Added sea0 - Seagate driver lines to config 1994-10-24 22:18:12 +00:00
sos
09f917dfac Seagate st01/02 driver.
Obtained from:	FreeBSD-1.1.5.1
1994-10-24 22:14:34 +00:00
wollman
ba4bf1a042 Fixed cut&paste error.
Submitted by:	davidg
1994-10-24 21:36:38 +00:00
wollman
a9f28ccb91 Implement fs.nfs MIB variables. 1994-10-23 23:26:18 +00:00
wollman
584d29849f Don't do suser() check; it's already done in __sysctl(). 1994-10-23 23:01:03 +00:00
wollman
7b8e09399a Finished device configuration database work for all ISA devices (except `ze')
and all SCSI devices (except that it's not done quite the way I want).  New
information added includes:

-	A text description of the device
-	A ``state''---unknown, unconfigured, idle, or busy
-	A generic parent device (with support in the m.i. code)
-	An interrupt mask type field (which will hopefully go away) so that
.	  ``doconfig'' can be written

This requires a new version of the `lsdev' program as well (next commit).
1994-10-23 21:28:03 +00:00
dg
5727d2fc7e Fixed object cache trimming policy so it actually works.
Submitted by:	John Dyson
1994-10-23 21:03:09 +00:00
dg
ee0022da28 Adjusted reserved levels to fix a deadlock condition.
Submitted by:	John Dyson
1994-10-23 20:53:33 +00:00
dg
57ae68ff84 Only VM_WAIT if curproc != pageproc. A deadlock can occur otherwise.
Submitted by:	John Dyson
1994-10-23 20:52:11 +00:00
sos
7384624210 First shot README file for iBCS support
Reviewed by:	sef@kithrup.com
1994-10-23 19:20:57 +00:00
sos
d57df1cab6 Fixed some video returns. 1994-10-23 19:19:42 +00:00
dg
052101cf25 Round down instead of up in 'kerninfo'/ctrl-T stats code. Incorrect output
can result otherwise.

Submitted by:	John Dyson
1994-10-23 06:18:13 +00:00
dg
774ff6d21f Changed a thread_sleep into an spl protected tsleep. A deadlock can occur
otherwise. Minor efficiency improvement in vm_page_free().

Submitted by:	John Dyson
1994-10-23 06:15:04 +00:00
martin
63e85e7c86 Fixed panic when unmounting floppy msdos filesystems. Problem was
we weren't flushing dirty buffers. Fix stolen from ffs_fsync()
1994-10-23 00:41:17 +00:00
phk
12080d95a7 Contrary to my last commit here: NFS-swap is enabled automatically. 1994-10-22 17:53:35 +00:00
phk
2577d91fc0 This is where the action is. I'm still not sure that swap is 100% OK, but
it seems to work.
1994-10-22 17:52:59 +00:00
phk
3c27cf8b22 While I debugged this, I quenched the compile warnings from if_ed. no other
changes.
1994-10-22 17:52:22 +00:00
phk
463d8c14c4 Autoconf is the one to realize that we are booted disk-less and start the
ball rolling.  locore is just moving some data from the boot-program.
1994-10-22 17:51:46 +00:00
phk
de23562289 NFS-diskless works. Look in sys/i386/boot/netboot for some of the
explanation.  More doc needed, but not hard to do, if you want to.

A big hand to Martin Renters for the netboot program !

Anybody want to compete on who can "make world" in the shortest
amount of time ?  I have 127 i486DX2/66 and 5 P60's I can use
now.  And 3 times 66 Gb file servers to support it... :->

Anyway, NFS will be standard in the GENERIC kernel now, so that
people can use the bin-tarball to set up shop.
1994-10-22 17:50:17 +00:00
phk
3d7628e9db Found one of the show-stoppers in netboot... 1994-10-22 16:30:58 +00:00
phk
c6bdff3132 Make the diagnostics a little more useful.
A word of wisdom, don't do this:

|	cd /usr/bin
|	for i in *
|	do
|		cp $i /tmp/a
|		gzip -9 < /tmp/a > $i
|	done

It will compress files with multiple links several times.  do it this way:

|	cd /usr/bin
|	for i in *
|	do
|		gunzip -f < $i > /tmp/a
|		gzip -9 < /tmp/a > $i
|	done
1994-10-22 11:55:16 +00:00
phk
ab856e27b3 I belive imgact_gzip is finally reentrant. It is also a whole lot more
readable.

inflate is now much more general, and is there if anybody feels like making
a uncompressing filesystem or something like that (hint hint !)
1994-10-22 11:40:38 +00:00
jkh
99c86cd93f Add tw.c for the X10 driver. 1994-10-22 09:55:02 +00:00
phk
2d37cac963 Some cosmetics in printfs mostly. 1994-10-22 04:23:12 +00:00
dg
b93705917b Fixed a comment from the previous commit. 1994-10-22 02:41:19 +00:00
dg
dd9d06bd3f Restrict fs_maxfilesize to 2^40, and check against this in ffs_truncate().
This is part of a bug fix from Kirk McKusick to work around problems in FFS
related to the blkno of a 64bit offset not fitting into an int. Note the
proper solution would be to deal with 64bit block numbers, but doing this
would require sweeping changes; some other day perhaps.

Submitted by:	Marshall Kirk McKusick
1994-10-22 02:27:35 +00:00
dg
e8b2d4b14c Various changes to allow operation without any swapspace configured. Note
that this is intended for use only in floppy situations and is done at
the sacrifice of performance in that case (in ther words, this is not the
best solution, but works okay for this exceptional situation).

Submitted by:	John Dyson
1994-10-22 02:18:03 +00:00
phk
d1575b02e6 The wdprobe was too picky. 1994-10-22 01:57:12 +00:00
jkh
e0b2523cc3 From: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi)
One of the alpha testers (ETO, Toshihisa <eto@osl.fujitsu.co.jp>)
of my APM driver sent me a very small patch to if_ze.c for using IBM
PCMCIA Ethernet card II.  There are only a few difference between
Ethernet card I and II.  So we can use them both with this patch.  It
also includes a patch for PCIC of ThinkPad 230Cs (As long as I
remember, this model is available in Japan only. But it is very
popular subnote in Japan).
Submitted by:	hosokawa
1994-10-21 22:59:45 +00:00
joerg
945b826761 Checking for timeout at several critical calls to ``out_fdc()'' now,
so i hope i've finally removed all the occasions where the driver
got stuck when there's no floppy in the drive.
Also attemmpting to  omit the error mesage for ``recalib failed''
for the first time, since people tend to be confused about this.
1994-10-21 16:58:50 +00:00
phk
2cf5e51b10 ATTENTION!
From now on, >all< swapdevices must be activated with "swapon".

If you havn't got it, add this line to /etc/fstab:
	/dev/wd0b	none	swap	sw	0 0
ne sec

Reason:
We want our GENERIC* kernels to have a large selection of swap-devices, but
on the other hand, we don't want to use a wd0b as swap when we boot of a
floppy.  This way, we will never use a unexpected swapdevice.  Nothing else
has changed.
1994-10-21 03:17:11 +00:00
wollman
2714516b29 Bug fixes from John Brezak. 1994-10-21 02:38:29 +00:00
wollman
3a9b1c345a Make my ALLDEVS kernel compile (basically, LINT minus a lot of options).
This involves fixing a few things I broke last time.
1994-10-21 01:19:28 +00:00
wollman
207112cfcf Make my ALLDEVS kernel compile (basically, LINT minus a lot of options). 1994-10-21 01:18:38 +00:00
wollman
96a439f22b LINT: vastly restructured so that it's actually useful for something
Makefile.i386: make definition of STRIP unconditional.
1994-10-21 01:10:54 +00:00
paul
d0a9396288 Added
#define MBR_PTYPE_FreeBSD 0xa5  /* FreeBSD partition type */


Reviewed by:
Submitted by:
Obtained from:
1994-10-20 23:41:57 +00:00
phk
67c8cc3f20 According to a quick reading of sources, one experiment and Bruce's word:
aha, ahb and bt all on "irq ?" now.
1994-10-20 00:53:30 +00:00
wollman
fee1af4368 Actually implement the functionality documented in sysctl.h for type CTL_FS.
(Namely, call a filesystem-dependent sysctl function analogous to how it works
for networking and (now) physical devices.)
1994-10-20 00:48:28 +00:00
phk
ccc81f66b7 A missing bit from Peter Dufaults patches, as best I could guess... 1994-10-20 00:45:36 +00:00
phk
ca4c47b8ec Bruce told me to: Make uha0 use irq ? 1994-10-20 00:19:37 +00:00
phk
c006d3d459 Peter Dufaults comconsole changes.
Submitted by:	Peter Dufault
1994-10-20 00:08:31 +00:00
bde
942fc20db7 Don't check for IRQ conflicts before probing the device, so that
drivers have a chance to change their IRQ before it is checked.
This was implemented in revision 1.21 and broken in revision 1.26.
Drivers that can change their IRQ should probably be configured
with "irq ?".
1994-10-19 21:57:51 +00:00
bde
b0fbd5a81d Clean up previous commit. 1994-10-19 21:38:19 +00:00
bde
5db7e440c8 Fix the test for the code segment being the usual one. Unusual code
segments can still cause panics.  Their pc is converted to 0 and 0
is only checked for in one place before use.
1994-10-19 21:13:51 +00:00
wollman
c1ffab18a7 Implement scsi_externalize(), again. (This was supposed to be committed in the
last batch of changes but somehow got lost in the shuffle.)
1994-10-19 20:34:15 +00:00
phk
e55b0fa62f Martins latest changes. RFC1048 and swap-file should be in the game now.
Submitted by:	Martin Renters.
1994-10-19 20:25:37 +00:00
wollman
24e218260a Add support for devconf to a large number of device drivers, and do
the right thing in dev_goawayall() when kdc_goaway is null.
1994-10-19 01:59:11 +00:00
wollman
c2771d0d1b Define SCSI_EXTERNALLEN outside of #ifdef KERNEL, for lsdev. 1994-10-19 01:49:23 +00:00
wollman
dfe4413dc7 Forgot to bring this file over from previous commit. 1994-10-19 01:20:44 +00:00
wollman
a538461f0d kdc_datalen is now a number, not a function pointer. 1994-10-19 00:10:10 +00:00
wollman
3b237980bd all: register devices
cd.c sd.c: implement disk stats
1994-10-19 00:09:47 +00:00
wollman
41a2adf2c7 Use a static length for externalized data, rather than calling a function. 1994-10-19 00:08:48 +00:00
wollman
9f03970c61 isa.c isa_device.h: declare & define {e,}isa_{in,ex}ternalize().
fd.c: register devices and implement disk stats.
wd.c: fix disk stats and call isa_externalize() as appropriate.
1994-10-19 00:08:07 +00:00
wollman
9a156f050b Move some declarations to more appropriate header files. 1994-10-19 00:06:24 +00:00
wollman
708ec9f37b Implement disk_externalize(). 1994-10-19 00:05:59 +00:00
wollman
2802184c31 Conditionally define CC, CWARNOPTS, etc., so that `makeoptions' in
config files actually does something useful.
1994-10-18 19:45:46 +00:00
dg
2d52a86c44 Fix the remaining vmmeter counters. They all now work correctly. 1994-10-18 14:59:20 +00:00
phk
b25af3a978 Typo in a comment. 1994-10-18 07:21:57 +00:00
dg
3151d38090 Removed references to bclnlist which we don't use/support/need. 1994-10-18 06:55:57 +00:00
dg
3826d4d70e Fixed bug I just introduced that would have allowed a user to clobber
his kernel stack.
1994-10-18 04:40:41 +00:00
dg
57a3f6cf30 Allow upages to be paged in/accessed.
Submitted by:	John Dyson
1994-10-18 04:26:53 +00:00
phk
d5a8d0dae5 Spurious "int PHK;" removed.
Found it when I compiled my 'PHK' kernel... :-)
1994-10-18 03:53:12 +00:00
phk
f77da950be Added the final printf before jumping to the kernel. 1994-10-18 03:44:02 +00:00
ache
976b2038f4 Remove CPU_COLORDISP, GIO_COLOR now exists 1994-10-18 03:42:18 +00:00
ache
5920fcebfe Remove color_display, GIO_COLOR now exists 1994-10-18 03:34:53 +00:00
phk
c10aa664a3 Made '?' do the same thing as help.
Fixed bug in netmask command.
Loads kernel fine.  I'm trying to get locore/autoconf to like the stuff.
1994-10-18 02:46:48 +00:00
phk
1095057ba8 Bumped the version to 2.0.1-Development. 1994-10-18 01:50:21 +00:00
wollman
5189808b14 MDDT_WDC -> MDDT_DISK
(NB: this is still not done yet.)
1994-10-17 23:34:21 +00:00
wollman
284bd386c0 Add new definitions for lsdev. 1994-10-17 23:33:52 +00:00
sos
da6326c1ef Got a little closer with socksys emulation. 1994-10-17 22:13:10 +00:00
sos
7a4daf58ca Added more SCO compat ioctl's. 1994-10-17 22:12:06 +00:00
phk
a87bfe683f isa_device.h: Added flag for sensitive HW. ed# seems to break if anything
else has been probed.  This feature could go away again, if we can curb the
problem another way.

if_ed.c, syscons.c:  Set the above flag.  ed# because it needs it, syscons
because it looks stupid to "detect" the display you have already filled up
with text :-)

bt742a.c: Check bt_cmd() return-val during probe, thus failing on adaptec's.
Also silenced various printf's during the probe.

isa.c:  Probe devices with the above flag set before the rest.  Reduce the
number of "conflict" messages per device to one.

***
Please test the GENERIC-kernel now, if nobody can make it fail, GENERICAH
and GENERICBT has a finite and short life-expectancy...
***
1994-10-17 21:16:41 +00:00
phk
93841a2173 #ifdef'ed the verbose probe messages. Only until I find a good way of
making it run-time selectable, then it will be back (at will).
1994-10-17 21:11:31 +00:00
phk
e7536ddeff GENERIC is our new all singing and dancing kernel. Please report ASAP if
there is anything GENERICAH or GENERICBT can, which this one cannot.

MINI changed to reflect the SCSI-pecking-order.
1994-10-17 21:10:20 +00:00
phk
3636a6db90 Netboot TNG. I have seen this compile, I don't know if it works.
I have put it here, because I belive we could share some code among the
various kinds of boot-code, whenever we get the time to look at it.

Submitted by:	Martin Renters
1994-10-17 17:55:31 +00:00
phk
071d10f334 This is a bunch of changes from NetBSD. There are a couple of bug-fixes.
But mostly it is changes to use the list-maintenance macros instead of
doing the pointer-gymnastics by hand.

Obtained from: NetBSD
1994-10-17 17:47:45 +00:00
ache
93ee3660bb Initialize color_display as undefined, cosmetique 1994-10-17 12:44:02 +00:00
ache
63843cb1d1 Ifdef color_display by NSC, pointed by Rod 1994-10-17 12:36:43 +00:00
dg
ccce4955a0 Put sanity check for negative hold count into #ifdef DIAGNOSTIC so that
it doesn't consume an extra 3k of kernel text because of gcc's bogus
inlining code.
1994-10-17 10:43:56 +00:00
phk
caadb2f384 This basically allows you to stick a disklabel on any partition.
For it to be useful, you must stick your disklabel on the partition which
starts where the MBR says FreeBSD lives.  If you don't do that, you might
get a bad day.

Oh, that probably also means that putting swap there is a bad idea...
1994-10-17 02:31:33 +00:00
sos
ca4647b889 Added socksys module 1994-10-16 20:39:52 +00:00
sos
79989a11a3 Added load of socksys driver. 1994-10-16 20:39:16 +00:00
wollman
fcbe4ad1d7 Actually document dk_* variables! 1994-10-16 05:03:05 +00:00
wollman
456a060976 Add semi-bogus initialization of dk_wpms so that systat and friends actually
do something useful with the disk stats.  (This needs to be determined
dynamically, but I don't want to screw with this driver.)
1994-10-16 05:02:37 +00:00
wollman
c4ebe36a0b dkstat.h: declare dk_names
sysctl.h: add HW_DEVCONF
devconf.h: machine-independent parts of config table
1994-10-16 03:53:00 +00:00
wollman
9d3d10662f kern_clock.c: define dk_names[][].
kern_sysctl.c: call dev_sysctl for hw.devconf mib subtree
kern_devconf.c: sysctl-accessible device-configuration and -management
	interface
1994-10-16 03:52:14 +00:00
wollman
46a19625d1 Add interface to new device configuration table. Also implement
transfer statistics for iostat, vmstat, and systat.
1994-10-16 03:50:36 +00:00
wollman
75018964fa Machine-dependent parts of device configuration table. 1994-10-16 03:50:01 +00:00
wollman
44cde5c87e Added kern_devconf.c as standard. 1994-10-16 03:49:43 +00:00
se
ccb43dfe5a Fixed typo and message format change to avoid line wrapping. 1994-10-15 23:27:39 +00:00
phk
682ae148fe Added ed2 device, on a hard-jumpered location for SMC Ultra 1994-10-15 22:19:38 +00:00
phk
687e53b0ba This kernel is a barebones kernel. No networking, no CD's no nothing.
Will be used to get a little bit of FreeBSD onto a disk, from where
other kernels can be loaded.
1994-10-15 21:36:25 +00:00
ache
0398136f19 Add color_display variable for CPU_COLORDISP sysctl. 1994-10-15 21:33:58 +00:00
phk
e870798eee moved a message into a #ifdef DEBUG. This message comes out if a kernel
doesn't have any networking in it.  For instance the new "MINI" install-
kernel.
1994-10-15 21:33:17 +00:00
ache
f76ae39352 ADd CPU_COLORDISP sysctl to handle console display type 1994-10-15 21:25:03 +00:00
ache
378cac598e CPU_COLORDISP sysctl added for console display type 1994-10-15 21:18:11 +00:00
ache
d2e6f2862c Prevent modem hanging forever on close with CTS off:
use 1min timeout to wakeup ttywait
1994-10-15 18:05:25 +00:00
ache
32696c9c2e ttywait: check conditions again right after oproc
Obtained from: (I know, but can't say :-)
1994-10-15 17:59:02 +00:00
dg
eb282b107c 1) Some of the counters in the vmmeter struct don't fit well into the Mach VM
scheme of things, so I've changed them to be more appropriate. page in/ous
   are now associated with the pager that did them. Nuked v_fault as the
   only fault of interest that wouldn't be already counted in v_trap is a VM
   fault, and this is counted seperately.
2) Implemented most of the remaining counters and corrected the counting of
   some that were done wrong. They are all almost correct now...just a few
   minor ones left to fix.
1994-10-15 13:33:09 +00:00
dg
0319b110ad Count vm faults as v_vm_fault, not v_fault. 1994-10-15 10:33:47 +00:00
dg
3cb54af0bc Properly count object lookups and hits. 1994-10-15 10:28:47 +00:00
phk
d1749692ef Sanitized a little bit. All SCSI is now "controllers" and LINT is more
sorted now.
1994-10-15 08:09:42 +00:00
ache
4aec6df298 Add back variable declaration removed by wrong previous cleanups 1994-10-15 04:14:23 +00:00
ache
b01d3c662a Add back variable declaration removed by wrong prevous cleanups. 1994-10-15 04:08:44 +00:00
phk
a022f22e6b $DESTDIR missing... 1994-10-15 03:59:19 +00:00
phk
c4b061eaa0 Fix the problem with panics when mounting on nonexistant directories. Probably
my fault in the first place...
1994-10-15 02:53:26 +00:00
se
0ff230d311 Submitted by: "Randall W. Dean" <rwd@osf.org>
Fixed typo in initialisation of DMODE:
PCI burst length now really 16 transfers as advertised ...
1994-10-14 23:59:36 +00:00
phk
20388ecc89 I added PROCFS back to the GENERIC kernels. ps(1) needs /proc, so almost
any machine will load it anyway.
1994-10-14 23:16:29 +00:00
sos
4132b1981b Fix install of ibcs2 script. 1994-10-14 22:56:40 +00:00
ache
a92485cbac Fix range checking bug, pointed by peter@haywire.dialix.com 1994-10-14 16:37:58 +00:00
dg
28cf896d68 Got rid of redundant declaration warnings. 1994-10-14 12:26:18 +00:00
dg
6b186a4c66 The code I wrote to write mbufs out using PIO had a bug in the handling
of mb_offset given the right sequence of 1 and 0 byte mbufs. This bug
was discovered by John Hood who also provided this fix -  which is a
rewrite of the routine (and is easier to understand than the code I wrote).

Submitted by:	John Hood <cgull@smoke.marlboro.vt.us>
1994-10-14 11:56:36 +00:00
jkh
9dfe9407ee Last commit not quite right - this works. 1994-10-14 09:04:19 +00:00
jkh
3dd6a4b3cf Get the EXCLUDES correct so you can actually exclude GUS support. 1994-10-14 09:01:20 +00:00
jkh
90ce517544 Add missing )'s to previous midnight changes. :-) 1994-10-14 08:57:25 +00:00
sos
b914c50dad Added coff & ibcs2 modules.
Reviewed by:
Submitted by:
Obtained from:
1994-10-14 08:54:31 +00:00
sos
8c25a4d2ac iBCS2 emulator core files.
This is the main files for the iBCS2 emulator. It can be use
compiled into the kernel by using:

options		IBCS2
options 	COMPAT_IBCS2

or as a lkm module using:

options		COMPAT_IBCS2

and then loading it via the ibcs2 script in /usr/bin

REMEMBER: this code is still experimental ! NO WARRENTY !

Submitted by:	sef@kithrup.com, mostyn@mrl.com, sos@kmd-ac.dk
1994-10-14 08:53:16 +00:00
sos
e5a7fbf2bb LKM module for the coff loader (used for iBCS2 emulation) 1994-10-14 08:46:12 +00:00
sos
eefd04ea19 LKM module for the iBCS2 emulator 1994-10-14 08:45:16 +00:00
dg
449e14aa40 Fixed bug where page modifications would be lost when swap space was
almost depleted.

Reviewed by:	John Dyson
1994-10-14 01:58:52 +00:00
dg
67535793f7 Changed I/O error messages to be somewhat less cryptic. Removed a piece
of unused code.
1994-10-14 00:57:19 +00:00
wollman
04264ac711 Fix some endianness and packet header bugs found in BSDi's port of this code.
(From mbone mailing-list.)
1994-10-13 22:12:42 +00:00
sos
be3750e0d6 Damn, check in the wrong version, fixed.
Reviewed by:
Submitted by:
Obtained from:
1994-10-13 21:41:36 +00:00
sos
254a3e6799 Main iBCS2 include file. First part of iBCS2 emulator. 1994-10-13 21:08:11 +00:00
sos
2a629797bf Made it possible for ioctl to return a value.
Ifdef by COMPAT_IBCS2 (used by the socksys system).
Submitted by:	Mostyn Lewis (mostyn@mrl.com)
1994-10-13 21:01:47 +00:00
dg
bb709a3eec Fixed an object reference count problem that was caused by a call to
vm_object_lookup() being outside of some parens. The bug was introduced
via some recently added code.

Reviewed by:	John Dyson
1994-10-13 21:01:39 +00:00
sos
dc7d305229 Added ifdef COMPAT_IBCS2 around setre[ug]id. 1994-10-13 20:59:49 +00:00
sos
30cf7d5f68 Added ibcs2_socksys file. 1994-10-13 20:19:11 +00:00
sos
aa5f3055bb Added socksys device (for iBCS2 emulation)
Reviewed by:
Submitted by:
Obtained from:
1994-10-13 20:17:06 +00:00
wollman
d67ef41179 As suggested by Sally Floyd, don't add the ``small fraction of the window
size'' when doing congestion avoidance.

Submitted by:	Mark Andrews
1994-10-13 18:36:32 +00:00
se
8538fd5ecd Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
removed PCI mapping call from vga_attach() in pcisupport.c.
1994-10-13 01:12:31 +00:00
se
1a86959f3b Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
Debugging option changed, getirr() removed.
1994-10-13 01:11:13 +00:00
sos
5da1431434 Don't allow the same MISC module loading more than once.. 1994-10-12 20:28:32 +00:00
bde
e42ffcf4bb Work around FIFO bug in SMC UARTS.
Fix endless loop in siopoll() for an event on a tty with no tty struct.
Don't generate unwanted interrupts in the serial console driver.  These
bugs probably don't matter unless the tty struct is dynamically allocated.

Support polled mode.  To use it, leave out the irq and the vector in
the config file.  It only causes extra overhead for open polled ports.
The maximum usable speed is approximately 1000 bps for a 16450 and
15000 bps for a 16550.

Other cosmetic changes.
1994-10-12 19:49:11 +00:00
se
776b51c319 Submitted by: Matt Thomas <thomas@lkg.dec.com>
#ifdef MULTICAST removed.
1994-10-12 11:39:37 +00:00
se
2c2e442f7b Submitted by: Matt Thomas <thomas@lkg.dec.com>
Preliminary FAST Ethernet support added (DEC21140).
1994-10-12 11:19:36 +00:00
se
7c668b0412 Temporary disable scanning for VGA cards, was causing problems. 1994-10-12 11:06:49 +00:00
se
c48e2420ab Submitted by: Bruce Evans <bde@zeta.org.au>
Function getirr() could clobber interrupt controller state.
1994-10-12 04:17:24 +00:00
phk
46b6d9e5f1 Added a 10ms delay after the HW-reset in bt_init(). This makes some funky
old boards more happy.
Reviewed by:	Julian
Submitted by:	Julian
1994-10-12 04:15:30 +00:00
se
c027476f8f Name change: pci_intel.c -> pcisupport.c 1994-10-12 03:56:49 +00:00
se
67e842ed9b Small corrections:
pci config line now without irq
	boot message changed
1994-10-12 02:41:21 +00:00
se
bdd76ad243 Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
Bug fixed, that caused system hang on first interrupt on some motherboards.

New version of PCI bus configuration code, now supports dynamic interrupt
configuration (using BIOS supplied values).
NCR SCSI and DEC Ethernet driver patched to use this feature.
*** Remove PCI IRQ specifications from your kernel config file ! ***
1994-10-12 02:33:23 +00:00
se
58cfb27b7a Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
Name change: pci_intel.c -> pcisupport.c
1994-10-12 02:27:08 +00:00
se
2a7081fe01 Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
Files merged and name change: pci_device.h + pcibios.h -> pcireg.h
1994-10-12 02:25:03 +00:00
se
91a4162398 Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
Name change: ncrstat -> ncrcontrol
1994-10-12 02:23:14 +00:00
se
c7233be7d4 Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
Name change: ncr_reg.h -> ncrreg.h
1994-10-12 02:21:56 +00:00
wollman
ffabe2a5ad Fix a bug which caused panics when attempting to change just the flags of
a route.  (This still doesn't work, but it doesn't panic now.)  It looks
like there may be a number of incipient bugs in this code.

Also, get ready for the time when all IP gateway routes are cloning, which
is necessary to keep proper TCP statistics.
1994-10-11 23:16:38 +00:00
sos
57cd073556 Ouch, fixed bug in errno translation (ibcs2 support). 1994-10-11 22:37:14 +00:00
sos
8819dfc094 Fixed bug in ibcs2 signal translation. 1994-10-11 20:42:01 +00:00
sos
45e2713230 Removed static declaration of getvnode() (used in ibcs2) 1994-10-11 20:40:12 +00:00
ache
2126872294 Better IXANY/IXOFF processing into setflags.
Cosmetique 'tab' fix
1994-10-11 20:29:42 +00:00
ache
7d96472389 Fix old cs8->cs7 bug, bringed by rlogin.
Obtained from:  FreeBSD 1.x
1994-10-11 20:04:49 +00:00
csgr
f418b6577e - remove unnecessary #includes (I think a couple of redundant ones remain)
- excise some unused code (#if 0'd out - don't want to nuke it yet)
- fix problems with "make depend" - some macros were screwing it up
- get rid of some static local variables

There still seems to be a small reentrancy problem somewhere.
1994-10-11 11:29:17 +00:00
wollman
1ff4b94c7d Turn off OXTABS by default. Inspection of systems here finds no commercial
systems with it on by default (or the equivalent flag) and terminal control
sequences confuse it greatly.  (Try running `ls' under bash in an XTerm,
for instance.)
1994-10-11 00:16:28 +00:00
phk
03b8cd6bbb minaddr #ifdef lost in previous commit. Sorry. 1994-10-10 18:06:58 +00:00
phk
250cc1ae23 Cosmetics. Silence gcc -Wall 1994-10-10 07:57:33 +00:00
phk
84923353f8 Cosmetics. Silence gcc -Wall. 1994-10-10 07:56:07 +00:00
phk
c0f48e68d2 Cosmetics. reduce the noise from gcc -Wall. 1994-10-10 07:55:48 +00:00
sos
03a02ed175 Hmm, only translate errno when doing an actual return.
Reviewed by:	sef@freefall.cdrom.com
1994-10-10 07:33:01 +00:00
phk
b71a5d56f5 Got rid of "APM" macro. Now only NAPM is needed to activate the APM stuff. 1994-10-10 01:14:03 +00:00
phk
f6a1c45a08 Cosmetics. Silence gcc -Wall. Much more to do here :-( 1994-10-10 01:12:27 +00:00
phk
4f594ec8ba locore.s: Made the APM stuff depend on NAPM > 0 rather than a separate
"APM" macro.
machdep.c: Made the APM-descriptors unconditional.
Bruce: if these still conflict with your debugger, please put in a reservation
for your debugger.  These three desc. can be anywhere, as long as they are
contiguous, so just move them as needed.
1994-10-10 01:10:22 +00:00
phk
913add0cbb Cosmetics. Added a prototype. 1994-10-10 01:06:48 +00:00
phk
ffd776502f Cosmetics. make gcc less noisy. Still some way to go here. 1994-10-10 01:04:55 +00:00
phk
1395bb0791 Cosmetics. related to getting prototypes into view. 1994-10-10 01:00:49 +00:00
phk
1d21d570b6 Cosmetics. (sort of) Added 19 prototypes. 1994-10-10 00:58:36 +00:00
jkh
7b137d99db Make the Bt545S work a little nicer with a strategic delay.
Submitted by:	dyson
1994-10-10 00:46:09 +00:00
sos
7224e3ddd9 Added errno conversion table (initialize to zero). 1994-10-09 22:07:38 +00:00
sos
d473eef8be Updated to convert errno return in syscall if conversion tabel present. 1994-10-09 22:02:06 +00:00
sos
859f37b194 Updated to add errno conversion table (initialize to zero). 1994-10-09 22:00:17 +00:00
sos
9b84549628 Updated to add errno conversion table. (intialize to zero). 1994-10-09 21:58:47 +00:00
sos
5e2bc681b3 Changed option IBCS2 to COMPAT_IBCS2 (for lkm support) 1994-10-09 21:53:49 +00:00
sos
52b6f27db2 Added errno conversion table for ibcs2 support. 1994-10-09 21:53:05 +00:00
sos
a9807158e2 Latest ibcs2 changes, add errno conversion table.
Also add 256 byte spare space on the usr stack.
1994-10-09 21:50:57 +00:00
dg
8ec51aef1b Got rid of map.h. It's a leftover from the rmap code, and we use rlists.
Changed swapmap into swaplist.
1994-10-09 07:35:18 +00:00
phk
09c3293a0f Cosmetics: unused vars, ()'s, #include's &c &c to silence gcc.
Reviewed by:	davidg
1994-10-09 01:52:19 +00:00
dg
877f7da834 Call resetpriority, not setpriority() ...oops.
Submitted by:	John Dyson
1994-10-09 00:18:22 +00:00
phk
632c3f49e9 Cosmetics: silences gcc -Wall. 1994-10-08 22:39:58 +00:00
phk
3282d8a721 Cosmetics: to silence gcc -wall. 1994-10-08 22:38:27 +00:00
phk
ec6c0e6ca7 Cosmetics: added a #include and a static prototype to silence gcc. 1994-10-08 22:37:00 +00:00
phk
5f8e9e2c4d Cosmetics: added ()'s and fixed prinf-formats to make gcc silent. 1994-10-08 22:33:43 +00:00
phk
ce7e00f64f A couple of prototypes moved out from here. 1994-10-08 22:27:58 +00:00
phk
be4fdf00a8 Removed unused vars. Silenced gcc -Wall. Some of this stuff is virtually
type-less.  Everything is "u_int32" :-(
1994-10-08 22:26:40 +00:00
phk
5251e75557 Added prototypes here and there. Moved pfctlinput into socket.h. 1994-10-08 22:23:00 +00:00
phk
4ffcc0d5e9 Added prototypes. 1994-10-08 22:21:34 +00:00
phk
cbcc30050b db_disasm.c: Unused var zapped.
pmap.c: tons of unused vars zapped, various other warnings silenced.
trap.c: unused vars zapped.
vm_machdep.c:  A wrong argument, which by chance did the right thing, was
corrected.
1994-10-08 22:19:51 +00:00
dg
620770cf48 Completely removed trailer support. The only reason I wrote that code in
the first place was so that BPF could grok trailer packets. I've since
decided that this is a job for tcpdump to decipher (if at all). Also
fixed up checks for received packet length to better cope with ancient
starlan boards.
1994-10-08 09:24:20 +00:00
phk
06258807e1 POSSIBLE BOGUS CODE found, (related to dos-partitions) in ufs_disksubr.c,
look for CC_WALL.
Cosmetics, a couple of unused vars.
1994-10-08 06:57:29 +00:00
rgrimes
c447e587f4 Correct #ifdef for nfs_disless support is #ifdef NFS, there will be no
option DISKLESS for the 2.0 nfs diskless support.   A 2.0 diskless kernel
simple needs NFS linked in statically.
1994-10-08 06:20:52 +00:00
phk
ee22b0c649 Cosmetics for gcc -Wall. A couple of unused "int i"'s removed and a couple of
prototypes added.  And the usual () work.
1994-10-08 06:20:06 +00:00