diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-01-02 17:14:41 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-01-02 17:14:41 +0000 |
commit | f6f350a4eede96a3575e0ab6ddf6ce4a9d28fb8f (patch) | |
tree | 7294292b76ac0fe8ba1eaf004badc279d3200146 | |
parent | 72d285c2021bf23bd1be2b14c823113c8df15033 (diff) |
The scratch pages used in pmap_zero_page() and pmap_copy_page() being special
mappings, they still need the dcache to be invalidated after use.
-rw-r--r-- | sys/arch/mvme88k/mvme88k/pmap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/mvme88k/mvme88k/pmap.c b/sys/arch/mvme88k/mvme88k/pmap.c index 44a65933b12..9574cb6315e 100644 --- a/sys/arch/mvme88k/mvme88k/pmap.c +++ b/sys/arch/mvme88k/mvme88k/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.101 2004/01/02 17:08:58 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.102 2004/01/02 17:14:40 miod Exp $ */ /* * Copyright (c) 2001, 2002, 2003 Miodrag Vallat * Copyright (c) 1998-2001 Steve Murphree, Jr. @@ -1118,6 +1118,7 @@ pmap_zero_page(struct vm_page *pg) SPLX(spl); bzero((void *)va, PAGE_SIZE); + cmmu_flush_data_cache(cpu, pa, PAGE_SIZE); } /* @@ -2451,6 +2452,8 @@ pmap_copy_page(struct vm_page *srcpg, struct vm_page *dstpg) SPLX(spl); bcopy((void *)srcva, (void *)dstva, PAGE_SIZE); + cmmu_flush_data_cache(cpu, src, PAGE_SIZE); + cmmu_flush_data_cache(cpu, dst, PAGE_SIZE); } /* |