HomeFreeBSD

amd64: expicitly re-init td_frame in copy_thread()

Description

amd64: expicitly re-init td_frame in copy_thread()

Otherwise we are using whatever the value was left from the previous
thread run on kernel entry from usermode. Typically it would be the
desired value as is, but it is not guaranteed.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35888

Details

Provenance
kibAuthored on Jul 21 2022, 4:26 PM
Reviewer
markj
Differential Revision
D35888: AST: rework
Parents
rGb3fd5464a903: rb_tree: resolve name clash
Branches
Unknown
Tags
Unknown