]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/BaseMemEncryptSevLib/X64/PeiDxeVirtualMemory.c
OvmfPkg/BaseMemEncryptSevLib: remove Flush parameter
[mirror_edk2.git] / OvmfPkg / Library / BaseMemEncryptSevLib / X64 / PeiDxeVirtualMemory.c
index a18d336a87894434ad799e1c4776bd4b39fc6510..c696745f9d26483fbced08354f57a7493e5f653c 100644 (file)
@@ -828,8 +828,6 @@ Done:
   @param[in]  PhysicalAddress         The physical address that is the start\r
                                       address of a memory region.\r
   @param[in]  Length                  The length of memory region\r
-  @param[in]  Flush                   Flush the caches before applying the\r
-                                      encryption mask\r
 \r
   @retval RETURN_SUCCESS              The attributes were cleared for the\r
                                       memory region.\r
@@ -842,8 +840,7 @@ EFIAPI
 InternalMemEncryptSevSetMemoryDecrypted (\r
   IN  PHYSICAL_ADDRESS        Cr3BaseAddress,\r
   IN  PHYSICAL_ADDRESS        PhysicalAddress,\r
-  IN  UINTN                   Length,\r
-  IN  BOOLEAN                 Flush\r
+  IN  UINTN                   Length\r
   )\r
 {\r
 \r
@@ -852,7 +849,7 @@ InternalMemEncryptSevSetMemoryDecrypted (
            PhysicalAddress,\r
            Length,\r
            ClearCBit,\r
-           Flush\r
+           TRUE\r
            );\r
 }\r
 \r
@@ -865,8 +862,6 @@ InternalMemEncryptSevSetMemoryDecrypted (
   @param[in]  PhysicalAddress         The physical address that is the start\r
                                       address of a memory region.\r
   @param[in]  Length                  The length of memory region\r
-  @param[in]  Flush                   Flush the caches before applying the\r
-                                      encryption mask\r
 \r
   @retval RETURN_SUCCESS              The attributes were set for the memory\r
                                       region.\r
@@ -879,8 +874,7 @@ EFIAPI
 InternalMemEncryptSevSetMemoryEncrypted (\r
   IN  PHYSICAL_ADDRESS        Cr3BaseAddress,\r
   IN  PHYSICAL_ADDRESS        PhysicalAddress,\r
-  IN  UINTN                   Length,\r
-  IN  BOOLEAN                 Flush\r
+  IN  UINTN                   Length\r
   )\r
 {\r
   return SetMemoryEncDec (\r
@@ -888,7 +882,7 @@ InternalMemEncryptSevSetMemoryEncrypted (
            PhysicalAddress,\r
            Length,\r
            SetCBit,\r
-           Flush\r
+           TRUE\r
            );\r
 }\r
 \r