TianoCore EDK2 master
|
#include <Uefi/UefiBaseType.h>
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | MemoryRegionMap (IN OUT UINTN *PageTable OPTIONAL, IN UINT64 PageWalkCfg, IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length, IN UINT64 Attributes, IN UINT64 AttributeMask) |
Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CpuMmuLib.h.
EFI_STATUS EFIAPI MemoryRegionMap | ( | IN OUT UINTN *PageTable | OPTIONAL, |
IN UINT64 | PageWalkCfg, | ||
IN EFI_PHYSICAL_ADDRESS | BaseAddress, | ||
IN UINT64 | Length, | ||
IN UINT64 | Attributes, | ||
IN UINT64 | AttributeMask | ||
) |
Maps the memory region in the page table to the specified attributes.
[in,out] | PageTable | The pointer to the page table to update, or pointer to NULL if a new page table is to be created. |
[in] | PageWalkCfg | The page walk controller configure. |
[in] | BaseAddress | The base address of the memory region to set the Attributes. |
[in] | Length | The length of the memory region to set the Attributes. |
[in] | Attributes | The bitmask of attributes to set, which refer to UEFI SPEC 7.2.3(EFI_BOOT_SERVICES.GetMemoryMap()). |
[in] | AttributeMask | Mask of memory attributes to take into account. |
EFI_SUCCESS | The Attributes was set successfully or Length is 0. |
EFI_INVALID_PARAMETER | PageTable is NULL. |
EFI_UNSUPPORTED | *PageTable is NULL. |
Maps the memory region in the page table to the specified attributes.
[in,out] | PageTable | The pointer to the page table to update, or pointer to NULL if a new page table is to be created. |
[in] | PageWalkCfg | The page walk controller configure. |
[in] | BaseAddress | The base address of the memory region to set the Attributes. |
[in] | Length | The length of the memory region to set the Attributes. |
[in] | Attributes | The bitmask of attributes to set, which refer to UEFI SPEC 7.2.3(EFI_BOOT_SERVICES.GetMemoryMap()). |
[in] | AttributeMask | Mask of memory attributes to take into account. |
EFI_SUCCESS | The Attributes was set successfully or Length is 0. |
EFI_INVALID_PARAMETER | PageTable is NULL, PageWalkCfg is invalid. |
EFI_UNSUPPORTED | *PageTable is NULL. |