HomeFreeBSD

o Don't overwrite tp in fork_trampoline().

Description

o Don't overwrite tp in fork_trampoline().
o Save and restore tp in cpu_switch().
o Restore tp in cpu_throw().
o Save tp in savectx().

This makes libthr tests happy. In particular fork_test:fork.

Sponsored by: DARPA, AFRL

Details

Provenance
brAuthored on
Parents
rS337125: o Correctly set user tls base: consider TP_OFFSET.
Branches
Unknown
Tags
Unknown