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)
Mon, May 19, 9:01 AM
Unknown Object (File)
Mon, May 12, 11:00 AM
Unknown Object (File)
Apr 25 2025, 11:59 AM
Unknown Object (File)
Apr 22 2025, 6:53 PM
Unknown Object (File)
Apr 8 2025, 1:29 PM
Unknown Object (File)
Feb 20 2025, 3:14 PM
Unknown Object (File)
Feb 20 2025, 3:11 PM
Unknown Object (File)
Feb 20 2025, 7:04 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