summaryrefslogtreecommitdiff
path: root/OvmfPkg/Include/Library/CpuMmuInitLib.h
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/Include/Library/CpuMmuInitLib.h')
-rw-r--r--OvmfPkg/Include/Library/CpuMmuInitLib.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/OvmfPkg/Include/Library/CpuMmuInitLib.h b/OvmfPkg/Include/Library/CpuMmuInitLib.h
new file mode 100644
index 0000000..44b5664
--- /dev/null
+++ b/OvmfPkg/Include/Library/CpuMmuInitLib.h
@@ -0,0 +1,26 @@
+/** @file
+ CPU Memory Map Unit Initialization library header.
+
+ Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR>
+
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#include <Uefi/UefiSpec.h>
+
+/**
+ Create a page table and initialize the memory management unit(MMU).
+
+ @param[in] MemoryTable A pointer to a memory ragion table.
+
+ @retval EFI_SUCCESS Configure MMU successfully.
+ EFI_INVALID_PARAMETER MemoryTable is NULL.
+ EFI_UNSUPPORTED MemoryRegionMap failed or out of memory space or size not aligned
+ or MaxLivel out of bound.
+**/
+EFI_STATUS
+EFIAPI
+ConfigureMemoryManagementUnit (
+ IN EFI_MEMORY_DESCRIPTOR *MemoryTable
+ );