Subject: Re: Motorola PowerStack II / Estrella 300 and options FIRMWORKSBUGS
To: Matt Thomas <matt@3am-software.com>
From: Jochen Kunz <jkunz@unixag-kl.fh-kl.de>
List: port-powerpc
Date: 11/05/2002 22:04:36
On 2002.11.01 23:27 Matt Thomas wrote:

Sorry for the late answer. I had to partially reinstall my net-boot
server. (Never try to make a tar in a hurry. /dev/rsd0c was not intended
to be the target of the archive...) And I spend some time reading e.g.
pmap(9), ...

> >sys/arch/powerpc/mpc6xx/pmap.c:pmap_bootstrap():
> >         /*
> >          * Initialize kernel pmap and hardware.
> >          */
> >         for (i =3D 0; i < 16; i++) {
> >                 pmap_kernel()->pm_sr[i] =3D EMPTY_SEGMENT;
> >                 __asm __volatile ("mtsrin %0,%1"
> >                      :: "r"(EMPTY_SEGMENT), "r"(i << ADDR_SR_SHFT));
> >         }
> >
> >It hangs at the first execution of the inline ASM instruction.
> What are your IBAT0/DBAT0 set to?  Is PSL_IR and/or PSL_DR set?
	pmap_print_mmuregs();
	Debugger();
in front of the mtsrin instruction:
SDR1:   0xfff0000
SR[]:   0x00000000,   0x00000001,   0x00000002,   0x00000003,  =20
        0x00000004,   0x00000005,   0x00000006,   0x00000007,  =20
        0x00000008,   0x00000009,   0x0000000a,   0x0000000b,  =20
        0x0000000c,   0x0000000d,   0x0000000e,   0x0000000f,  =20
iBAT[]: 0x00001ffe 0x00000012, 0x00000000 0x00000000,=20
        0x00000000 0x00000000, 0x00000000 0x00000000,=20
dBAT[]: 0x00001ffe 0x00000012, 0x00000000 0x00000000,=20
        0x00000000 0x00000000, 0x00000000 0x00000000,=20
Stopped in pid 0 () at    0x2a1238:     lwz     r0, r1, 0x14
db> sh reg
[...]
msr             0x1032

(Why is it called PSL in NetBSD, "PowerPC Microprocessor Family: The
Programming Environments for 32-Bit Microprocessors" and the kernel
debugger calls it "MSR"?)

While are you here, did you have a chance to look at the big endian
issue of the DEFPA driver?=20
--=20



tsch=FC=DF,
         Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/