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
F146990258: D24754.id71531.diff
Sat, Mar 7, 10:03 AM
Unknown Object (File)
Fri, Mar 6, 8:59 PM
Unknown Object (File)
Fri, Mar 6, 2:59 AM
Unknown Object (File)
Thu, Feb 19, 8:30 AM
Unknown Object (File)
Wed, Feb 18, 3:48 PM
Unknown Object (File)
Wed, Feb 18, 3:48 PM
Unknown Object (File)
Sun, Feb 8, 5:33 AM
Unknown Object (File)
Sat, Feb 7, 5:32 PM
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