Subject: pmap_bootstrap - mtsrin args backwards?
To: None <port-powerpc@NetBSD.ORG>
From: Andrew Cagney <cagney@tpgi.com.au>
List: port-powerpc
Date: 12/17/1996 16:17:35
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