From 197a86e724ad805f209f7b1e7ca34a1014ccf9ec Mon Sep 17 00:00:00 2001 From: briggs Date: Wed, 18 Sep 1996 03:33:23 +0000 Subject: [PATCH] Don't allow get_physical to attempt get_pte if mmutype is 68040. (At least until get_pte works on the 040). --- sys/arch/mac68k/mac68k/machdep.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index 711bcfdc5cea..ad8b63efa34d 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.116 1996/09/16 18:00:30 scottr Exp $ */ +/* $NetBSD: machdep.c,v 1.117 1996/09/18 03:33:23 briggs Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -2395,6 +2395,9 @@ get_physical(u_int addr, u_long * phys) int i, numbits; extern u_int macos_tc; + if (mmutype == MMU_68040) + return 0; + i = get_pte(addr, pte, &psr); switch (i) {