MachHitFlushDCache() -> mips3_HitFlushDCache() outside pmap.c.

This commit is contained in:
jonathan 1997-06-18 04:51:15 +00:00
parent a1085c85ae
commit a066eecaf8
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.19 1997/06/16 23:41:56 jonathan Exp $ */
/* $NetBSD: vm_machdep.c,v 1.20 1997/06/18 04:51:17 jonathan Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -83,9 +83,11 @@ cpu_fork(p1, p2)
tf = (struct frame *)(KERNELSTACK - 24);
p2->p_md.md_regs = p2->p_addr->u_pcb.pcb_regs;
p2->p_md.md_flags = p1->p_md.md_flags & MDP_FPUSED;
#ifdef MIPS3
mips3_HitFlushDCache((vm_offset_t)p2->p_addr, UPAGES * NBPG);
#endif
/* XXX save pte mask outside loop ? */
for (i = 0, pte = kvtopte(p2->p_addr); i < UPAGES; i++, pte++) {
if (CPUISMIPS3)
@ -236,7 +238,7 @@ pagemove(from, to, size)
tpte = kvtopte(to);
#ifdef MIPS3
if(((int)from & machCacheAliasMask) != ((int)to & machCacheAliasMask)) {
MachHitFlushDCache(from, size);
mips3_HitFlushDCache((vm_offset_t)from, size);
}
#endif
while (size > 0) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.83 1997/06/16 23:41:40 jonathan Exp $ */
/* $NetBSD: machdep.c,v 1.84 1997/06/18 04:51:15 jonathan Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -435,7 +435,7 @@ mach_init(argc, argv, code, cv)
if (CPUISMIPS3) {
mips3_FlushDCache(MACH_CACHED_TO_PHYS(start), v - start);
MachHitFlushDCache((caddr_t)UADDR, UPAGES * NBPG);
mips3_HitFlushDCache(UADDR, UPAGES * NBPG);
}
/*