diff options
| author | martin <martin@NetBSD.org> | 2015-11-06 15:30:59 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2015-11-06 15:30:59 +0000 |
| commit | db5aa7af107bc186ed01018d4a4ff6c59c100077 (patch) | |
| tree | b4847335edfb724e64be024b1c521ef8fb5801a5 /lib/libc/stdlib/aligned_alloc.c | |
| parent | 7aa0fc567de03c8b97a7f2982288439f0b0b8206 (diff) | |
Basically revert r1.246 of locore.s and r1.73 of vm_machdep.c:
Remove special case handling for userland lwps from cpu_lwp_fork,
instead do it in lwp_trampoline when we first return to userland.
which was a stupid idea - since we did now set all fork child's %tstate
(and thus %pstate when back in userland) to the current kernel's userland
default. This meant we lost the address mask bit for 32bit processes and
all memory model details for 64bit ones.
Move it back to cpu_lwp_fork and fix the condition to only do it once when
forking init.
Diffstat (limited to 'lib/libc/stdlib/aligned_alloc.c')
0 files changed, 0 insertions, 0 deletions
