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)
Thu, Nov 27, 6:47 AM
Unknown Object (File)
Thu, Nov 27, 4:48 AM
Unknown Object (File)
Wed, Nov 26, 6:33 AM
Unknown Object (File)
Mon, Nov 24, 11:11 AM
Unknown Object (File)
Sat, Nov 22, 3:19 PM
Unknown Object (File)
Fri, Nov 21, 12:39 AM
Unknown Object (File)
Fri, Nov 21, 12:37 AM
Unknown Object (File)
Fri, Nov 21, 12:37 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30973
Build 28681: arc lint + arc unit