-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When running the LGDT instruction, the address of the entries in the structure given to the CPU must be valid at least until the next LIDT instruction, otherwise it will access invalid memory. In order for GDT::load() to be sound, the entries passed to it must have a lifetime of 'static - this makes sure that the entires will remain valid for the rest of the execution of the SVSM. Co-developed-by: Thomas Leroy <[email protected]> Signed-off-by: Carlos López <[email protected]>
- Loading branch information
Showing
1 changed file
with
33 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters