summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-09-26 22:16:56 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-09-26 22:16:56 +0000
commite2c3b08f24291aa36984ce5a766b4b0c244a0eab (patch)
tree1c746b5c9dddb0b3477d5b2411c1a74c36601f94 /sys/arch
parente6c1f23d1e52764a5312a7a1d7655f7e95103300 (diff)
be more specific in psycho_ue case (partially based on NetBSD)
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/psycho.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c
index dff9f07641a..381d58ac05b 100644
--- a/sys/arch/sparc64/dev/psycho.c
+++ b/sys/arch/sparc64/dev/psycho.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: psycho.c,v 1.5 2001/09/26 19:34:54 jason Exp $ */
+/* $OpenBSD: psycho.c,v 1.6 2001/09/26 22:16:55 jason Exp $ */
/* $NetBSD: psycho.c,v 1.34 2001/07/20 00:07:13 eeh Exp $ */
/*
@@ -593,14 +593,15 @@ psycho_ue(arg)
{
struct psycho_softc *sc = (struct psycho_softc *)arg;
struct psychoreg *regs = sc->sc_regs;
+ unsigned long long afsr = regs->psy_ue_afsr;
+ unsigned long long afar = regs->psy_ue_afar;
/*
* It's uncorrectable. Dump the regs and panic.
*/
-
- panic("%s: uncorrectable DMA error AFAR %llx AFSR %llx\n",
- sc->sc_dev.dv_xname,
- (long long)regs->psy_ue_afar, (long long)regs->psy_ue_afsr);
+ panic("%s: uncorrectable DMA error AFAR %llx (pa=%llx) AFSR %llx\n",
+ sc->sc_dev.dv_xname, afar,
+ (long long)iommu_extract(sc->sc_is, (vaddr_t)afar), afsr);
return (1);
}