Commit Graph

6387 Commits

Author SHA1 Message Date
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