Module Name: src Committed By: martin Date: Mon Dec 5 16:01:03 UTC 2022
Modified Files: src/sys/arch/powerpc/powerpc: vm_machdep.c Log Message: Do not copy l_md to the new lwp in cpu_lwp_fork - as discussed on tech-kern we do not want the child to inherit any of the flags in there. To generate a diff of this commit: cvs rdiff -u -r1.104 -r1.105 src/sys/arch/powerpc/powerpc/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/powerpc/powerpc/vm_machdep.c diff -u src/sys/arch/powerpc/powerpc/vm_machdep.c:1.104 src/sys/arch/powerpc/powerpc/vm_machdep.c:1.105 --- src/sys/arch/powerpc/powerpc/vm_machdep.c:1.104 Mon Jul 6 10:52:12 2020 +++ src/sys/arch/powerpc/powerpc/vm_machdep.c Mon Dec 5 16:01:03 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: vm_machdep.c,v 1.104 2020/07/06 10:52:12 rin Exp $ */ +/* $NetBSD: vm_machdep.c,v 1.105 2022/12/05 16:01:03 martin Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.104 2020/07/06 10:52:12 rin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.105 2022/12/05 16:01:03 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_altivec.h" @@ -95,8 +95,7 @@ cpu_lwp_fork(struct lwp *l1, struct lwp struct pcb * const pcb1 = lwp_getpcb(l1); struct pcb * const pcb2 = lwp_getpcb(l2); - /* Copy MD part of lwp and set up user trapframe pointer. */ - l2->l_md = l1->l_md; + /* Set up user trapframe pointer. */ l2->l_md.md_utf = trapframe(l2); /* Copy PCB. */