Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/riscv ASSERT that md_astpending it zero for t...



details:   https://anonhg.NetBSD.org/src/rev/c984fcbc26b6
branches:  trunk
changeset: 372518:c984fcbc26b6
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Dec 04 16:23:48 2022 +0000

description:
ASSERT that md_astpending it zero for the new lwp.

diffstat:

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

diffs (28 lines):

diff -r 957921e5dad2 -r c984fcbc26b6 sys/arch/riscv/riscv/vm_machdep.c
--- a/sys/arch/riscv/riscv/vm_machdep.c Sun Dec 04 16:21:54 2022 +0000
+++ b/sys/arch/riscv/riscv/vm_machdep.c Sun Dec 04 16:23:48 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.6 2022/11/15 14:33:33 simonb Exp $    */
+/*     $NetBSD: vm_machdep.c,v 1.7 2022/12/04 16:23:48 skrll Exp $     */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.6 2022/11/15 14:33:33 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.7 2022/12/04 16:23:48 skrll Exp $");
 
 #define _PMAP_PRIVATE
 
@@ -77,8 +77,7 @@
        struct trapframe *tf;
 
        KASSERT(l1 == curlwp || l1 == &lwp0);
-
-       l2->l_md.md_astpending = 0;
+       KASSERT(l2->l_md.md_astpending == 0);
 
        /* Copy the PCB from parent. */
        *pcb2 = *pcb1;



Home | Main Index | Thread Index | Old Index