Subject: nathan_sw and proc flags
To: None <tech-kern@netbsd.org>
From: Gregory McGarry <g.mcgarry@ieee.org>
List: tech-kern
Date: 12/08/2001 16:17:48
In the non-SA world, the proc-dependent flags are inherited from
the parent in cpu_fork(). In the SA world, the flags are split
between LWP-specific and proc-specific. ISTM that current
implementations of cpu_fork() do ensure the inheritance of the
LWP-specific flags, but the proc-specific flags are not
initialised and usually filled with junk. The symptoms I saw
where corrupted page tables on NetBSD/hp300.
Since cpu_fork() doesn't know whether it is handling a process
fork or an LWP fork, who is responsible for maintaing proc-specific
flags?
-- Gregory McGarry <g.mcgarry@ieee.org>