MmuLibCore.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /** @file
  2. Copyright (c) 2022 Loongson Technology Corporation Limited. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. @par Glossary:
  5. - Dir - Directory
  6. **/
  7. #ifndef MMU_LIB_CORE_H_
  8. #define MMU_LIB_CORE_H_
  9. /**
  10. Iterates through the page directory to initialize it.
  11. @param Dst A pointer to the directory of the page to initialize.
  12. @param Num The number of page directories to initialize.
  13. @param Src A pointer to the data used to initialize the page directory.
  14. @retval VOID.
  15. **/
  16. VOID
  17. PageDirInit (
  18. IN VOID *dest,
  19. IN UINTN Count,
  20. IN VOID *src
  21. );
  22. /**
  23. Page tables are established from memory-mapped tables.
  24. @param MemoryRegion A pointer to a memory-mapped table entry.
  25. @retval EFI_SUCCESS The page table was created successfully.
  26. @retval EFI_OUT_OF_RESOURCES Page table establishment failed due to resource exhaustion.
  27. **/
  28. EFI_STATUS
  29. FillTranslationTable (
  30. IN MEMORY_REGION_DESCRIPTOR *MemoryRegion
  31. );
  32. #endif // MMU_LIB_CORE_H_