Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Do not copy l_md to the new lwp in ...
details: https://anonhg.NetBSD.org/src/rev/33ebd0238763
branches: trunk
changeset: 372533:33ebd0238763
user: martin <martin%NetBSD.org@localhost>
date: Mon Dec 05 16:01:03 2022 +0000
description:
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.
diffstat:
sys/arch/powerpc/powerpc/vm_machdep.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 7ac6e00338bc -r 33ebd0238763 sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c Mon Dec 05 15:47:14 2022 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c Mon Dec 05 16:01:03 2022 +0000
@@ -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 @@
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. */
Home |
Main Index |
Thread Index |
Old Index