]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/BaseMemEncryptSevLib/X64/VirtualMemory.c
OvmfPkg/MemEncryptSevLib: clean up SetMemoryEncDec() comment block
[mirror_edk2.git] / OvmfPkg / Library / BaseMemEncryptSevLib / X64 / VirtualMemory.c
index 65b8babaac44b6ef3fe38cb0d29bd66f37393114..aed92127629f789542a1ab3afe6c9aa121154f55 100644 (file)
@@ -548,21 +548,23 @@ EnableReadOnlyPageWriteProtect (
 \r
 /**\r
   This function either sets or clears memory encryption bit for the memory\r
-  region specified by PhysicalAddress and length from the current page table\r
+  region specified by PhysicalAddress and Length from the current page table\r
   context.\r
 \r
-  The function iterates through the physicalAddress one page at a time, and set\r
+  The function iterates through the PhysicalAddress one page at a time, and set\r
   or clears the memory encryption mask in the page table. If it encounters\r
   that a given physical address range is part of large page then it attempts to\r
   change the attribute at one go (based on size), otherwise it splits the\r
   large pages into smaller (e.g 2M page into 4K pages) and then try to set or\r
   clear the encryption bit on the smallest page size.\r
 \r
+  @param[in]  Cr3BaseAddress          Cr3 Base Address (if zero then use\r
+                                      current CR3)\r
   @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]  Mode                    Set or Clear mode\r
-  @param[in]  Flush                   Flush the caches before applying the\r
+  @param[in]  CacheFlush              Flush the caches before applying the\r
                                       encryption mask\r
 \r
   @retval RETURN_SUCCESS              The attributes were cleared for the\r