summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2007-06-03 19:39:38 +0000
committeralc <alc@FreeBSD.org>2007-06-03 19:39:38 +0000
commit67d75e2c915f7031ba32901cdac80ca695175cec (patch)
tree1a170540cc52c31e0b5b0a9fc21123e513bc7d16
parent50a4a59acb14d73adb058789c639f99ed8cecc09 (diff)
downloadFreeBSD-src-67d75e2c915f7031ba32901cdac80ca695175cec.zip
FreeBSD-src-67d75e2c915f7031ba32901cdac80ca695175cec.tar.gz
Prepare for the new physical memory allocator: Change the way that the
physical page's color is obtained. Approved by: re
-rw-r--r--sys/sparc64/sparc64/pmap.c2
-rw-r--r--sys/sparc64/sparc64/tsb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c
index bf0cb0b..58d96db 100644
--- a/sys/sparc64/sparc64/pmap.c
+++ b/sys/sparc64/sparc64/pmap.c
@@ -830,7 +830,7 @@ pmap_kenter(vm_offset_t va, vm_page_t m)
tp = tsb_kvtotte(va);
CTR4(KTR_PMAP, "pmap_kenter: va=%#lx pa=%#lx tp=%p data=%#lx",
va, VM_PAGE_TO_PHYS(m), tp, tp->tte_data);
- if (m->pc != DCACHE_COLOR(va)) {
+ if (DCACHE_COLOR(VM_PAGE_TO_PHYS(m)) != DCACHE_COLOR(va)) {
CTR6(KTR_CT2,
"pmap_kenter: off colour va=%#lx pa=%#lx o=%p oc=%#lx ot=%d pi=%#lx",
va, VM_PAGE_TO_PHYS(m), m->object,
diff --git a/sys/sparc64/sparc64/tsb.c b/sys/sparc64/sparc64/tsb.c
index 8c381cb..86c1426 100644
--- a/sys/sparc64/sparc64/tsb.c
+++ b/sys/sparc64/sparc64/tsb.c
@@ -117,7 +117,7 @@ tsb_tte_enter(pmap_t pm, vm_page_t m, vm_offset_t va, u_long sz, u_long data)
int b0;
int i;
- if (m->pc != DCACHE_COLOR(va)) {
+ if (DCACHE_COLOR(VM_PAGE_TO_PHYS(m)) != DCACHE_COLOR(va)) {
CTR6(KTR_CT2,
"tsb_tte_enter: off colour va=%#lx pa=%#lx o=%p oc=%#lx ot=%d pi=%#lx",
va, VM_PAGE_TO_PHYS(m), m->object,
OpenPOWER on IntegriCloud