FreeBSD/sys/powerpc/aim/mmu_oea.c
/*
 * Activate a user pmap.  The pmap must be activated before it's address
 * space can be accessed in any way.
 */
Activate a user pmap.  The pmap must be activated before it's address
space can be accessed in any way.
Activate a user pmap . The pmap must be activated before it ' s address space can be accessed in any way .
void
moea_activate(mmu_t mmu, struct thread *td)
{
	pmap_t	pm, pmr;
	pm = &td->td_proc->p_vmspace->vm_pmap;
	pmr = pm->pmap_phys;
	CPU_SET(PCPU_GET(cpuid), &pm->pm_active);
	PCPU_SET(curpmap, pmr);
	mtsrin(USER_SR << ADDR_SR_SHFT, td->td_pcb->pcb_cpu.aim.usr_vsid);
}
void moea_activate ( mmu_t mmu , struct thread * td ) { pmap_t pm , pmr ; pm = & td -> td_proc -> p_vmspace -> vm_pmap ; pmr = pm -> pmap_phys ; CPU_SET ( PCPU_GET ( cpuid ) , & pm -> pm_active ) ; PCPU_SET ( curpmap , pmr ) ; mtsrin ( USER_SR << ADDR_SR_SHFT , td -> td_pcb -> pcb_cpu . aim . usr_vsid ) ; }
Activate a user pmap.
Activate a user pmap .
/*
	 * Load all the data we need up front to encourage the compiler to
	 * not issue any loads while we have interrupts disabled below.
	 */