OvmfPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the OvmfPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Andrew Fish <afish@apple.com>
This commit is contained in:
committed by
mergify[bot]
parent
d1050b9dff
commit
ac0a286f4d
@@ -17,12 +17,12 @@
|
||||
#include <Register/Cpuid.h>
|
||||
#include <Uefi/UefiBaseType.h>
|
||||
|
||||
STATIC BOOLEAN mSevStatus = FALSE;
|
||||
STATIC BOOLEAN mSevEsStatus = FALSE;
|
||||
STATIC BOOLEAN mSevStatusChecked = FALSE;
|
||||
STATIC BOOLEAN mSevStatus = FALSE;
|
||||
STATIC BOOLEAN mSevEsStatus = FALSE;
|
||||
STATIC BOOLEAN mSevStatusChecked = FALSE;
|
||||
|
||||
STATIC UINT64 mSevEncryptionMask = 0;
|
||||
STATIC BOOLEAN mSevEncryptionMaskSaved = FALSE;
|
||||
STATIC UINT64 mSevEncryptionMask = 0;
|
||||
STATIC BOOLEAN mSevEncryptionMaskSaved = FALSE;
|
||||
|
||||
/**
|
||||
Reads and sets the status of SEV features.
|
||||
@@ -43,8 +43,8 @@ InternalMemEncryptSevStatus (
|
||||
|
||||
ReadSevMsr = FALSE;
|
||||
|
||||
SevEsWorkArea = (SEC_SEV_ES_WORK_AREA *) FixedPcdGet32 (PcdSevEsWorkAreaBase);
|
||||
if (SevEsWorkArea != NULL && SevEsWorkArea->EncryptionMask != 0) {
|
||||
SevEsWorkArea = (SEC_SEV_ES_WORK_AREA *)FixedPcdGet32 (PcdSevEsWorkAreaBase);
|
||||
if ((SevEsWorkArea != NULL) && (SevEsWorkArea->EncryptionMask != 0)) {
|
||||
//
|
||||
// The MSR has been read before, so it is safe to read it again and avoid
|
||||
// having to validate the CPUID information.
|
||||
@@ -139,7 +139,7 @@ MemEncryptSevGetEncryptionMask (
|
||||
if (!mSevEncryptionMaskSaved) {
|
||||
SEC_SEV_ES_WORK_AREA *SevEsWorkArea;
|
||||
|
||||
SevEsWorkArea = (SEC_SEV_ES_WORK_AREA *) FixedPcdGet32 (PcdSevEsWorkAreaBase);
|
||||
SevEsWorkArea = (SEC_SEV_ES_WORK_AREA *)FixedPcdGet32 (PcdSevEsWorkAreaBase);
|
||||
if (SevEsWorkArea != NULL) {
|
||||
mSevEncryptionMask = SevEsWorkArea->EncryptionMask;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user