From 3bc65c6d9e38227da6e396520cb1a6798b67b85d Mon Sep 17 00:00:00 2001 From: eeh Date: Fri, 23 Jun 2000 19:52:57 +0000 Subject: [PATCH] Use probeget to read kernel data to prevent the machine from falling over if the PC goes bad. --- sys/arch/sparc64/sparc64/db_interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc64/sparc64/db_interface.c b/sys/arch/sparc64/sparc64/db_interface.c index 69614bcaa2b3..ff53be080ebd 100644 --- a/sys/arch/sparc64/sparc64/db_interface.c +++ b/sys/arch/sparc64/sparc64/db_interface.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_interface.c,v 1.34 2000/06/19 23:30:35 eeh Exp $ */ +/* $NetBSD: db_interface.c,v 1.35 2000/06/23 19:52:57 eeh Exp $ */ /* * Mach Operating System @@ -262,7 +262,7 @@ db_read_bytes(addr, size, data) src = (char *)addr; while (size-- > 0) { if (src >= (char *)VM_MIN_KERNEL_ADDRESS) - *data++ = *src++; + *data++ = probeget((paddr_t)(long)src++, ASI_P, 1); else *data++ = fubyte(src++); }