Port-powerpc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Motorola PowerStack II / Estrella 300 and options FIRMWORKSBUGS



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 = 0; i < 16; i++) {
> >                 pmap_kernel()->pm_sr[i] = 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,   
        0x00000004,   0x00000005,   0x00000006,   0x00000007,   
        0x00000008,   0x00000009,   0x0000000a,   0x0000000b,   
        0x0000000c,   0x0000000d,   0x0000000e,   0x0000000f,   
iBAT[]: 0x00001ffe 0x00000012, 0x00000000 0x00000000, 
        0x00000000 0x00000000, 0x00000000 0x00000000, 
dBAT[]: 0x00001ffe 0x00000012, 0x00000000 0x00000000, 
        0x00000000 0x00000000, 0x00000000 0x00000000, 
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? 
-- 



tschüß,
         Jochen

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



Home | Main Index | Thread Index | Old Index