mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-20 17:18:11 +02:00
Added a new library for LoongArch, it use for initialization the CPU MMU, it consumed the CpuMmuLib. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Chao Li <lichao@loongson.cn> Co-authored-by: Baoqi Zhang <zhangbaoqi@loongson.cn> Co-authored-by: Dongyan Qian <qiandongyan@loongson.cn> Co-authored-by: Xianglai Li <lixianglai@loongson.cn> Co-authored-by: Bibo Mao <maobibo@loongson.cn>
27 lines
802 B
C
27 lines
802 B
C
/** @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
|
|
);
|