Subject: JavaStation1 saga continues
To: None <port-sparc@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-sparc
Date: 04/17/2001 07:50:10
Had insomnia, was hacking on JS1/OBP3 again.
Kernel causes watchdog reset in mmu_install_tables. I guess the
problem is that I unmap PROM. OF entry point is at f003381c, I tried
to move kernel to region F1. And it seems kernel is not prepared to
deal with OBP in such a strange place (preceding it in virtual
memory).
These are non-zero entries PROM sets up for us on boot:
mmu_reservemon4m: Context @ 01fff000 = 001feec1
L1: 00: @ 01feec00 = 001fee81
L1: 04: @ 01feec10 = 001fb9f1
L1: 70: @ 01feedc0 = 001fee51
L1: f0: @ 01feefc0 = 001feeb1 - PROM (2 segs: f000.0000 .. f007.ffff)
L1: f1: @ 01feefc4 = 001fee81 - KERNEL
L1: ff: @ 01feeffc = 001fee21
pmap_bootstrap: installing kernel page tables...
pmap_bootstrap: cxtptr prom = 0x1fff00, kernel = 0x16300
pmap_bootstrap: flushing tlb and setting cxtptr
[watchdog reset]
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.
Thanks.
PS: To make things, more umm... interesting, I have to pull 1.2M of
new kernel over modem after every recompile. Reminds me of my punched
cards days. ;-)
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen