stop memory probing at first memory image.
this is necessary for MC-CS12.
This commit is contained in:
parent
469464d4c8
commit
2d3ab1ef0c
|
@ -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
|
* Copyright (c) 1999
|
||||||
|
@ -195,6 +195,10 @@ vr_find_dram(addr, end)
|
||||||
if (badaddr(page, 4))
|
if (badaddr(page, 4))
|
||||||
goto bad;
|
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+0) = 0xa5a5a5a5;
|
||||||
*(volatile int *)(page+4) = 0x5a5a5a5a;
|
*(volatile int *)(page+4) = 0x5a5a5a5a;
|
||||||
wbflush();
|
wbflush();
|
||||||
|
|
Loading…
Reference in New Issue