Port-powerpc archive

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

pmap_bootstrap - mtsrin args backwards?



Hello,

In pmap.c:pmap_bootstrap the code:

        
        /*
         * Initialize kernel pmap and hardware.
         */
#if NPMAPS >= KERNEL_SEGMENT / 16
        usedsr[KERNEL_SEGMENT / 16 / (sizeof usedsr[0] * 8)]
                |= 1 << ((KERNEL_SEGMENT / 16) % (sizeof usedsr[0] * 8));
#endif
        for (i = 0; i < 16; i++) {
                pmap_kernel()->pm_sr[i] = EMPTY_SEGMENT;
                asm volatile ("mtsrin %0,%1"
                              :: "r"(i << ADDR_SR_SHFT), "r"(EMPTY_SEGMENT));
        }

appears.  Are the arguments to the mtsrin instruction backwards?

        enjoy,
                Andrew



Home | Main Index | Thread Index | Old Index