return EFI_SECURITY_VIOLATION;\r
}\r
//\r
- // The MemoryLoadFence() call here is to ensure the above sanity check\r
- // for the EFI_VARIABLE_AUTHENTICATION_2 descriptor has been completed\r
+ // The VariableSpeculationBarrier() call here is to ensure the above sanity\r
+ // check for the EFI_VARIABLE_AUTHENTICATION_2 descriptor has been completed\r
// before the execution of subsequent codes.\r
//\r
- MemoryLoadFence ();\r
+ VariableSpeculationBarrier ();\r
PayloadSize = DataSize - AUTHINFO2_SIZE (Data);\r
} else {\r
PayloadSize = DataSize;\r