Module Name: src Committed By: rin Date: Tue Aug 22 07:11:15 UTC 2023
Modified Files: src/sys/arch/riscv/riscv: trap.c Log Message: riscv/trap.c: Dump cause register for unhandled page fault To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/riscv/riscv/trap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/riscv/riscv/trap.c diff -u src/sys/arch/riscv/riscv/trap.c:1.22 src/sys/arch/riscv/riscv/trap.c:1.23 --- src/sys/arch/riscv/riscv/trap.c:1.22 Tue Aug 22 07:10:39 2023 +++ src/sys/arch/riscv/riscv/trap.c Tue Aug 22 07:11:15 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.22 2023/08/22 07:10:39 rin Exp $ */ +/* $NetBSD: trap.c,v 1.23 2023/08/22 07:11:15 rin Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ #define __PMAP_PRIVATE #define __UFETCHSTORE_PRIVATE -__RCSID("$NetBSD: trap.c,v 1.22 2023/08/22 07:10:39 rin Exp $"); +__RCSID("$NetBSD: trap.c,v 1.23 2023/08/22 07:11:15 rin Exp $"); #include <sys/param.h> @@ -380,7 +380,8 @@ trap_pagefault_fixup(struct trapframe *t #endif break; default: - panic("%s: Unhandled cause!", __func__); + panic("%s: Unhandled cause! 0x%016lx (%s)", __func__, + (long)cause, cause_name(cause)); } if (attr == 0) return false;