Date: Fri, 12 Mar 2004 15:09:30 -0800 (PST) From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 48832 for review Message-ID: <200403122309.i2CN9Uho017299@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=48832 Change 48832 by jmallett@jmallett_oingo on 2004/03/12 15:09:10 initialize pm->lev1 in the forking case, also implement deactivate. from Alpha. Affected files ... .. //depot/projects/mips/sys/mips/mips/pmap.c#32 edit Differences ... ==== //depot/projects/mips/sys/mips/mips/pmap.c#32 (text+ko) ==== @@ -707,6 +707,8 @@ /* install self-referential address mapping entry (not PG_ASM) */ pmap->pm_lev1[PTLEV1I] = pmap_phys_to_pte(VM_PAGE_TO_PHYS(lev1pg)) | PG_V | PG_KRE | PG_KWE; +#else + pmap->pm_lev1 = NULL; #endif pmap->pm_ptphint = NULL; pmap->pm_active = 0; @@ -1694,6 +1696,16 @@ } } +void +pmap_deactivate(struct thread *td) +{ + pmap_t pmap; + + pmap = vmspace_pmap(td->td_proc->p_vmspace); + atomic_clear_int(&pmap->pm_active, PCPU_GET(cpumask)); + pmap_active = 0; +} + /* * XXX ? */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403122309.i2CN9Uho017299>