HomeFreeBSD

Reinitialize thread0's stack base after enabling XSAVE.

Description

Reinitialize thread0's stack base after enabling XSAVE.

Otherwise the initial call to set_top_of_stack(), which occurs before
fpuinit() sets the correct value for cpu_max_ext_state_size, leaves the
stack base at an incorrect location. Then, when the full area is
zeroed, we end up erroneously zeroing part of the following page.

Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D24754

Details

Provenance
markjAuthored on
Reviewer
kib
Differential Revision
D24754: Reinitialize thread0's stack base after enabling XSAVE.
Parents
rS360811: MFC r360277:
Branches
Unknown
Tags
Unknown