Subject: Re: Mbus module support in NetBSD/sparc
To: Paul Kranenburg <pk@cs.few.eur.nl>
From: Brian Baird <brb@brig.com>
List: port-sparc
Date: 08/03/1997 03:51:33
> I can't tell you about Hypersparcs (Ross 625). There's support for this
> model in -current, but it's not tested. If anyone has access to a Hypersparc
> machine, please give it a try.

I have a sparc 10 that with a 125MHz HyperSparc RT625 module.  There
are a couple of problems.

The NetBSD boot code gets an instruction access exception unless you
turn off the ibuf on the Hypersparc:

	ok	reset
	ok	ross625
	ok	ibuf-off
	ok	boot disk1 netbsd -s
	>> NetBSD Boot...

I am presuming that a flush and some nops needs to occur after the
boot code is relocated at the beginning of sparc/stand/common/srt0.S,
although I haven't tested it.

I built a 970729-current kernel, with an extra entry in
cpu_conf[]:

	{ CPU_SUN4M, 1, 0xe, 1, ANY, "RT625/626", &module_hypersparc },

This produced:

pmap_bootstrap: installing kernel page tables...done.
trap type 0x7: pc=0xffd3f044 npc=0xffd3f048 psr=1e400fc3<S,PS>
panic: alignment fault
Stopped at _Debugger+0x4: jmpl [%o7+0x8],%g0
db> trace
_trap(0x7, 0x1e400fc3, 0xffd3f044, 0xf8157c30, 0xffd3dee0, 0x44444230)
	at _trap+0xdc
slowtrap(0x0, 0x8, 0xffeef000, 0x80, 0xffef200c, 0xffef2010)
	at slowtrap+0xbc
_end(0xf8122580, 0x29678, 0xf8015ab0, 0xf817f8d0, 0x0, 0x8)
	at 0xffd4dd60
_end(0xf8122580, 0xffd3dd48 0xf8015ab0, 0xc00, 0xf81e5000, 0xf81c0000)
	at 0xffd3ff54
_opennode(0xf8122580, 0x0, 0x0, 0x0, 0x0, 0x8)
	at _opennode+0x34
_bootstrap(0xf800a400, 0x8, 0x1, 0xf8158097, 0xffffffff, 0x10)
	at _bootstrap+0x128
noplab(0x8, 0xffef2000, 0xffef2000, 0x8, 0xffef2010, 0xf0)
	at noplab_0xc4
db> x/s 0xf8122580
_str2hex+0x80: /obio/interrupt

--Brian;