diff options
Diffstat (limited to 'MdeModulePkg/Universal/LockBox')
-rw-r--r-- | MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.c b/MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.c index 5a11743..c1c9aa5 100644 --- a/MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.c +++ b/MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.c @@ -76,6 +76,11 @@ SmmLockBoxSave ( LockBoxParameterSave->Header.ReturnStatus = (UINT64)EFI_ACCESS_DENIED;
return ;
}
+ //
+ // The AsmLfence() call here is to ensure the above range check for the
+ // CommBuffer have been completed before calling into SaveLockBox().
+ //
+ AsmLfence ();
//
// Save data
@@ -160,6 +165,11 @@ SmmLockBoxUpdate ( LockBoxParameterUpdate->Header.ReturnStatus = (UINT64)EFI_ACCESS_DENIED;
return ;
}
+ //
+ // The AsmLfence() call here is to ensure the above range check for the
+ // CommBuffer have been completed before calling into UpdateLockBox().
+ //
+ AsmLfence ();
//
// Update data
|