HomeFreeBSD

x86: Reduce code duplication in cpu_fork() and cpu_copy_thread().

Description

x86: Reduce code duplication in cpu_fork() and cpu_copy_thread().

Add copy_thread() to hold shared code.

Sponsored by: Netflix

(cherry picked from commit a7883464fcc45b78e6aa01222682ae40f787a378)

Details

Provenance
jhbAuthored on Mar 18 2021, 7:13 PM
Parents
rGc6b96921a819: aarch64: Clear TLS registers during exec().
Branches
Unknown
Tags
Unknown