summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/aligned_alloc.c
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2015-11-06 15:30:59 +0000
committermartin <martin@NetBSD.org>2015-11-06 15:30:59 +0000
commitdb5aa7af107bc186ed01018d4a4ff6c59c100077 (patch)
treeb4847335edfb724e64be024b1c521ef8fb5801a5 /lib/libc/stdlib/aligned_alloc.c
parent7aa0fc567de03c8b97a7f2982288439f0b0b8206 (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