Source-Changes-HG archive

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

src: Add XXX note regarding incomplete forking



details:   https://anonhg.NetBSD.org/src/rev/2ea12cdece10
branches:  trunk
changeset: 318186:2ea12cdece10
user:      scole <scole%NetBSD.org@localhost>
date:      Sat Apr 14 19:58:20 2018 +0000
description:
Add XXX note regarding incomplete forking

diffstat:

 sys/arch/ia64/ia64/vm_machdep.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 5bf8d26f4ff5 -r 2ea12cdece10 sys/arch/ia64/ia64/vm_machdep.c
--- a/sys/arch/ia64/ia64/vm_machdep.c   Sat Apr 14 17:55:47 2018 +0000
+++ b/sys/arch/ia64/ia64/vm_machdep.c   Sat Apr 14 19:58:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.13 2017/04/08 17:38:43 scole Exp $    */
+/*     $NetBSD: vm_machdep.c,v 1.14 2018/04/14 19:58:20 scole Exp $    */
 
 /*
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -133,6 +133,14 @@
                KASSERT(l1 == &lwp0);
        }
 
+       /*
+        * XXX this seems incomplete, each thread apparently needs its
+        * own stack and bspstore, and to re-adjust the RSE "ndirty"
+        * registers.  See
+        * http://fxr.watson.org/fxr/source/ia64/ia64/vm_machdep.c?v=FREEBSD10#L262
+        * Also should verify u-area usage is consistent, which may be
+        * different than freebsd.
+        */
        *pcb2 = *pcb1;
 
        l2->l_md.md_flags = l1->l_md.md_flags;



Home | Main Index | Thread Index | Old Index