Clear caches during init

Some processor families leave residue in the processor cache
after SMM initialization phase.  Especially, when processors are
initializing SMM in parallel.  This residue sometimes results in
apparent inconsistency in shared tables.

Signed-off-by: Eugene Myers <edmyers@tycho.nsa.gov>
This commit is contained in:
Eugene Myers 2021-07-14 05:31:43 -04:00
parent 9e68cd00dc
commit e31d8506d8
1 changed files with 3 additions and 1 deletions

View File

@ -1020,7 +1020,9 @@ ApInit (
{
X86_REGISTER *Reg;
IA32_DESCRIPTOR IdtrLoad;
// Make sure there is no residue
AsmWbinvd(); // make sure it gets out
while (!mIsBspInitialized) {
//
// Wait here