Commit Graph

6875 Commits

Author SHA1 Message Date
is
7873fac590 Grr... my fault when send-pr'ing the "CPU too fast" error patch. The chip
is called BT458, not BT478.
1996-03-04 19:49:11 +00:00
cgd
c8487c701e reorganize mapping register definitions 1996-03-04 19:30:50 +00:00
cgd
18ec26aa21 add _MACHINE and _MACHINE_ARCH, which are like MACHINE and MACHINE_ARCH,
execpt without quotes.  meant to be __CONCAT()ted for easy #includes
of machine-dependent headers for MI code (e.g. for the MI ISA/EISA/PCI/TC
bus code).
1996-03-04 05:04:10 +00:00
mycroft
7f1ba9f148 Update for changed DMA interface. 1996-03-04 04:01:03 +00:00
cgd
fedca4f133 Attach isa, eisa, and pci to mainbus now, rather than root. The i386
now has a single device tree (rather than a forest).  Also, attach
EISA only if it's present, and attach in order: PCI, EISA, ISA (most
specific to least specific).
1996-03-04 03:25:48 +00:00
thorpej
9029778d04 RCS id police. 1996-03-03 16:54:17 +00:00
thorpej
b2c3f54207 Fix logic errors in new console probe code that caused framebuffers
outside of "internal i/o" space to not even have a chance at console-hood.
Fix tested by Thorsten Frueauf <frueauf@ira.uka.de>, and offered with
my sincerest apologies that the bug ever existed in the first place.
1996-03-03 16:48:52 +00:00
ragge
c2ce0848e2 Added ns_cksum.c. 1996-03-03 11:56:33 +00:00
ragge
c76bb64058 Machine-optimized version of ns_cksum.c. 1996-03-03 11:54:37 +00:00
ragge
c22fc0bce4 Enable label_t. 1996-03-03 11:21:31 +00:00
ragge
e82da18ec2 Fix include file ordering. 1996-03-03 11:18:59 +00:00
ragge
f2bcddae7f Fix fuswintr/suswintr arguments to match prototype. 1996-03-03 11:17:59 +00:00
thorpej
570949e0e4 Catch up with ITE data structure changes. 1996-03-03 04:23:33 +00:00
jtk
8c395495bf set ia->ia_iosize to 0 so that the probe code doesn't spit out lots of
gunk.
1996-03-03 04:12:48 +00:00
pk
855b6def84 Add ns_cksum. 1996-03-02 23:55:17 +00:00
ragge
7ade5ebd76 Files needed to create boot floppies for 11/780, most of them
taken directly from 4.4BSD.
1996-03-02 17:57:34 +00:00
ragge
ffc8953cd7 Change config delay's to more reasonable values. 1996-03-02 14:29:23 +00:00
veego
39aeb2aa25 console driver for the CyberVision64 1996-03-02 14:28:51 +00:00
ragge
5d89814116 Changes due to 11/780 support. Raise splimp() to BR7. 1996-03-02 14:27:52 +00:00
ragge
cef093b42e Add VAX780 support to the boot program. 1996-03-02 14:22:57 +00:00
ragge
8fbcb8ce5a Add VAX780 and DHU11 to the GENERIC file. Put the corresponding
file lines in files.vax.
1996-03-02 14:19:47 +00:00
ragge
10fe8f1971 All devices can now be in GENERIC. 1996-03-02 14:14:05 +00:00
ragge
827892239a Add support for DW780. Note that ubareset's don't work properly.
This is not a problem on other Unibus adapters, but DW780's do
ubareset's more often. This needs to be fixed by someone someday.
1996-03-02 14:09:57 +00:00
ragge
89e32834cd Fix some too long delays. Set some structs volatile that otherwise
caused hangs during autoconfig.
1996-03-02 14:06:03 +00:00
veego
18fd2ce9c2 Updated for the new CyberVision64 console
gen_cvtab.c is no longer needed
1996-03-02 14:02:53 +00:00
veego
6160a6474d Updated for the new CyberVision64 console
and a small cleanup in the GENERIC config
1996-03-02 14:00:31 +00:00
ragge
508f81daca Support for VAX 11/780 - 11/785 system types added.
There are no support (yet) for the RX01 console floppy,
even if it is actually needed to create boot floppies.
(The arff utility is also missing, so...)
1996-03-02 13:45:34 +00:00
ragge
a14bb8a710 Add a #ifdef TUDEBUG around a printf statement. 1996-03-02 13:41:24 +00:00
ragge
c45af1134a Unibus/Q22 bus device driver for DHU-11 serial card.
Written by Ken Wellsch. (kcwellsc@math.uwaterloo.ca)
1996-03-02 13:30:53 +00:00
cgd
1c5d7babe5 Clean up tabbing/spacing in defns of MACHINE, MACHINE_ARCH, and MID_MACHINE. 1996-03-01 23:30:08 +00:00
scottr
9aebe01038 Add newlines to CPU class notices 1996-03-01 21:49:49 +00:00
is
c1e8e92697 "major" declarations which got lost when the scsi stuff was changed to
include ../../../scsi/conf/files.scsi
1996-03-01 19:42:26 +00:00
scottr
9e8b6a032a Don't try to make dependencies for SFILES if it isn't defined. 1996-03-01 17:03:17 +00:00
thorpej
9f2837ac9b "oops", forgot to check this in...add entries for the cgfour and cgeight. 1996-03-01 08:11:00 +00:00
thorpej
f579d1a485 Fix an operator precedence botch. *sigh* This just hasn't been my week. 1996-03-01 07:44:43 +00:00
pk
abd3cf4df2 Don't reset `xs->retries'. 1996-02-29 23:33:48 +00:00
pk
bf59310f69 Fix typo, and bring back VA hole handling. 1996-02-29 22:15:13 +00:00
cgd
3d67685d36 Do not build vnode_if.[ch] for each kernel. Build them once, like the
various syscall sources/headers, and just compile them.  From PR 2142, OK'd
by mycroft.
1996-02-29 20:54:58 +00:00
leo
e800077389 Added to build the bootloader stuff. 1996-02-29 11:41:31 +00:00
leo
48f5b02304 NetBSD/Atari bootcode by Waldi Ravens. 1996-02-29 11:35:46 +00:00
leo
e538eed242 NetBSD/Atari bootcode by Waldi Ravens. 1996-02-29 11:35:05 +00:00
thorpej
93dff23036 Back out the "don't use DMA if SCSI_POLL is set" saftey-net. The
MI 5380 code did something I didn't really expect, which caused DMA
to disable itself if only DMA was enabled.  *grumble*
1996-02-29 03:28:38 +00:00
gwr
2de7b2e5cb update PMAP_PREFER 1996-02-28 22:44:33 +00:00
pk
8bea3309c3 Fix typo 1996-02-28 22:09:27 +00:00
thorpej
2d885d15e9 Fixup an RCS id. 1996-02-28 20:54:50 +00:00
thorpej
50c8d6cdb0 Oops...missed to places where I could have used CPU type macros. 1996-02-28 20:53:02 +00:00
thorpej
8caec41719 RCS id police. 1996-02-28 20:49:18 +00:00
briggs
883ff3e7f3 Changes from Walter Ruetten for P550 support. 1996-02-28 04:14:05 +00:00
cgd
379b6eadf4 pci devices are now specified like "foo* at pci? dev ? function ?". also,
add support for PPB's and secondary PCI busses, where appropriate.
1996-02-28 02:02:29 +00:00
cgd
0bcfb3598b update for adjustments to ISA and PCI 'files' files 1996-02-28 01:58:25 +00:00
cgd
df03361e4b update for new method of attaching isa/pci busses 1996-02-28 01:54:44 +00:00
cgd
591c6fd2cd make PCI bus match/attach and sub-device attachment machine-independent.
(remove that code from this file.)
1996-02-28 01:50:02 +00:00
cgd
f5f5831829 make ISA bus match/attach and sub-device attachment machine-independent.
(remove that code from this file.)
1996-02-28 01:49:35 +00:00
gwr
51815fdcd6 Kill a mis-matched and unnecessary declaration. 1996-02-28 01:48:48 +00:00
thorpej
ee8a2c002f Copyright assigned to The NetBSD Foundation. 1996-02-28 01:01:17 +00:00
jtc
bfbc5fb90c Copyright assigned to the NetBSD Foundation 1996-02-27 22:39:39 +00:00
jonathan
467a64a327 Replace tc.c and ds-tc-conf.c with a re-written tc_subr.c. tc_subr.c
works with the revamped machine-independent TC code in sys/dev/tc.
A name change is necessary to avoid a name clash with sys/dev/tc/tc.c,
which also creates a tc.o.
1996-02-27 22:35:05 +00:00
jtc
8bd51c47b9 Copyright assigned to the NetBSD Foundation 1996-02-27 22:28:09 +00:00
jonathan
776c58e187 TurboChannel bus auto-configuration tables, and TurboChannel pre-autoconfig
probe functions for console framebuffers,  rewritten to work  with the
machine-independent TC support in sys/dev/tc.
1996-02-27 22:28:08 +00:00
scottr
f08c9ffa5a make this compile again, since CONUNIT is no longer defined for us.
per Jason.
1996-02-27 22:11:44 +00:00
thorpej
edf9d66f32 First-cut support for P4 framebuffers. Currently supports P4 variants
of bwtwo, cgfour, cgsix, and cgeight.  Includes support for attaching
the overlay plane of the cgfour and cgeight as a bwtwo instance (a'la
SunOS).

P4 register descriptions, cgfour driver, and cgeight driver partially
derived from OpenBSD.

This code may still need polishing.
1996-02-27 22:09:14 +00:00
pk
fe5a56ec9d Be sure to malloc() in page-sized units. 1996-02-27 13:17:01 +00:00
pk
70eee90be3 remove a printf 1996-02-27 09:10:24 +00:00
briggs
92c6f5f0ee Get rid of some unneeded constants. 1996-02-27 03:29:16 +00:00
briggs
6ec37fa3df Use IOBase instead of INTIOBASE. 1996-02-27 03:25:47 +00:00
briggs
db2f33c640 Clean out some unneeded constants. 1996-02-27 03:23:42 +00:00
briggs
1dcd5f9d15 For a bus error in nofault, if it's an 040, load the address from the
correct frame offset.  This is required for the 5380 driver to work
properly.
1996-02-27 03:17:00 +00:00
pk
9216cf3276 Drain rev 1 chips in dma_reset(). 1996-02-27 00:36:11 +00:00
pk
2c646f8da5 bwtworeg' is just about the same as the generic fbcontrol'. 1996-02-27 00:32:34 +00:00
cgd
e4a3b7650e oops; remove extraneous #if/#endif pair 1996-02-27 00:15:23 +00:00
pk
6b5eb65b21 bt_reg => fbcontrol. 1996-02-27 00:14:17 +00:00
cgd
570976f77c change previously-useless config_rootfound() for the EISA bus so that
it provides what the new MI EISA code expects.
1996-02-27 00:13:45 +00:00
pk
8628f94179 Use `video enable' bit in framebuffer control. 1996-02-27 00:11:14 +00:00
pk
2fe54615fb Define a couple more framebuffer control bits. 1996-02-27 00:09:23 +00:00
cgd
188cda224f Trim some comments relating to EISA configuration that are no longer relevant. 1996-02-27 00:08:29 +00:00
cgd
440b3cbc94 update for new EISA autoconfiguration: there can now be an eisa0 at root,
and ahb attaches to eisa, not isa.  Also, ahb* at eisa?... is now supported,
so you can get all ahb's configured easily.
1996-02-27 00:06:42 +00:00
thorpej
0adab4d779 Avoid accidentally lowering a devices console priority. 1996-02-26 23:40:29 +00:00
jonathan
ff27dbbcf9 Revert pmax stdarg.h and varargs.h to versions from 1995-11-13. Those
versions work correctly; at some point between then and the immediately
preceding revisions, the "stylistic" changes to one (or both) stdarg.h
and varargs.h broke passing doubles to printf().
1996-02-26 23:29:05 +00:00
thorpej
cf93780656 Adjust for the new console code; CONSCODE is now a kernel option, not
a dca-specific constant.  For now, hardwire standalone DCA console
at select code 9 (which is what the old constant expanded to).  Really
should make the way the bootblock console is probed look just like how
the kernel console is probed.
1996-02-26 21:51:25 +00:00
pk
517988b940 Interims:
Comment out `STATINT' checking; this is apparently unreliable on some
ESP revisions.
Deal with target initiated synch re-negotiation.
1996-02-26 14:48:30 +00:00
mycroft
2ce52ae489 Define build programs with ?=', so they can be overridden with makeoptions'. 1996-02-26 02:53:20 +00:00
pk
a3ab0e81da Use CPU-type macros. 1996-02-25 22:03:20 +00:00
pk
3d182fe265 Use CPU-type macros 1996-02-25 21:53:49 +00:00
pk
ba0eb7ea59 Use CPU-type macros. 1996-02-25 21:45:53 +00:00
ragge
1376f92db9 Add routine to convert phys device number to kernel unit number.
Allow to set disklabel area writable.
1996-02-24 21:22:54 +00:00
ragge
f2aaea55c2 Make setroot() grok where we boot from even if it is hp disks. 1996-02-24 21:20:01 +00:00
chopps
6ab6c3037d remove floating point expressions. gen_cvtab.c generates a conversion
table to replace a specific floating point expression in grf_cv.c
1996-02-24 20:13:00 +00:00
ragge
df5a5e9485 Remove __FORK_BRAINDAMAGE, and the reason to why it was there. 1996-02-24 15:17:35 +00:00
briggs
6969bbbc1c Add ns_cksum.c. 1996-02-24 12:59:47 +00:00
chopps
830ceda65d remove generic scsi stuff and use ../../../scsi/files.scsi 1996-02-24 08:59:21 +00:00
chopps
c6768054a9 cleanup, add (commented-out) serial buffer and lev6_defer options 1996-02-24 08:58:37 +00:00
chopps
1bf748f356 use newly allocated ethernet address (fixes #2117) 1996-02-24 07:47:36 +00:00
chopps
d1d39c63d4 remove local strncmp (fixes #2115) 1996-02-24 07:44:06 +00:00
chopps
d22df43756 cast to arg to caddr_t (fixes #2114) 1996-02-24 07:43:14 +00:00
thorpej
fa7bee29a5 Completely rework how the console is probed. Console probing no longer
requires pre-autoconfigured devices.  Fix up some prototypes.  Part of the
long journey towards new config.  (GETTING THERE!)
1996-02-24 00:54:53 +00:00
mark
c1b23518d2 ARM FPE is now secure i.e. user processes cannot use FP instructions
to access kernel memory.
1996-02-23 22:20:43 +00:00
mark
a01675725c Added #ifdef FPE guard. 1996-02-23 18:50:56 +00:00
ragge
2294cbd022 Fixed bug causing DMA to user stack from Massbus disks to give segfaults. 1996-02-23 17:54:33 +00:00
ragge
2aa22f8fbf Allow rewriting of disk label after newfs. 1996-02-23 17:29:01 +00:00
thorpej
1a5d5e25c6 Add an "sw_options" patchable global so that folks can still live life
on the edge (of sw DMA uncertainty) with pre-built kernels.
1996-02-23 16:29:34 +00:00
briggs
568f862aeb PR 2111: Do not update system clock until we can keep more accurate time. 1996-02-23 12:40:37 +00:00
thorpej
ef3500b579 Attempt to work around a hardware bug that screws up DMA on the 4/100.
Apparently, some early 4/100 DMA controllers do illegal memory access on
large ( >= NBPG ) transfers at the end of the transfer.  This appears
as SI_CSR_DMA_BUS_ERR in the csr.  To work around this, we simply
transfer the (up to 3) missing bytes from the bpr.  We were doing this
anyway, so the work-around is to ignore the bus error.

BUT!  I goofed when I implemented the "left-over byte" code for the sw!
It *should* be correct now.  Keep metrics (acceeible via DDB) on the number
of 1, 2, and 3 byte clean-ups, as well as the number of "clean" transfers,
just so we can get a clearer picture.

Thanks to Andrew Gillham <gillham@whirlpool.com> for noticing this!
1996-02-23 07:24:45 +00:00
scottr
738faf922f Add ^^ and ^_ codes to default keyboard layout 1996-02-23 05:43:48 +00:00
gwr
946696f064 Add m68k/db_memrw.c 1996-02-22 23:35:07 +00:00
mycroft
291267e40c Implement SDEV_AUTOSAVE. 1996-02-22 23:35:04 +00:00
mark
905de8df55 Remove prototype for strcmp() as this is in libkern.h 1996-02-22 23:31:51 +00:00
mark
c3833aaabe Opps, what was a delay() prototype doing here. 1996-02-22 23:25:10 +00:00
gwr
19d5694f93 Remove the hack that faked up an "ssp" value. It is now up to
locore.s to put the right sp in the frame.  Also move memory
access code into db_memrw.c so it can be taken separately.
1996-02-22 23:23:23 +00:00
mark
88be357d42 Fixed declaration of a debugging variable. 1996-02-22 23:03:44 +00:00
mark
7b9c8753a7 Added #ifdef guards round the FPE initialisation calls. 1996-02-22 22:56:16 +00:00
mark
66198928f8 Fixed several function declarations. 1996-02-22 22:51:14 +00:00
mark
2c74bc8511 Removed some dead code and fixed several function declarations. 1996-02-22 22:48:05 +00:00
mark
f266edf8b8 Default to running an FPA at full speed. Updated delay() to take an
unsigned int.
1996-02-22 22:44:58 +00:00
mark
9a3e71626d Fixed a little bug that zeroed the first couple of words of the symbol
table when the bss is zeroed.
1996-02-22 22:41:31 +00:00
mark
80684b67bc Fixed registration of the symbol table. 1996-02-22 22:38:48 +00:00
mark
6a3087958a Add #ifdef _LOCORE round delay() prototype and move DELAY macro
to param.h as well.
1996-02-22 22:21:55 +00:00
pk
2f3ad94f8d An #ifndef _LOCORE to make this file safe to include in locore.s.
Introduce a couple of `CPU-type' helper macros to reduce the preprocessor
tangos in many a source file.
1996-02-22 21:59:08 +00:00
leo
db7d722c4b A bit of reshuffling. Also some stricter prototyping. 1996-02-22 21:07:05 +00:00
mark
9777b1173f Thought I had already removed this ... Junk file that got checked in
due to finger trouble.
1996-02-22 17:46:24 +00:00
pk
e259a02425 Correct some prototypes. 1996-02-22 15:04:07 +00:00
scottr
a7daa2d931 - Clean up DEBUG code.
- Setting the "monitor BSY" flag for polled PDMA is non-optimal.  The
  polled requests generate an interrupt that isn't serviced until the
  command has been cleared from the queue.
1996-02-22 14:31:26 +00:00
leo
c9dfd5cb44 First bunch of changes due to stricter prototype checking. 1996-02-22 10:10:44 +00:00
thorpej
c86505a6a5 If we get a transfer with the SCSI_POLL flag set, don't use DVMA. We
only get these during autoconfiguration and during crash dumps.  During
autoconfiguration, the transfers are small enough that DVMA won't be used
anyway.  However, using DVMA during a crash dump can be dangerous,
depending on the nature of the panic, so we avoid it.
1996-02-22 07:25:05 +00:00
thorpej
2f132eb5e7 Bring in Gordon's fix from the sun3 port:
Correct the DMA transfer count when the target disconnects before
	the whole transfer is completed.  (Affects VME writes)
	Reselect now works on the VME si board!
1996-02-22 07:14:53 +00:00
thorpej
a246f6c835 Fixup some RCS ids. 1996-02-22 06:50:49 +00:00
scottr
5be12dbfc8 Move the speaker driver to 'new' config. (Closes PR 1361, from Rafal Boni) 1996-02-22 05:53:16 +00:00
gwr
3700dbe324 Correct the DMA transfer count when the target disconnects before
the whole transfer is completed.  (Affects VME writes)
Reselect now works on the VME si board!
1996-02-22 03:22:52 +00:00
scottr
89179744bd Use unsigned variables to calibrate delay_factor. 1996-02-22 02:04:14 +00:00
pk
66fedbbe19 Correct format in a printf(). 1996-02-21 10:21:14 +00:00
chuck
f63dd5fef2 sync with sparc version:
minor clean up: revise locations of disk_busy/disk_unbusy calls to match xd.c
1996-02-21 03:40:39 +00:00
chuck
adeed1d823 minor clean up: revise locations of disk_busy/disk_unbusy calls to match xd.c 1996-02-21 03:36:51 +00:00
gwr
9daf57454e use phys_map for DVMA like the sparc 1996-02-20 22:05:32 +00:00
gwr
dfdd60a3d1 keep static symbols 1996-02-20 22:03:56 +00:00
gwr
b80de84521 kill SCSIDEBUG 1996-02-20 22:03:20 +00:00
gwr
e3e5c394ae Oh. Now that size is unsigned, (size >= 0) is always true. 1996-02-20 02:42:55 +00:00
scottr
5fd93a11ca Clear interrupt before enabling in calibrate_delay() (from John P. Wittkoski) 1996-02-19 21:40:48 +00:00
pk
b9de283ae6 Fix typo; pointed out by jtk. 1996-02-19 10:30:09 +00:00
pk
9b46365465 Adapt to changed kernel data structures (PR#2100). 1996-02-19 09:46:32 +00:00
leo
dc321cad51 New disklabel handling code (Waldi Ravens).
These are the final (?) modifications to the layout of the NetBSD/Atari
bootblock. The bootblock handling can be made backwards compatible using
the right config options (COMPAT_11 + DISKLABEL_AHDI).
1996-02-19 09:05:31 +00:00
scottr
8fe7b2bbb7 Be a bit more careful when setting up the timer for calibrating delay(). 1996-02-19 05:20:54 +00:00
briggs
ab3f741911 Update to latest Atari driver, but with some local modifications. 1996-02-19 02:51:03 +00:00
thorpej
a9012450ec Fix bug in bwtwounblank() ... didn't have code to enable video on sun4/200
obio framebuffer.  Noticed when my 4/260 dropped into DDB and the screen
didn't unblank.  Pull all of the video enable/disable into functions so
this mishap doesn't happen again.
1996-02-19 00:15:46 +00:00
mycroft
2b9c3e10b9 Add SCSI scanner device. 1996-02-18 22:57:54 +00:00
mycroft
f9596bfc43 Use the same timing hacks as in pccons for the keyboard. 1996-02-18 22:49:12 +00:00
mycroft
0e335a2150 Move the DDB initialization later. 1996-02-18 22:44:27 +00:00
pk
a5ea7547d2 Correct timetochip() prototype.
Cleanup microtime() a bit.
1996-02-18 15:38:41 +00:00
mycroft
d1bae2700f Add the obligatory copyright notice. 1996-02-18 13:01:05 +00:00
briggs
2efbb04ae0 Make delay() match prototype. 1996-02-17 19:23:03 +00:00
ragge
aeaef139aa Console TU58 device driver for 11/750 added.
It cannot write tapes yes, but reading works OK.
1996-02-17 18:48:53 +00:00
ragge
90b84d2da5 Add standalone driver for TU58 (DECtape II). Now initial installation
from TU58 on 11/750 is possible.
Change types on pte pointers, due to the change of pte's from
int to struct pte.
1996-02-17 18:23:18 +00:00
ragge
5025b0f9c9 Definition file for RSP (Radial Serial Protocol) used by DECtape II. 1996-02-17 18:14:50 +00:00
briggs
f851e3e8b3 Move spl stuff from param.h to psl.h. Prototype delay() in param.h. 1996-02-17 14:50:40 +00:00
pk
1a62c0b31b delay() takes an unsigned int; get the code to match. 1996-02-17 09:47:48 +00:00
pk
1caa80a432 Bring prototypes into scope.
Fix a few bogus `return's.
1996-02-17 00:03:17 +00:00
gwr
b3547c4296 New handlers for kernel trace and breakpoint traps. These allow
the kernel debugger (ddb or kgdb) to play with the stack pointer.
1996-02-16 23:36:52 +00:00
gwr
7dff812d6e prototype fixes 1996-02-16 23:32:00 +00:00
mark
bfad88d38d Added prototype declaration of delay(). 1996-02-16 23:29:45 +00:00
pk
f1518de67c delay() prototype. 1996-02-16 22:13:34 +00:00
pk
cdb37b19d3 Account for the fact that `clockreg' might not be page-aligned.
Misc prototype goo.
1996-02-16 22:12:13 +00:00
gwr
c59b002704 Sync. with sparc version, and fix some cosmetic nits... 1996-02-16 20:36:11 +00:00
gwr
9433112204 Have <sys/param.h> so no need for <sys/types.h> 1996-02-16 20:33:27 +00:00
gwr
1c0f939eba Fix comment 1996-02-16 20:18:51 +00:00
gwr
b49f01b2ce Fix comments 1996-02-16 20:17:58 +00:00
gwr
7b4335f9db Moved functions for debugger memory access to db_memrw.c
so they can be pulled in for either ddb and/or kgdb.
1996-02-16 20:08:44 +00:00
gwr
5cb4cacff1 Add some things needed by KGDB 1996-02-16 20:04:36 +00:00
gwr
49b1d84e94 Resurrecting db_memrw.c to hold some code shared by ddb and kgdb. 1996-02-16 19:11:27 +00:00
gwr
5404ccfbd7 Improved delay() implementation with lower overhead,
makes very short delays much more accurate.
1996-02-16 18:06:11 +00:00
gwr
bcfac202c8 No longer need delay2us(), just use delay(2) 1996-02-16 18:00:33 +00:00
mark
f741f471f6 Added new routine for polling the keyboard. 1996-02-15 23:24:44 +00:00
mark
7e883ebf5b Fixed kernel panic when the debugger called cngetc(). 1996-02-15 22:54:45 +00:00
mark
23d71d4d59 Fixed undefined instruction handler chaining. The FPE will now correctly
pass on an undefined instruction if it was not an FP instruction.
1996-02-15 22:45:21 +00:00
mark
ab9201ff05 Replacement for armfpe.c. This is much nicer. 1996-02-15 22:44:31 +00:00
mark
1f4ced2016 armfpe.c was messy. Removing it in and replacing its function with
armfpe.s
1996-02-15 22:42:17 +00:00
mark
b5acab13ca Added files for machine specific debugger code
armfpe.c replaced with armfpe.s
1996-02-15 22:40:08 +00:00
mark
6f2a81d3e1 Initial commit of the machine dependant in-kernel debugger code. 1996-02-15 22:37:13 +00:00
mark
63b7c56cb6 Added setjmp and longjmp routines for the debugger. 1996-02-15 22:15:21 +00:00
mark
b5a6e0bbf9 Added initialisation hooks for DDB. 1996-02-15 22:07:11 +00:00
mark
443bbc1025 Fixed disassembly of LDR & STR instructions, shifts by a register are
not allowed and count as undefined instructions.
1996-02-15 22:05:20 +00:00
mark
f69e31fcc1 Initial commit of the machine specific header for the in-kernel
debugger.
1996-02-15 21:54:30 +00:00
mark
f134e05316 Fixed performance problems caused by the ring buffer becoming flodded when
multiple packets were being received due to not flushing newly received
packets from the ring buffer between receiving an interupt and pulling
in the packets.
1996-02-15 21:48:59 +00:00
mark
5ef42fccf7 Removed debug printing from lpt interrupt routine. 1996-02-15 21:33:52 +00:00
phil
a3a96d6af3 Another tweek to support libcompat. 1996-02-15 20:19:48 +00:00
jonathan
ab3b20faba Remove the compile-time conditionalization for either CFB or SFB,
based on "#ifdef MELLON":  examine the framebuffer dimensions in the
fb softc, and initialize the x-axis offset appropriately.

User-level changes to (e.g.) an Xserver are still needed to work
on an SFB.
1996-02-15 19:18:22 +00:00
jonathan
d25690e30a Propagate changes from cfb driver to not require "needs-count" to other
pmax framebuffer drivers.
1996-02-15 19:13:08 +00:00
phil
2afc843cce change _insque and _remque to match the prototypes in sys/systm.h. 1996-02-15 08:39:27 +00:00
phil
5e7b18feac Catch up with changes in the libkern and libcompat get $S ...
Comment out ns_cksum.c.
1996-02-15 08:37:56 +00:00
gwr
64a13b9a7b Remove ns_cksum.c (now in sys/conf/files) 1996-02-14 15:59:57 +00:00
briggs
946dc72362 Get d_npartitions right. 1996-02-14 14:20:54 +00:00
leo
7992289e54 Fix unterminated comment. 1996-02-14 08:10:51 +00:00
leo
2708c1593e Oops, should have been updated in conjunction with ncr5380.c . 1996-02-14 08:09:47 +00:00
briggs
ef9b75f679 HZ used to be in Makefile.mac68k... It is 60 on the mac, not 100. 1996-02-14 04:26:38 +00:00
thorpej
94ca9f6aa0 New interrupt handling code. Highlights:
- Interrupt service routines now take a pointer to
	  the device's softc, rather than a unit number.
	- Interrupt handling code in locore.s condensed.  Only
	  remaining "special" handlers are lev0 (spurious),
	  lev1 (HIL; don't ask), lev6 (clock), and lev7 (NMI).
	  Only remaining hard-coded device driver reference in
	  locore is HIL.  (clock doesn't count...)
	- "dcafastservice" eliminated.  DCA driver has new mechanism
	  to guarantee prompt interrupt service at any ipl (not
	  just level 5).
	- Interrupt code pulled out of autoconf.c and machdep.c and
	  placed in new file, isr.c
1996-02-14 02:56:38 +00:00
thorpej
d6f4511690 All interrupt routines (except the HIL; don't ask) now take a pointer
to a softc, rather than a unit number.  Add a "dq_softc" member
to struct devqueue; this is a temporary measure until the
dma/controller/device callback spaghetti is untangled.

YAY!  No more need for dcafastservice!

HIL: squish instances of "(void) splhil()" and "(void) spl0();".
1996-02-14 02:43:54 +00:00
thorpej
c88b047836 Compile the new interrupt handling code. 1996-02-14 02:33:25 +00:00
pk
da1402dcb7 Eliminate <setjmp.h>. 1996-02-14 01:03:17 +00:00
pk
fe9d17199a If `cold' simply halt the machine in boot(). Note, this still leaves a window
where vfs_shutdown() and sync() can be called prematurely.
1996-02-13 23:59:02 +00:00
mark
6de3d0fb2e Replaced missing $ on one of the mkdep lines. 1996-02-13 23:29:14 +00:00
pk
54bd5c6954 Fix ANSI prototype goof (from Openbsd).
Add explicit return type to most functions.
V3 PROM console support.
1996-02-13 22:49:48 +00:00
pk
773f74b60d Change some caddr_t's to void *'s. 1996-02-13 22:43:33 +00:00
pk
58cd67c20d Make sure we assign a value to variables we use.
Don't express size of NVRAM in terms of machine page size.
1996-02-13 22:38:25 +00:00
gwr
8b686f43c0 machdep.c 1996-02-13 19:40:22 +00:00
gwr
243011c19d pass correct type to setjmp 1996-02-13 19:39:08 +00:00
jonathan
a5c3ac2538 Allocate a single static colourmap array for aglass-tty consle
framebuffer and malloc() all others.  Remove old-config unit-number checks.

This driver no longer requires the "needs_count" flag.
1996-02-13 18:27:28 +00:00
jonathan
1c03bcb897 Finish converting MAXINE dtop driver to use new-style config.
The dtop driver no longer requires the "needs-count" flag.

Fix a panic in boot-time interrupt establish. The "generic" pmax
interrupt-establish  code assumes that all interrupt args are new-config
device structs accessed via  a struct cfdriver.   Make it so.
1996-02-13 18:23:46 +00:00
gwr
9d2186505e Use vprintf where it was intended, and use __dead 1996-02-13 18:06:10 +00:00
ragge
2395bee98d Much faster copyin/copyout subroutines, written by Ken Wellsch.
Improved user-space network I/O (like ftp) with about 1.7 times!
1996-02-13 17:45:32 +00:00
gwr
15dae05834 Oops, label_t does not have implicit pointer type like jmp_buf 1996-02-13 17:34:46 +00:00
gwr
89c2f6dc04 now in sys/dev 1996-02-13 17:29:15 +00:00
gwr
9e07977e11 no longer useful 1996-02-13 17:27:41 +00:00
christos
8a8e1a4d94 caddt_t -> caddr_t 1996-02-13 17:13:22 +00:00
christos
cbb1d18e70 - Fix setcxsegmap prototype.
- Cast ?TO? macros to NULL to avoid compiler warnings
1996-02-13 17:04:58 +00:00
mycroft
27a9f5bd9c Fix #include syntax. 1996-02-13 06:56:58 +00:00
christos
b3666297b1 Oops, meant to delete the declaration completely. 1996-02-12 21:28:18 +00:00
christos
a9996b4780 pmap_page_index returns int 1996-02-12 21:27:32 +00:00
christos
3306495d82 delete pmap_page_index declaration; now in <vm/pmap.h> 1996-02-12 21:25:18 +00:00
christos
44aab5f4d3 make pmap_page_index return int 1996-02-12 21:21:15 +00:00
christos
bf49f190a7 change pmap_page_index to return int 1996-02-12 21:19:13 +00:00
christos
967dc9fa87 make pmap_page_index return int instead of u_long 1996-02-12 21:15:37 +00:00
christos
4d234d08d8 Move pmap_page_index declaration to <vm/pmap.h> 1996-02-12 21:12:29 +00:00
christos
47058c3660 make pmap_page_index() return a signed int. 1996-02-12 21:11:20 +00:00
pk
3237aa23d2 Avoid compiler warning. 1996-02-12 21:05:18 +00:00
pk
d5ddbf99ab Separate DMA and SCSI routines more. 1996-02-12 15:59:51 +00:00
gwr
2e06ee143c Avoid 3/50 H/W bug (I hope) 1996-02-12 05:19:09 +00:00
gwr
c0a9716f6e Fix address wrap in bus_mapin 1996-02-12 05:14:19 +00:00
briggs
9401e46ed0 Change readdisklabel to check block 0 of the disk for a Macintosh magic
number before attempting to load the Macintosh partition info.  If the
first 32-bits of block 0 contain the BSD disklable magic number, treat
it as a NetBSD disklabel.
When loading the Macintosh partition map, check the first 32 partitions
for the root, usr, and swap partitions--instead of the first 8.  Still
only allows 8 total partitions for NetBSD use.
1996-02-11 22:31:47 +00:00
briggs
d03a91c75f KNF-ified by Scott Reynolds a long time ago. 1996-02-11 15:23:19 +00:00
ragge
183d234ae4 Add prototypes. 1996-02-11 13:47:55 +00:00
ragge
4cafd3d7d2 PAGE_SIZE should be PAGE_SHIFT. Really ugly bug! 1996-02-11 13:46:23 +00:00
ragge
26d151d2bb Prototype for delay(). 1996-02-11 13:45:37 +00:00
ragge
dfecf19e9f Fix cpu_sysctl() arguments to be like prototype. 1996-02-11 13:43:37 +00:00
ragge
550f120337 Fix things that -O2 broke. Cleanup. 1996-02-11 13:41:35 +00:00
ragge
bb75a13fbb Cleanup & convert to KNF. 1996-02-11 13:39:54 +00:00
ragge
998626f339 Add VAX650, mba, hp, ts. Change uba to be *'ed. 1996-02-11 13:28:25 +00:00
ragge
29719357a6 Remove csralloc(), not usable anymore.
Add ubasetvec() to steal interrupt vectors for device drivers that
need more than one vector. Add prototype for it.
1996-02-11 13:24:50 +00:00
ragge
d2dadd65df register -> volatile in some places, to make it work OK with -O2. 1996-02-11 13:22:30 +00:00
ragge
435182d4bb Device drivers for massbus adapters and massbus disks.
Works with RP04/05/06/07 disks.
1996-02-11 13:19:33 +00:00
leo
35d120d71d Some extra range-tests on the RTC values. 1996-02-11 12:42:19 +00:00
leo
2bbdc4b9c7 Be a bit more carefull when accessing the proc structure on a kernel buserror. 1996-02-11 12:41:25 +00:00
jonathan
a43eb3baa6 Fix v_putc() conflict with the declaration in <sys/systm.h>: remove the
v_putc() declaration and assignment to a temp pointer. The rcons console
initialization longer requires that hack.
1996-02-11 07:14:58 +00:00
briggs
4323ae0307 Remove via_inited, as it is unused. 1996-02-11 01:20:46 +00:00
briggs
6945798b81 Correct ROM vectors for the LC 475. 1996-02-11 01:20:37 +00:00
briggs
ffc19f58b0 Back out last change. Bad karma to initialize the VIA that early. 1996-02-11 01:20:23 +00:00
scottr
0ae8a51904 PETE was pretty useless; SPOT is my own machine, and will better
reflect the status of sbc driver configuration.
1996-02-11 00:17:13 +00:00
scottr
af4f29bcb3 Identical to GENERIC, but uses the `sbc' driver. 1996-02-10 23:42:31 +00:00
scottr
ed73ac3b48 New SCSI driver for Macintosh II family machines, implemented using
the MI 5380 driver.  It has been verified to work on the IIx, IIsi,
and IIci only, but should work with any Macintosh 5380-based SCSI
controller.

  -  This driver is _not_ intended to be a general purpose replacement
     for the `ncrscsi' driver.  It is an alternative for those having
     problems with that driver.
  -  Disconnect/reselect doesn't (yet) work, so don't expect SCSI tape
     or magneto-optical disk drives to function properly.
1996-02-10 23:28:41 +00:00
briggs
01c43471b9 Make a message more verbose for folks who try to boot in 24-bit mode. 1996-02-10 23:12:46 +00:00
leo
8d7918526b Various small fixes. 1996-02-10 22:10:45 +00:00
thorpej
8a6ad45eed In fdcretry(), if we're not using implied seeks, set the state to DOSEEK
rather than SEEKCOMPLETE before retrying the operation.  If implied seeks
are being used, the state is set to DOIO (no change).  This is why I
couldn't reproduce the disk_unbusy() panic on my SS2; it uses implied
seeks.  Patch from John F. Woods <jfw@jfwhome.funhouse.com>
1996-02-10 18:37:36 +00:00
thorpej
d586688437 In fdcretry(), set the state to DOSEEK rather than SEEKCOMPLETE before
retrying the operation.  Fixes disk_unbusy() imbalance and really seems
like the right thing to do in case it was the seek that failed.  Takes
care of PR #1985.  Patch from John F. Woods <jfw@jfwhome.funhouse.com>
1996-02-10 18:31:13 +00:00
christos
45aca3f276 fix _insque and _remque declarations 1996-02-10 00:51:52 +00:00