Subject: Re: JavaStation1 saga continues
To: None <port-sparc@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-sparc
Date: 04/18/2001 06:49:03
On Tue, Apr 17, 2001 at 07:50:10 +0400, Valeriy E. Ushakov wrote:

> Any ideas on how to layout kernel and arrange things so that boot prom
> is not unmapped?  I'm studying pmap.c and would appreciate any hints.

Moved kernel to region EF.  As much cute is the idea of folding OBP
virtual address space into the kernel (effectively a 512K blob at the
start of kernel), I think that redzone issues &c make that impossible.

Kludged virtual_avail to be F0080000 (just past the OBP).
Got this far:


NetBSD 1.5 (MRCOFFEE) #3: Wed Apr 18 05:56:48 MSD 2001
    toor@felix.sparc.spb.su:/opt/src/sys/arch/sparc/compile/MRCOFFEE
total memory = 32396 KB
avail memory = 28372 KB
using 430 buffers containing 1720 KB of memory
bootpath: 
mainbus0 (root): SUNW,JDM1
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000:  (eeprom)
timer0 at obio0 slot 0 offset 0xd00000data fault: pc=0xef0bcacc addr=0x0 sfsr=126<PERR=0,LVL=1,AT=1,FT=1,FAV,OW>
panic: kernel fault
halted

Program terminated
ok 

The crash is in timerattach_obio.  As far as I can tell it corresponds
to loading cpus[n] to a register during this test:

		if ((cpi = cpus[n]) == NULL)


Time to compile a DDB-enabled kernel...

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen