Date: Tue, 21 Mar 2006 03:06:31 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93680 for review Message-ID: <200603210306.k2L36Vwm094685@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93680 Change 93680 by kmacy@kmacy_storage:sun4vtmp on 2006/03/21 03:06:07 implement get and clear bit functions Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/tte.c#3 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/tte.c#3 (text+ko) ==== @@ -117,7 +117,12 @@ void tte_clear_virt_bit(struct pmap *pmap, vm_offset_t va, uint64_t flags) { - UNIMPLEMENTED; + tte_t *tte; + + tte = tte_hash_lookup(pmap->pm_hash, va); + + if (tte) + *tte = *tte & ~flags; } void @@ -129,6 +134,11 @@ boolean_t tte_get_virt_bit(struct pmap *pmap, vm_offset_t va, uint64_t flags) { - UNIMPLEMENTED; - return (FALSE); + tte_t ttedata, *tte; + + tte = tte_hash_lookup(pmap->pm_hash, va); + + ttedata = tte ? *tte : 0; + + return ((ttedata & flags) == flags); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603210306.k2L36Vwm094685>