Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/aarch64/aarch64 cpu_lwp_fork: KASSERT -> KASSERTMSG...
details: https://anonhg.NetBSD.org/src/rev/648534e097bc
branches: trunk
changeset: 959931:648534e097bc
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Mar 01 11:37:31 2021 +0000
description:
cpu_lwp_fork: KASSERT -> KASSERTMSG to print the actual value of DAIF if
it is not 0 in cpu_lwp_fork
diffstat:
sys/arch/aarch64/aarch64/vm_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8c7b74aac7f4 -r 648534e097bc sys/arch/aarch64/aarch64/vm_machdep.c
--- a/sys/arch/aarch64/aarch64/vm_machdep.c Mon Mar 01 11:29:14 2021 +0000
+++ b/sys/arch/aarch64/aarch64/vm_machdep.c Mon Mar 01 11:37:31 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.9 2020/10/15 22:52:08 rin Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.10 2021/03/01 11:37:31 jmcneill Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
#include "opt_ddb.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.9 2020/10/15 22:52:08 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.10 2021/03/01 11:37:31 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -163,7 +163,7 @@
ktf->tf_reg[27] = (uint64_t)func;
ktf->tf_reg[28] = (uint64_t)arg;
ktf->tf_reg[29] = 0;
- KASSERT(reg_daif_read() == 0);
+ KASSERTMSG(reg_daif_read() == 0, "DAIF=0x%lx", reg_daif_read());
ktf->tf_lr = (uintptr_t)lwp_trampoline;
#ifdef DDB
ktf->tf_pc = (uint64_t)&&backtrace_here;
Home |
Main Index |
Thread Index |
Old Index