X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=OvmfPkg%2FAmdSevDxe%2FAmdSevDxe.c;h=8f02d0627e02ff46e6cc12c9ce0e5aaad0d0fc2d;hp=e472096320ea737a0c1713cd506c6842dbbe9378;hb=cd66bd73169fd8cd094887febab03a196d1bd996;hpb=24e4ad75546b3c1f334aab7057f6c10309807d8d
diff --git a/OvmfPkg/AmdSevDxe/AmdSevDxe.c b/OvmfPkg/AmdSevDxe/AmdSevDxe.c
index e472096320..8f02d0627e 100644
--- a/OvmfPkg/AmdSevDxe/AmdSevDxe.c
+++ b/OvmfPkg/AmdSevDxe/AmdSevDxe.c
@@ -1,30 +1,25 @@
/** @file
AMD Sev Dxe driver. This driver is dispatched early in DXE, due to being list
- in APRIORI. It clears C-bit from MMIO and NonExistent Memory space when SEV is
- enabled.
+ in APRIORI. It clears C-bit from MMIO and NonExistent Memory space when SEV
+ is enabled.
Copyright (c) 2017, AMD Inc. All rights reserved.
- This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD
- License which accompanies this distribution. The full text of the license may
- be found at http://opensource.org/licenses/bsd-license.php
+ This program and the accompanying materials are licensed and made available
+ under the terms and conditions of the BSD License which accompanies this
+ distribution. The full text of the license may be found at
+ http://opensource.org/licenses/bsd-license.php
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
+ WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
-#include
-
-#include
#include
-#include
-#include
-#include
#include
#include
+#include
EFI_STATUS
EFIAPI
@@ -47,8 +42,8 @@ AmdSevDxeEntryPoint (
//
// Iterate through the GCD map and clear the C-bit from MMIO and NonExistent
- // memory space. The NonExistent memory space will be used for mapping the MMIO
- // space added later (eg PciRootBridge). By clearing both known MMIO and
+ // memory space. The NonExistent memory space will be used for mapping the
+ // MMIO space added later (eg PciRootBridge). By clearing both known MMIO and
// NonExistent memory space can gurantee that current and furture MMIO adds
// will have C-bit cleared.
//
@@ -60,10 +55,12 @@ AmdSevDxeEntryPoint (
Desc = &AllDescMap[Index];
if (Desc->GcdMemoryType == EfiGcdMemoryTypeMemoryMappedIo ||
Desc->GcdMemoryType == EfiGcdMemoryTypeNonExistent) {
- Status = MemEncryptSevClearPageEncMask (0,
- Desc->BaseAddress,
- EFI_SIZE_TO_PAGES(Desc->Length),
- FALSE);
+ Status = MemEncryptSevClearPageEncMask (
+ 0,
+ Desc->BaseAddress,
+ EFI_SIZE_TO_PAGES (Desc->Length),
+ FALSE
+ );
ASSERT_EFI_ERROR (Status);
}
}