Page MenuHomeFreeBSD

Reinitialize thread0's stack base after enabling XSAVE.
ClosedPublic

Authored by markj on May 8 2020, 12:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 3:16 AM
Unknown Object (File)
Oct 2 2024, 11:39 AM
Unknown Object (File)
Sep 22 2024, 7:41 PM
Unknown Object (File)
Sep 22 2024, 9:13 AM
Unknown Object (File)
Sep 22 2024, 4:56 AM
Unknown Object (File)
Sep 19 2024, 4:36 AM
Unknown Object (File)
Sep 18 2024, 5:08 PM
Unknown Object (File)
Sep 18 2024, 6:05 AM
Subscribers

Details

Summary

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 zeroing part of the BSP's DPCPU region.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable