From 2d3ab1ef0c9ae733e84d717295bf23a11e035ce0 Mon Sep 17 00:00:00 2001 From: shin Date: Fri, 25 Feb 2000 11:20:20 +0000 Subject: [PATCH] stop memory probing at first memory image. this is necessary for MC-CS12. --- sys/arch/hpcmips/vr/vr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/arch/hpcmips/vr/vr.c b/sys/arch/hpcmips/vr/vr.c index abd42a2af7ba..992e6dffd6e8 100644 --- a/sys/arch/hpcmips/vr/vr.c +++ b/sys/arch/hpcmips/vr/vr.c @@ -1,4 +1,4 @@ -/* $NetBSD: vr.c,v 1.13 2000/02/21 13:46:05 shin Exp $ */ +/* $NetBSD: vr.c,v 1.14 2000/02/25 11:20:20 shin Exp $ */ /*- * Copyright (c) 1999 @@ -195,6 +195,10 @@ vr_find_dram(addr, end) if (badaddr(page, 4)) goto bad; + /* stop memory probing at first memory image */ + if (bcmp(page, (void *)MIPS_PHYS_TO_KSEG0(0), 128) == 0) + return; + *(volatile int *)(page+0) = 0xa5a5a5a5; *(volatile int *)(page+4) = 0x5a5a5a5a; wbflush();