Module Name: src Committed By: skrll Date: Sun Dec 4 16:23:48 UTC 2022
Modified Files: src/sys/arch/riscv/riscv: vm_machdep.c Log Message: ASSERT that md_astpending it zero for the new lwp. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/riscv/riscv/vm_machdep.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/vm_machdep.c diff -u src/sys/arch/riscv/riscv/vm_machdep.c:1.6 src/sys/arch/riscv/riscv/vm_machdep.c:1.7 --- src/sys/arch/riscv/riscv/vm_machdep.c:1.6 Tue Nov 15 14:33:33 2022 +++ src/sys/arch/riscv/riscv/vm_machdep.c Sun Dec 4 16:23:48 2022 @@ -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 @@ cpu_lwp_fork(struct lwp *l1, struct lwp 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;