workaround for port-hpcmips/42934
"NetBSD/hpcmips can't boot after 5.99.23" adviced by Naoki Fukaumi on twitter.
This commit is contained in:
parent
b764352d60
commit
0870d1051c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vr.c,v 1.55 2010/01/21 01:23:15 pooka Exp $ */
|
||||
/* $NetBSD: vr.c,v 1.56 2010/04/10 22:53:59 jun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999-2002
|
||||
|
@ -35,7 +35,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vr.c,v 1.55 2010/01/21 01:23:15 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vr.c,v 1.56 2010/04/10 22:53:59 jun Exp $");
|
||||
|
||||
#include "opt_vr41xx.h"
|
||||
#include "opt_tx39xx.h"
|
||||
|
@ -344,8 +344,11 @@ vr_find_dram(paddr_t addr, paddr_t end)
|
|||
for (; addr < end; addr += PAGE_SIZE) {
|
||||
|
||||
page = (char *)MIPS_PHYS_TO_KSEG1(addr);
|
||||
/*
|
||||
XXX see port-hpcmips/42934
|
||||
if (badaddr(page, 4))
|
||||
goto bad;
|
||||
*/
|
||||
|
||||
/* stop memory probing at first memory image */
|
||||
if (memcmp(page, (void *)MIPS_PHYS_TO_KSEG0(0), 128) == 0)
|
||||
|
|
Loading…
Reference in New Issue