]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
x86: Reduce code duplication in cpu_fork() and cpu_copy_thread().
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 18 Mar 2021 19:13:17 +0000 (12:13 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 29 Mar 2021 22:35:47 +0000 (15:35 -0700)
commit10438a42f1665c00f7669e123a0aec49b74d757e
tree8bae658771dad69d5107cedfd5e10cc87979f864
parentc6b96921a81968aa768b45e32195854aaec81331
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)
sys/amd64/amd64/vm_machdep.c
sys/i386/i386/vm_machdep.c