Garrett Wollman
324b24896b
all: register devices
...
cd.c sd.c: implement disk stats
1994-10-19 00:09:47 +00:00
Garrett Wollman
299b48a4da
Use a static length for externalized data, rather than calling a function.
1994-10-19 00:08:48 +00:00
Garrett Wollman
922006325b
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
Garrett Wollman
02694b627b
Move some declarations to more appropriate header files.
1994-10-19 00:06:24 +00:00
Garrett Wollman
f1815f8986
Implement disk_externalize().
1994-10-19 00:05:59 +00:00
Garrett Wollman
2a07a4c97e
Conditionally define CC, CWARNOPTS, etc., so that `makeoptions' in
...
config files actually does something useful.
1994-10-18 19:45:46 +00:00
David Greenman
a58d1fa15d
Fix the remaining vmmeter counters. They all now work correctly.
1994-10-18 14:59:20 +00:00
Poul-Henning Kamp
68ce205552
Typo in a comment.
1994-10-18 07:21:57 +00:00
David Greenman
08d7d166b8
Removed references to bclnlist which we don't use/support/need.
1994-10-18 06:55:57 +00:00
David Greenman
1b4bb67169
Fixed bug I just introduced that would have allowed a user to clobber
...
his kernel stack.
1994-10-18 04:40:41 +00:00
David Greenman
2d8f106204
Allow upages to be paged in/accessed.
...
Submitted by: John Dyson
1994-10-18 04:26:53 +00:00
Poul-Henning Kamp
430e2b9142
Spurious "int PHK;" removed.
...
Found it when I compiled my 'PHK' kernel... :-)
1994-10-18 03:53:12 +00:00
Poul-Henning Kamp
ac71bc2538
Added the final printf before jumping to the kernel.
1994-10-18 03:44:02 +00:00
Andrey A. Chernov
37b28ca421
Remove CPU_COLORDISP, GIO_COLOR now exists
1994-10-18 03:42:18 +00:00
Andrey A. Chernov
a5795badfb
Remove color_display, GIO_COLOR now exists
1994-10-18 03:34:53 +00:00
Poul-Henning Kamp
232b94fe38
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
Poul-Henning Kamp
b888f09c89
Bumped the version to 2.0.1-Development.
1994-10-18 01:50:21 +00:00
Garrett Wollman
d9581afbd9
MDDT_WDC -> MDDT_DISK
...
(NB: this is still not done yet.)
1994-10-17 23:34:21 +00:00
Garrett Wollman
0dcb1dd2e8
Add new definitions for lsdev.
1994-10-17 23:33:52 +00:00
Søren Schmidt
e33700d2b0
Got a little closer with socksys emulation.
1994-10-17 22:13:10 +00:00
Søren Schmidt
be92194467
Added more SCO compat ioctl's.
1994-10-17 22:12:06 +00:00
Poul-Henning Kamp
3595e6807d
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
Poul-Henning Kamp
161e7c8d87
#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
Poul-Henning Kamp
677060b407
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
Poul-Henning Kamp
4853df5bb0
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
Poul-Henning Kamp
6ae324074a
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
Andrey A. Chernov
1d3d5e17f6
Initialize color_display as undefined, cosmetique
1994-10-17 12:44:02 +00:00
Andrey A. Chernov
50249c77fe
Ifdef color_display by NSC, pointed by Rod
1994-10-17 12:36:43 +00:00
David Greenman
27de4e40b8
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
Poul-Henning Kamp
1be9232f73
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
Søren Schmidt
afc889a280
Added socksys module
1994-10-16 20:39:52 +00:00
Søren Schmidt
e8c1ac7fef
Added load of socksys driver.
1994-10-16 20:39:16 +00:00
Garrett Wollman
84d2542342
Actually document dk_* variables!
1994-10-16 05:03:05 +00:00
Garrett Wollman
3b97fdf905
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
Garrett Wollman
5955221aba
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
Garrett Wollman
8478cabaea
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
Garrett Wollman
e78014a8dc
Add interface to new device configuration table. Also implement
...
transfer statistics for iostat, vmstat, and systat.
1994-10-16 03:50:36 +00:00
Garrett Wollman
6b4375e296
Machine-dependent parts of device configuration table.
1994-10-16 03:50:01 +00:00
Garrett Wollman
3345fd3909
Added kern_devconf.c as standard.
1994-10-16 03:49:43 +00:00
Stefan Eßer
65005ce25c
Fixed typo and message format change to avoid line wrapping.
1994-10-15 23:27:39 +00:00
Poul-Henning Kamp
b16d240853
Added ed2 device, on a hard-jumpered location for SMC Ultra
1994-10-15 22:19:38 +00:00
Poul-Henning Kamp
daf49c81cc
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
Andrey A. Chernov
6d718805b0
Add color_display variable for CPU_COLORDISP sysctl.
1994-10-15 21:33:58 +00:00
Poul-Henning Kamp
ed7a91b5d2
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
Andrey A. Chernov
2b2701db9a
ADd CPU_COLORDISP sysctl to handle console display type
1994-10-15 21:25:03 +00:00
Andrey A. Chernov
9d40918f0f
CPU_COLORDISP sysctl added for console display type
1994-10-15 21:18:11 +00:00
Andrey A. Chernov
22171b7a33
Prevent modem hanging forever on close with CTS off:
...
use 1min timeout to wakeup ttywait
1994-10-15 18:05:25 +00:00
Andrey A. Chernov
61181d7df2
ttywait: check conditions again right after oproc
...
Obtained from: (I know, but can't say :-)
1994-10-15 17:59:02 +00:00
David Greenman
976e77fc9c
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
David Greenman
b8d95f1624
Count vm faults as v_vm_fault, not v_fault.
1994-10-15 10:33:47 +00:00
David Greenman
a08a17a3ce
Properly count object lookups and hits.
1994-10-15 10:28:47 +00:00
Poul-Henning Kamp
4da5299d11
Sanitized a little bit. All SCSI is now "controllers" and LINT is more
...
sorted now.
1994-10-15 08:09:42 +00:00
Andrey A. Chernov
ffcef9bdf8
Add back variable declaration removed by wrong previous cleanups
1994-10-15 04:14:23 +00:00
Andrey A. Chernov
2fe5b4cb4e
Add back variable declaration removed by wrong prevous cleanups.
1994-10-15 04:08:44 +00:00
Poul-Henning Kamp
da330b4225
$DESTDIR missing...
1994-10-15 03:59:19 +00:00
Poul-Henning Kamp
17b9f9f4a1
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
Stefan Eßer
6055e04518
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
Poul-Henning Kamp
5c6f82a20a
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
Søren Schmidt
9410e304aa
Fix install of ibcs2 script.
1994-10-14 22:56:40 +00:00
Andrey A. Chernov
0a97fb590a
Fix range checking bug, pointed by peter@haywire.dialix.com
1994-10-14 16:37:58 +00:00
David Greenman
b73f3b1da2
Got rid of redundant declaration warnings.
1994-10-14 12:26:18 +00:00
David Greenman
687ad8d189
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
Jordan K. Hubbard
c59ce636ad
Last commit not quite right - this works.
1994-10-14 09:04:19 +00:00
Jordan K. Hubbard
e1e0de6dae
Get the EXCLUDES correct so you can actually exclude GUS support.
1994-10-14 09:01:20 +00:00
Jordan K. Hubbard
0a99546c0a
Add missing )'s to previous midnight changes. :-)
1994-10-14 08:57:25 +00:00
Søren Schmidt
5828b66e7f
Added coff & ibcs2 modules.
...
Reviewed by:
Submitted by:
Obtained from:
1994-10-14 08:54:31 +00:00
Søren Schmidt
69b770e238
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
Søren Schmidt
29b9e87cdd
LKM module for the coff loader (used for iBCS2 emulation)
1994-10-14 08:46:12 +00:00
Søren Schmidt
8ddee77e1b
LKM module for the iBCS2 emulator
1994-10-14 08:45:16 +00:00
David Greenman
2e1e24dd28
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
David Greenman
defb6744ba
Changed I/O error messages to be somewhat less cryptic. Removed a piece
...
of unused code.
1994-10-14 00:57:19 +00:00
Garrett Wollman
e2637b6b1c
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
Søren Schmidt
2b101991d4
Damn, check in the wrong version, fixed.
...
Reviewed by:
Submitted by:
Obtained from:
1994-10-13 21:41:36 +00:00
Søren Schmidt
6e542db138
Main iBCS2 include file. First part of iBCS2 emulator.
1994-10-13 21:08:11 +00:00
Søren Schmidt
8117efaa95
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
David Greenman
28e12d63f3
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
Søren Schmidt
6fc4a1ae38
Added ifdef COMPAT_IBCS2 around setre[ug]id.
1994-10-13 20:59:49 +00:00
Søren Schmidt
5411ea9d8c
Added ibcs2_socksys file.
1994-10-13 20:19:11 +00:00
Søren Schmidt
539168b09f
Added socksys device (for iBCS2 emulation)
...
Reviewed by:
Submitted by:
Obtained from:
1994-10-13 20:17:06 +00:00
Garrett Wollman
10be56487a
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
Stefan Eßer
55f018a694
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
Stefan Eßer
152f2ff316
Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
...
Debugging option changed, getirr() removed.
1994-10-13 01:11:13 +00:00
Søren Schmidt
2a460312c8
Don't allow the same MISC module loading more than once..
1994-10-12 20:28:32 +00:00
Bruce Evans
b2f6e97280
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
Stefan Eßer
fb912bf5b8
Submitted by: Matt Thomas <thomas@lkg.dec.com>
...
#ifdef MULTICAST removed.
1994-10-12 11:39:37 +00:00
Stefan Eßer
140e168d9b
Submitted by: Matt Thomas <thomas@lkg.dec.com>
...
Preliminary FAST Ethernet support added (DEC21140).
1994-10-12 11:19:36 +00:00
Stefan Eßer
157823e855
Temporary disable scanning for VGA cards, was causing problems.
1994-10-12 11:06:49 +00:00
Stefan Eßer
5044407419
Submitted by: Bruce Evans <bde@zeta.org.au>
...
Function getirr() could clobber interrupt controller state.
1994-10-12 04:17:24 +00:00
Poul-Henning Kamp
1915df31ae
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
Stefan Eßer
8f7b2bb2fb
Name change: pci_intel.c -> pcisupport.c
1994-10-12 03:56:49 +00:00
Stefan Eßer
468010e809
Small corrections:
...
pci config line now without irq
boot message changed
1994-10-12 02:41:21 +00:00
Stefan Eßer
65772aee92
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
Stefan Eßer
86e0c19b6c
Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
...
Name change: pci_intel.c -> pcisupport.c
1994-10-12 02:27:08 +00:00
Stefan Eßer
8870af7f56
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
Stefan Eßer
22d3e9a6d7
Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
...
Name change: ncrstat -> ncrcontrol
1994-10-12 02:23:14 +00:00
Stefan Eßer
a7d314a58f
Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
...
Name change: ncr_reg.h -> ncrreg.h
1994-10-12 02:21:56 +00:00
Garrett Wollman
5df7296441
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
Søren Schmidt
fabbd9b7ce
Ouch, fixed bug in errno translation (ibcs2 support).
1994-10-11 22:37:14 +00:00
Søren Schmidt
bc576ac45e
Fixed bug in ibcs2 signal translation.
1994-10-11 20:42:01 +00:00
Søren Schmidt
99ec0d5b44
Removed static declaration of getvnode() (used in ibcs2)
1994-10-11 20:40:12 +00:00