Commit Graph

6705 Commits

Author SHA1 Message Date
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
christos
c6edd77b23 A few prototype fixes 1996-02-09 23:14:14 +00:00
gwr
f4cc5b017a eliminate setjmp.h 1996-02-09 21:51:39 +00:00
leo
063216ccfd Remove reference to setjmp.h 1996-02-09 20:53:59 +00:00
leo
89bbb8b2fb Catchup with the future. 1996-02-09 20:52:04 +00:00
scottr
b62a5cfd54 When we panic, be a little smarter about whether we need to wait
for the user to hit a key before we reboot.
1996-02-09 18:57:20 +00:00
scottr
41378a47c0 Info from Mike Hibler <mike@cs.utah.edu> indicates that the probable
intent for the value of the C_REL constant was 0xc0.  Testing has turned
up no adverse effect on tape or disk devices, and in fact this change
apparently makes my 9145 tape work as expected. (!)  Closes PRs 1874 and
1971.
1996-02-09 18:00:35 +00:00
mycroft
45e308cd51 Be more verbose when a CPU class is not configured. 1996-02-09 17:15:27 +00:00
scottr
4058c67702 Specify return type for vunmapbuf() 1996-02-09 16:58:40 +00:00
ragge
d24ffd421f Support for ka650, tailored in_cksum and removal of a couple needs-count. 1996-02-09 15:24:18 +00:00
mycroft
db070d4271 Enforce the hierarchy: imp > tty > net > bio, to cater to lame PC devices. 1996-02-09 02:26:00 +00:00
mycroft
753fe3a25a Fix mkdep problems due to missing flags. 1996-02-09 02:21:13 +00:00
chuck
718ac5d246 [import changes from sparc port]
- moved disk_busy() call from xdstrategy() to xdc_startbuf()
        [prevents disk_unbusy panic when disk is loaded (if no
        free IOPBs, xdstrategy() would queue the buffer for pickup
        by xdcintr() but xdcintr() would never call disk_busy().
        xdc_startbuf() is a better place since all bufs are routed
        through here]   problem detected by girish@dworkin.wustl.edu,
        diagnosed and corrected by me.
- move disk_unbusy() call in xdc_remove_iorq() before the call to
        XDC_FREE() [don't want to access a data structure that was just put
        on a free list]
1996-02-08 04:42:57 +00:00
chuck
2accbfeefb - moved disk_busy() call from xdstrategy() to xdc_startbuf()
[prevents disk_unbusy panic when disk is loaded (if no
	free IOPBs, xdstrategy() would queue the buffer for pickup
	by xdcintr() but xdcintr() would never call disk_busy().
	xdc_startbuf() is a better place since all bufs are routed
	through here]   problem detected by girish@dworkin.wustl.edu,
	diagnosed and corrected by me.
- move disk_unbusy() call in xdc_remove_iorq() before the call to
	XDC_FREE() [don't want to access a data structure that was just put
	on a free list]
1996-02-08 04:40:33 +00:00
jonathan
b5c68cb4cd Add serial-console support that works with `new-style' (config.new) autconf
code.  Substantially the same code tested on a 5k/240. Should work on a
5k/1xx.  Not tested on a  MAXINE, where the single unit may break the
PROM-channel-number to driver-channel-number mapping.
1996-02-08 02:26:34 +00:00
mark
b92a2f676a patch from rob black to fix support for 1bpp Xservers. 1996-02-07 19:11:02 +00:00
scottr
3c8605f0f7 Add sbc driver. 1996-02-07 16:34:28 +00:00
thorpej
fa30609066 Protect clearing the Intersil chip's interrupt with splhigh(). If this
gets interrupted (by the higher priority zs hardware, for example),
the clock can come to a dead stop!
1996-02-06 22:59:03 +00:00
pk
d0abefaa36 beq -> be; some assemblers don't know about this alias. 1996-02-06 12:11:15 +00:00
jonathan
4ab4b73b40 Support kernels configured without an ASC (e.g, 3100-only configs) or
without an SII (e.g., TURBOChannel-only configs).  Only the same old,
static, set of old-config devices and old pmax rz/tz drivers is
supported.
1996-02-06 02:13:18 +00:00
pk
52c068d6e6 Be sure to reset the chip when relection fails to prevent corrupting data. 1996-02-06 02:03:46 +00:00
jonathan
f239350d79 Fix braino in (partial) 5100 support: the 5100 is a DS_MIPSMATE, not a
DS_MIPSFAIR.
1996-02-06 01:59:46 +00:00
jonathan
bf52fa8269 The prototyping `fixes' broke vmapbuf() and vunmapbuf(), due to a "sz"
parameter parameters shadowing locals.  Replace vmapbuf() and vunmapbuf()
with the Alpha-port versions, which are cleaner (use round_page(),
trunc_page(), etc.)
1996-02-06 00:31:51 +00:00
jonathan
cb7e6f2e0f Change last argument of ktrsysret() call: pass rval[0], not rval, as
ktrsysret() expects.   Tracing of  rval[1] remains an open problem.
1996-02-06 00:13:04 +00:00
mark
a725f894c6 Added -fno-builtin flag for braindead version of gcc currently used by
the arm32 port.
1996-02-05 23:49:49 +00:00
mark
6b36adcad6 Define TRAPFRAMESIZE to be the size of a trapframe in bytes. 1996-02-05 23:24:50 +00:00
mark
a70b546c49 Added extra comments to help explain what the code is doing. 1996-02-05 22:43:53 +00:00
mark
66e7b4b999 ramdisk boot loading code now condition on RAMDISK_HOOKS being defined. 1996-02-05 21:43:40 +00:00
mark
25aa4f48b1 Updated to used NHYDRABUS to determine if hydrabus device should be
supported.
1996-02-05 21:25:33 +00:00
mark
82a8316c02 cpus can now be attached to hydrabus as well as mainbus. 1996-02-05 21:01:34 +00:00
christos
28eae27187 correct prototype for cpu_fork 1996-02-05 20:33:37 +00:00
mark
ceae6db272 The data abort handler now fixes the base register in co-processor
data transfer instructions that use writeback. i.e. LDC/STC instructions.
Hardware LDF/STF instructions are now correctly handled.
1996-02-05 17:31:33 +00:00
mark
4909105de6 Updated development history 1996-02-05 17:21:31 +00:00
mark
94fa0b2f1b post instruction emulation callback now expects a trapframe structure
to be passed as well as the fp frame.
FPE<->kernel glue code now builds a trapframe structure for passing in
and out of the post instruction emulation callback.
Signal delivery during FP emulation now works correctly.
1996-02-05 16:51:52 +00:00
mark
20c26bade4 Removed redundant debugging text. Minor code tidy ups. 1996-02-05 16:49:01 +00:00
mark
bd04466b08 Configuration files updated to support latest options and devices 1996-02-05 16:34:51 +00:00
jtc
7eb02879b7 Simplify -I's in CFLAGS 1996-02-05 07:42:54 +00:00
christos
2c8314f73c vm prototype changes 1996-02-05 02:06:38 +00:00
christos
684b37e33e vm prototype changes. 1996-02-05 01:59:12 +00:00
jonathan
1f780158bb Redo the locore interrupt counters reported by vmstat -i:
* add a new enum decstation_intr_t to trap.c, naming each instrumented
  interrupt symbolically, and used to index into intrcnt[].  Change the
  model-specific interrupt handlers to use the decstation_intr_t when
  updating interrupt counters.
* add instrumentation to the kmin and maxine interrupt handlers.
* fix a bug that counted each hardclock interrupts on the kn02 twice.

The hardcoded mapping from locore names to units is gross; but these
counters will hopefully be useful in identifying interrupt hot-spots
and PPP problems on the 3MIN.
1996-02-04 20:14:17 +00:00
jonathan
600a82037b A semicolon was missing from the SYSTEM_LD_TAIL stanza that converts
from elf to netbsd a.out, causing the mv to fail; add one.
1996-02-04 07:08:38 +00:00
gwr
b1e9c83633 Quick fix to make this build. More to come... 1996-02-04 06:06:12 +00:00
briggs
674ef2b6f2 sys/types.h -> sys/param.h and remove include of stddef.h. 1996-02-04 02:17:42 +00:00
briggs
592866ff5d sys/types.h -> sys/param.h and remove include of stddef.h. 1996-02-04 02:17:38 +00:00
briggs
2a878c9a3a Move debugging defines, etc. into mac68k5380.c and use them instead of
something similar but different.  Make a few cosmetic changes.
1996-02-03 23:17:53 +00:00
briggs
3d8d566948 New delay() implementation from Scott Reynolds (scottr@edsi.org).
Also some minor rearranging of the VIA initialization (init earlier).
1996-02-03 22:50:22 +00:00
briggs
6b6a46ed2f Implement mac68k_register_via1_t1_irq(). Also, remove via_inited warning. 1996-02-03 22:50:19 +00:00
briggs
d13a039f24 New delay() implementation from Scott Reynolds (scottr@edsi.org).
Also some minor rearranging of the VIA initialization (init earlier).
1996-02-03 22:49:52 +00:00
chuck
623ec41006 Ensure siop_acb alignment via malloc rather than let alignment depend
on the size of MI data structures that come before it in the softc.
Chip will not function properly if alignment is wrong.  (as per OpenBSD)
Detected and fixed by: Chuck Cranor <chuck@ccrc.wustl.edu>
                and Michael L Hitch <osymh@gemini.oscs.montana.edu>
1996-02-03 18:47:07 +00:00
pk
5fd7df3063 Move splbio to level 5. 1996-02-03 16:10:58 +00:00
briggs
20123d5253 O2 breaks on this port. Use -O until we can fix it. 1996-02-03 15:14:39 +00:00
mycroft
fe18cd4ae7 Make sure to pull in the MI code. 1996-02-03 06:38:27 +00:00
mycroft
2f74d151b9 Don't need unistd.h. 1996-02-03 05:45:11 +00:00
mycroft
67eb39bcda Make this compile with `traditional' cpp. 1996-02-03 04:36:01 +00:00
thorpej
996edfa606 Remove bogus "return (0);" in rdmatch() that wiggled its way in uninvited. 1996-02-03 03:00:29 +00:00
mycroft
d5b078f3e6 Clean this up a little, and make it compile with `traditional' cpp. 1996-02-03 01:43:41 +00:00
mycroft
213c4dbb89 Use CPPFLAGS, not COPTS. 1996-02-03 01:23:54 +00:00
mycroft
d6b2d2e00f config.old uses vers.o, not newvers. 1996-02-03 01:17:22 +00:00
mycroft
b6f55847e5 Fix #includes. 1996-02-03 01:05:36 +00:00
mycroft
5bc076e17e Use `-traditional-cpp' when building .s and .S files. 1996-02-03 00:43:50 +00:00
mycroft
aa15cd3f7f Don't need unistd.h. 1996-02-02 23:53:20 +00:00
mycroft
56a63148c6 config.old doesn't grok %SFILES. 1996-02-02 23:49:19 +00:00
mycroft
4f952cf1e7 #ifdef a call to kdb_trap() on DDB. 1996-02-02 23:19:43 +00:00
mycroft
cfefb732a0 Fix type errors. 1996-02-02 22:57:43 +00:00
mark
b32ae66ae6 Ramdisk device now defaults to a size of zero if RAMDISK_SIZE is
undefined.
1996-02-02 20:23:00 +00:00
mycroft
dcd66e9f4d Clone these, and fix many bugs. 1996-02-02 20:08:17 +00:00
mycroft
2dfbe4f961 Don't define _LOCORE here. 1996-02-02 20:05:08 +00:00
scottr
c0f37b4d05 Use DISKUNIT()/DISKPART() from <sys/disklabel.h> instead of
our own home-grown versions.
1996-02-02 19:50:26 +00:00
mycroft
9db20bf150 Don't define _KERNEL here. 1996-02-02 19:42:08 +00:00
mycroft
5d668ff961 ASSEMBLER -> _LOCORE 1996-02-02 19:08:33 +00:00
mycroft
0103e26fd8 Fix #includes. 1996-02-02 18:59:16 +00:00
mycroft
9d9a70a5a2 Fix #includes. 1996-02-02 18:05:36 +00:00
briggs
5336dade8e Force the talley counters to be read when we get the interrupt. GCC was
nicely optimizing the reads out for us.  Kudos for this one go to
Steven R. Weiss <srw@hvcn.org>.
1996-02-02 15:30:56 +00:00
mycroft
cec913603e Don't special-case conf.c. 1996-02-02 13:38:05 +00:00
mycroft
f3bbe0e453 Turn off a few things. 1996-02-02 09:09:39 +00:00
mycroft
fc9d84fb46 assym.s -> assym.h
(Some ports did this already.)
1996-02-02 02:34:09 +00:00
mycroft
ac03d03239 assym.s -> assym.h
(Some ports did this already.)
1996-02-02 02:33:26 +00:00
mark
6b8930c21c Fixed the panic in the terminal code caused by a mode change ioctl on
the vidcvideo device.
1996-02-01 23:50:20 +00:00
mycroft
88e512b693 LOCORE -> _LOCORE 1996-02-01 22:28:24 +00:00
briggs
af9bcab2ce Clean up and comment a bit. 1996-02-01 03:40:26 +00:00
phil
5d2a046ccb Update makefile to match recent pc532 MD changes, new config file. 1996-02-01 03:00:57 +00:00
phil
54df7b2130 Updating DELAY and scncnputc. 1996-02-01 02:37:15 +00:00
phil
63d5234cbf Integration of many changes from Matthias Pfaller plus some of mine.
Several had:  _MACHINE_ICU_H_ -> _NS32K_ICU_H_

cpu.h		* Removed definition of cpu_swapout.
		* Added definition of cpu_wait.

frame.h		* added struct switchframe

icu.h		* tweeked ints_off

param.h		* More derived constants.
		* Alot of things taken over from i386/include/param.h.

pcb.h		* Removed pcb_flags (was unused) and pcb_pl.
		  The current priority level is now stored
		  in the switch frame by cpu_switch.

pmap.h		* Taken over from i386/include/pmap.h.

psl.h		* Add USERMODE definition

trap.h		* T_INTERRUPT -> T_AST

types.h		* Remove __FORK_BRAINDAMAGE

vmparam.h	* Taken over from i386/include/vmparam.h.
		  Added definition of INTSTACK.
1996-02-01 00:03:25 +00:00
jonathan
10a140d34d Rename SCSI phase manifest constants from ASC_PHASE_* to SCSI_PHASE_*,
as the newer version of the Mach 53c94 driver does.
1996-01-31 23:38:55 +00:00
mark
0705e7dfd1 Initial commit of the NetBSD/arm32 port. 1996-01-31 23:24:54 +00:00
mark
386ad2ff0f Initial commit of the NetBSD/arm32 port. 1996-01-31 23:14:53 +00:00
phil
ccbcfbef91 Integration of many changes done by Matthias Pfaller with a few by me.
clock.c		* Removed definition of DELAY.

intr.c		* Removed an unneeded $Id:....$

locore.s	* Moved some of the low level initialization
		  code to machdep.c.
		* Defined proc_trampoline.
		* Changed sigcode to pass scp to SYS_sigreturn.
		* Changed copyin/copyout/fu*/su* to take advantage
		  of the ns32532's dual address instructions.
		* Recoded copyinstr/copyoutstr/copystr in assembler.
		* Added a new and faster version of bzero.
		  This makes bzero.s unnecessary.
		* Defined suswintr to make profiling work.
		* Recoded cpu_switch modelled after the i386
		  version of cpu_switch.
		* Added support for lazy fpu state restore to
		  cpu_switch.
		* Recoded trap handling code to be more readable.
		* Added experimental code for single cacheline
		  invalidation.

machdep.c	* Copied over cpu_startup from i386/i386/machdep.c.
		* Changed sys_sigreturn to take advantage of the
		  argument passed by the trampoline code.
		* Changed boot to call doshutdownhooks and to store
		  machine state in case of a panic.
		* Changed setregs to clear the fpu registers.
		* Recoded low_level_init. It's now called init532.
		* cpu_reset: New function, resets the machine.

trap.c		* Pulled over from i386/i386/trap.c.
		* Added support for lazy saved/restored fpu state.

vm_machdep.c	* Removed kstack double mapping by pulling over alot
		  of code from i386/i386/vm_machdep.c.
		* Added support for lazy saved/restored fpu state.
		* Moved freeing of process resources from cpu_wait
		  to cpu_exit.
		* Pulled over cpu_coredump, pagemove, vmapbuf and
		  vunmapbuf from i386/i386/vm_machdep.c.

pmap.c		* Pulled over from i386/i386/pmap.c.

genassym.c	* Removed old and unused definitions, added new ones.

sys_machdep.c	* Moved sys_sysarch from machdep.c to sys_machdep.c.

process_machdep.c	* Changed to work without ktack double mapping.
			* Changed to work with lazy saved/restored fpu state.
1996-01-31 21:33:42 +00:00
gwr
6cc7bd528f Oops, didn't notice those type warnings... 1996-01-31 17:20:39 +00:00
jonathan
e229c8d175 Resolve pmax and alpha IOCTL asic driver differences, pass 1:
Rename the ioctl asic register and slot macros from ASIC_<xxx> to
IOASIC_<xxx>, to be compatible with the machine-indpendent names in
sys/dev/tc/ioasicvar.h.  The pmax code still uses
sys/arch/pmax/pmax/asic.h, as some of the registers and offsets
defined there are not yet defined in sys/dev/tc/ioasicvar.h.

Rename the ioctl asic base-address pointer from `asic_base' to `ioasic_base'.
1996-01-31 08:46:42 +00:00
mycroft
b050cf3d61 Allocate the GDT area in a different way. 1996-01-31 03:13:07 +00:00
jonathan
219b1ef218 Re-write Decstation turbochannel autoconfiguration code to use the machine-
independent TC support in sys/dev/tc/tc.c and sys/dev/tc/tcvar.h:
  * Change the tc autoconfiguration tables to use a struct tc_attach_args
    instead of the ad-hoc structure.
  * Change all pmax device drivers to use a `struct confargs' that's
    assignment-compatible with  sys/dev/tc/tcvar.h `struct tcdev_attach_args'.
    Devices that can be present on a TC or as ioctl asic/mainbus builtins
    use  the same `struct confargs'.
  * Eliminate the `BUS_CVTADDR()' macros which the pmax port inherited from
    an old, now-obsolete sys/arch/alpha snapshot.

  * Update the comments and debugging code in interrupt handlers to
    be consistent with the machine-independent TC support.

Other commits that overlap the same source files include: re-enabling
clock-tick interrupts earlier, and counting hardclock ticks for vmstat -i.
1996-01-31 02:53:39 +00:00
thorpej
134b410457 Use the common sigreturn routine. 1996-01-31 02:26:05 +00:00
thorpej
a11ff465eb Factor out the common (to all m68k ports) sigreturn routine. 1996-01-31 02:22:15 +00:00
scottr
25879b675b Resolve return type conflict for microtime(); closes PR #1835. 1996-01-30 23:15:01 +00:00
gwr
f2e57c6dc8 Eliminate remaining direct references to the z8530 chip
to allow the MD access functions to do delays, etc.
1996-01-30 22:34:52 +00:00
thorpej
90a0b784de Build memcpy.c 1996-01-30 19:47:32 +00:00
thorpej
abe8231c4f Catch up with changes to libsa. 1996-01-30 19:09:09 +00:00
thorpej
b97cbfb606 Implement DIOCLOCK. It's a no-op in this driver. 1996-01-30 18:31:05 +00:00
jonathan
4c0067c40b Remove config.old files for pmax. They should have been removed before
the NetBSD-1.1 release, as they have not worked or been supported for
some time.
1996-01-30 05:18:55 +00:00
jonathan
05ef657fb8 Some newer scsi-2 or scsi-3 drives reportedly return more data in
response to an inquiry command than was allocated here.  Add 1024
bytes extra padding, just to be safe.
1996-01-30 04:47:16 +00:00
gwr
0d44b7f3fe Include m68k/fpe/files.fpe for FPU emulation support (fixes PR 1773) 1996-01-30 00:35:28 +00:00
gwr
57664ea85c Oops, did not mean to check that one in... 1996-01-29 23:59:04 +00:00
gwr
38c7f668a2 Clean-up open/close logic of "net" device. Fixes PR 1726 1996-01-29 23:54:14 +00:00
gwr
4541c9f5c6 Work-around sensitivity to DVMA address in PROM revision 2.6 so the
netboot program will work on Sun3/50 machines.  Also fixes PR 1928.
1996-01-29 23:41:03 +00:00
jonathan
5ea2ec2357 Re-write Decstation turbochannel autoconfiguration code to use the machine-
independent TC support in sys/dev/tc/tc.c and sys/dev/tc/tcvar.h:
  * Change the tc autoconfiguration tables to use a struct tc_attach_args
    instead of the ad-hoc structure.
  * Change all pmax device drivers to use a `struct confargs' that's
    assignment-compatible with  sys/dev/tc/tcvar.h `struct tcdev_attach_args'.
    Devices that can be present on a TC or as ioctl asic/mainbus builtins
    use  the same `struct confargs'.
  * Eliminate the `BUS_CVTADDR()' macros which the pmax port inherited from
    an old, now-obsolete sys/arch/alpha snapshot.

  * Update the comments and debugging code in interrupt handlers to
    be consistent with the machine-independent TC support.

Other commits that overlap the same source files include: re-enabling
clock-tick interrupts earlier, and counting hardclock ticks for vmstat -i.
1996-01-29 22:52:15 +00:00
briggs
cde62d494a Fix for delay(usec) for small usec. From Scott Reynolds <scottr@edsi.org>. 1996-01-29 04:10:00 +00:00
chopps
702c1321e2 add swedish keyboard support by Stefan Pedersen 1996-01-28 20:19:51 +00:00
chopps
79964e580d debug flag to as is uneeded and unsupported #1948 1996-01-28 20:09:08 +00:00
chopps
d00a79e34d fix bounds check #1939 1996-01-28 20:06:15 +00:00
chopps
2684692a5a add check for "A4000 bonus" (small b) 1996-01-28 20:01:10 +00:00
chopps
ab86728e62 aftsc uses afsc.c #1976 1996-01-28 19:57:47 +00:00
chopps
9819a7c27e make sure master enable is set #1920 1996-01-28 19:48:39 +00:00
chopps
b59cfad66c use dma_cachectl instead of cachectl 1996-01-28 19:43:34 +00:00
chopps
a802a2ef07 add UNION/UMAPFS accepts CR 1890 1996-01-28 19:37:42 +00:00
chopps
f14299b866 fix loading of 0 to intended value of 256. closes 1871 1996-01-28 19:29:15 +00:00
chopps
225c9b3965 fix typo closes 1978 1996-01-28 19:23:24 +00:00
chopps
6bed5b0c0c applied patch from 1811 which unifies mode support across gfx boards. 1996-01-28 19:19:05 +00:00
chopps
e717f326d5 remove MAXPARTITIONS, closes #1923 1996-01-28 19:12:46 +00:00
ragge
348b7f3d87 Remove PSL_ALLCC definition. Was commented out anyway. 1996-01-28 12:32:21 +00:00
ragge
1bc66055fb Add uvtopte() macro, to get user pte address easy. 1996-01-28 12:31:24 +00:00
ragge
7a489b8529 Change struct trapframe to also contain stackpointer. 1996-01-28 12:30:13 +00:00
ragge
84c675c572 Change void* to struct pcb* for page table pointers. 1996-01-28 12:27:19 +00:00
ragge
2c8ca06774 Be able to handle debugger traps from kernel. 1996-01-28 12:24:33 +00:00
ragge
27a6a01b3a Save USP when trapping from userspace.
Change register save structs according to this.
Be compatible with the way old init passes flags (in registers).
1996-01-28 12:22:49 +00:00
ragge
d8e53d2958 Fix bug causing the kernel symbol table not to be loaded.
Save all registers on panic().
1996-01-28 12:18:06 +00:00
ragge
2b9d8d6e77 Take away unneccessary code from i386? port. 1996-01-28 12:14:48 +00:00
ragge
57d63d564f Fix bug causing ^[ to be sent when returning from DDB. 1996-01-28 12:11:57 +00:00
ragge
8cf6ff80bd Make use of the new disk struct when attaching disks.
Don't rely on UBA's; we do not always want them.
1996-01-28 12:09:34 +00:00
ragge
f13a276ec8 Handle DDB traps different when we get a panic.
It's more interesting to know the CPU state when panic was called
than in the Debugger() function.
1996-01-28 12:05:55 +00:00
ragge
21ddc94849 bpf, vnd & tun added. 1996-01-28 11:46:54 +00:00
ragge
a48ecd6750 A 'printf' describing CPU type was forgotten. 1996-01-28 11:45:07 +00:00
ragge
9a83d85375 DDB disassembly is fixed and now works good. Code written and
contributed to Ludd by Bertram Barth.
1996-01-28 11:31:25 +00:00
phil
2ec27d30fe Clean up of assembly files. 1996-01-26 08:11:46 +00:00
phil
9b68d7d99e Clean up of some assembly files. 1996-01-26 08:10:10 +00:00
phil
6bffbf4ca9 New file needed for Matthias Pfaller rework of pmap.c to sync it with
the 386 version.
1996-01-26 08:06:40 +00:00
phil
45d22f23ed New file from Matthias Pfaller. 1996-01-26 05:37:16 +00:00
phil
44f4a2f5e6 Update to Matthias' current state. 1996-01-26 05:12:58 +00:00
phil
2a13a30e5e Update from Matthias Pfaller. (Small tweeks.) 1996-01-26 05:04:12 +00:00
phil
49d37e3c5d Update to current state. No major changes. 1996-01-25 19:50:39 +00:00
phil
85178bcc1b Update a bit. 1996-01-25 19:36:36 +00:00
gwr
f261ae08c7 Update for the new z8530 driver 1996-01-24 22:39:48 +00:00
gwr
16e4c58c47 file z8530var.h was initially added on branch netbsd-1-1. 1996-01-24 21:13:22 +00:00
gwr
427556aeab Move struct definitions to MD code. 1996-01-24 19:52:57 +00:00
gwr
c2c1c1b11a Move struct definitions to MD code. 1996-01-24 19:21:40 +00:00
briggs
229c36d3dd Patch a few of the holes in the machine-dependent part of this driver.
Sync the m.i. part with the Atari.
1996-01-24 06:02:06 +00:00
briggs
1fd44da3df Change an &= to an & -- the former stopped working for some reason
that I need to delve into when I have time.
1996-01-24 05:52:58 +00:00
leo
ae2b8aaf1f STANDALONE -> TOSTOOLS 1996-01-23 20:34:07 +00:00
leo
1481622cdb Fixes 'hanging' problem when closing a serial port. 1996-01-23 09:35:15 +00:00
scottr
f9418ec605 Eliminate unnecessary goto and labels, and other minor cleanup. 1996-01-23 00:28:09 +00:00
leo
88a221b7fb BBSIZE -> BBMINSIZE 1996-01-20 13:54:46 +00:00
leo
567396ea78 Use symbolic constants for ATARI_ANYCPU instead of dropping in a hex-value. 1996-01-19 13:54:12 +00:00
leo
a946c7f421 Special handling for 2 and 4 byte sized transfers. The makes accessing
device registers work in a sane way. (gwr)
1996-01-19 13:51:11 +00:00
leo
58758809e5 - Remove FPU defines, the FPU-type is no longer determined by the loader.
- Add some forgotten CPU-types (Waldi Ravens).
1996-01-19 13:46:56 +00:00
thorpej
cd17a6b3af Remove all the old STACKCHECK stuff; it hasn't been used for a long time. 1996-01-16 22:24:28 +00:00
thorpej
353f4388fb Use a shutdownhook to make sure the drive motor is turned off
at halt/reboot time, as suggested by Perry Metzger.
1996-01-16 19:35:06 +00:00
leo
cb560ce386 Move things around a bit to make all names fit into the [8.3] namespace
of msdosfs.
1996-01-16 15:14:53 +00:00
jonathan
764d54390c SAdd support for Sun-style framebuffer ioctl()s, as used by other NetBSD
[programs, notably /usr/sbin/screenblank.
1996-01-16 02:43:01 +00:00
jonathan
56ffba38d4 Fix how the cmap entries are updated, as contributed by Arne Juul
(arnej@pvv.unit.no). Xservers should now be able to set colours correctly.
1996-01-16 02:40:21 +00:00
thorpej
18960b616f Call disk_busy() a bit earlier in case an exceptional condition causes
fddone() (and thus disk_unbusy()) to be called directly from fdstart().
Pointed out by Ezra Story <ezy@panix.com>.
1996-01-15 21:53:50 +00:00
briggs
af016e6224 Updates from Kelly Campbell <camk@ksu.ksu.edu> for some ROM addresses. 1996-01-15 12:29:48 +00:00
phil
3789c88f95 Add doshutdownhooks(). 1996-01-15 05:30:47 +00:00
thorpej
2c5d55d959 Use ${BINOWN} and ${BINGRP} per Arne H. Juul <arnej@ikke.idt.unit.no>
in PR #705.
1996-01-15 01:44:52 +00:00
thorpej
1eff435896 Use ${BINOWN} and ${BINGRP} per Arne H. Juul <arnej@ikke.idt.unit.no>
in PR #705.  Also, clean up some stuff left over from HP-BSD.
1996-01-15 01:41:37 +00:00
thorpej
8a5504241e Three distinct changes:
- Better disklabel handling.  While a disklabel isn't used
	  in the driver, some versions of the OpenPROM insist on
	  one being present in order to boot from floppy.  These
	  changes provide a default label (in a way similar to how
	  the SCSI disk driver provides a default) so that a user
	  can more easily place the label on the disk.

	- Fix semi-bug in bootpath handling.  It appears as if the
	  bootpath can appear in a couple of formats: "/fd@0,0", which
	  is what bootpath_fake() creates on v0 proms and may be
	  passed by some v2 proms, and "/fd0" which is what the
	  v2 prom on my SS2 passes.  We now handle both formats.

	- Use a mountroot hook to eject the floppy and wait for
	  the user to insert a filesystem floppy if we're the boot/root
	  device.
1996-01-15 00:14:42 +00:00
thorpej
3f8e0d27a6 Add a "mountroot hook" mechanism so that devices can take care of
special needs before being used in (*mountroot)().
1996-01-15 00:06:49 +00:00
thorpej
57219ebad3 Remove vnode_if.[ch] during a "make clean", per PR#536 from
Dan Carosone <danielce@ee.mu.oz.au>.
1996-01-14 21:06:47 +00:00
leo
9186c7668f The changes frpm Paul Goyette with respect to the driver trace require
DBG_PID to be defined to an interger value....make it so.
1996-01-14 13:06:37 +00:00
thorpej
cca25e85ec Fixed typo (that I probably introduced with the disk changes). From
Thorsten Frueauf <frueauf@ira.uka.de>, PR #1924.
1996-01-14 00:23:56 +00:00
briggs
0d6552d914 Fix typo in last change. 1996-01-13 14:03:38 +00:00
mycroft
467bd97c79 Make a small attempt to deal better with VM86 mode in GDB. 1996-01-13 06:14:44 +00:00
chuck
8f339409b7 sync with sparc:
- move disk_attach() to before reading the disk label as per Jason.
	otherwise we are reading into an unallocated buffer (oops!)
1996-01-13 03:50:05 +00:00