);\r
if (!EFI_ERROR (Status)) {\r
//\r
- // The AsmLfence() call here is to ensure the previous range/content\r
- // checks for the CommBuffer have been completed before calling into\r
- // FtwWrite().\r
+ // The SpeculationBarrier() call here is to ensure the previous\r
+ // range/content checks for the CommBuffer have been completed before\r
+ // calling into FtwWrite().\r
//\r
- AsmLfence ();\r
+ SpeculationBarrier ();\r
Status = FtwWrite(\r
&mFtwDevice->FtwInstance,\r
SmmFtwWriteHeader->Lba,\r