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 Interrupts may not be enabled yet w...



details:   https://anonhg.NetBSD.org/src/rev/fe7cf5988ff7
branches:  trunk
changeset: 1023264:fe7cf5988ff7
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Aug 30 22:54:40 2021 +0000

description:
Interrupts may not be enabled yet when cpu_lwp_fork is called during boot,
so remove incorrect KASSERT.

diffstat:

 sys/arch/aarch64/aarch64/vm_machdep.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r a35902575634 -r fe7cf5988ff7 sys/arch/aarch64/aarch64/vm_machdep.c
--- a/sys/arch/aarch64/aarch64/vm_machdep.c     Mon Aug 30 22:53:37 2021 +0000
+++ b/sys/arch/aarch64/aarch64/vm_machdep.c     Mon Aug 30 22:54:40 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.11 2021/03/28 10:29:05 skrll Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.12 2021/08/30 22:54:40 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.11 2021/03/28 10:29:05 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.12 2021/08/30 22:54:40 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -163,7 +163,6 @@
        ktf->tf_reg[27] = (uint64_t)func;
        ktf->tf_reg[28] = (uint64_t)arg;
        ktf->tf_reg[29] = 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