diff options
author | 2004-01-02 17:14:40 +0000 | |
---|---|---|
committer | 2004-01-02 17:14:40 +0000 | |
commit | 79088ddbc4d1e1d08d6fcd8c8ddc2cac99ac0c00 (patch) | |
tree | 19c6f101aac491a1e392c1435552498ad26ce9e0 | |
parent | When both cmmu_dofoo() and cmmu_remote_dofoo() exist, kill the first one, (diff) | |
download | wireguard-openbsd-79088ddbc4d1e1d08d6fcd8c8ddc2cac99ac0c00.tar.xz wireguard-openbsd-79088ddbc4d1e1d08d6fcd8c8ddc2cac99ac0c00.zip |
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); } /* |