Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/powerpc Convert to KASSERTMSG(9) to display...



details:   https://anonhg.NetBSD.org/src/rev/fc91576cc9a4
branches:  trunk
changeset: 953330:fc91576cc9a4
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Mar 06 08:32:17 2021 +0000

description:
Convert to KASSERTMSG(9) to display wrong IPL.

diffstat:

 sys/arch/powerpc/powerpc/powerpc_machdep.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 704196cbf6d8 -r fc91576cc9a4 sys/arch/powerpc/powerpc/powerpc_machdep.c
--- a/sys/arch/powerpc/powerpc/powerpc_machdep.c        Sat Mar 06 08:29:19 2021 +0000
+++ b/sys/arch/powerpc/powerpc/powerpc_machdep.c        Sat Mar 06 08:32:17 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: powerpc_machdep.c,v 1.81 2021/03/06 08:08:19 rin Exp $ */
+/*     $NetBSD: powerpc_machdep.c,v 1.82 2021/03/06 08:32:17 rin Exp $ */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: powerpc_machdep.c,v 1.81 2021/03/06 08:08:19 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: powerpc_machdep.c,v 1.82 2021/03/06 08:32:17 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_altivec.h"
@@ -381,7 +381,8 @@
 cpu_idle(void)
 {
        KASSERT(mfmsr() & PSL_EE);
-       KASSERT(curcpu()->ci_cpl == IPL_NONE);
+       KASSERTMSG(curcpu()->ci_cpl == IPL_NONE,
+           "ci_cpl = %d", curcpu()->ci_cpl);
        (*curcpu()->ci_idlespin)();
 }
 



Home | Main Index | Thread Index | Old Index