mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-18 08:08:09 +02:00
Since the UEFI 2.11 has been released, the macro MAX_LOONGARCH_EXCEPTION has been added in MdePkg, so it is deleted in LoongArch folder header file. Cc: Ray Ni <ray.ni@intel.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Cc: Dun Tan <dun.tan@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Signed-off-by: Chao Li <lichao@loongson.cn>
27 lines
548 B
C
27 lines
548 B
C
/** @file
|
|
|
|
Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR>
|
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef PAGE_H_
|
|
#define PAGE_H_
|
|
|
|
#define INVALID_PAGE 0
|
|
|
|
#define LEVEL5 5
|
|
#define LEVEL4 4
|
|
#define LEVEL3 3
|
|
#define LEVEL2 2
|
|
#define LEVEL1 1
|
|
|
|
#define PTE_ATTRIBUTES_MASK 0x600000000000007EULL
|
|
|
|
#define PTE_PPN_MASK 0xFFFFFFFFF000ULL
|
|
#define PTE_PPN_SHIFT EFI_PAGE_SHIFT
|
|
#define LOONGARCH_MMU_PAGE_SHIFT EFI_PAGE_SHIFT
|
|
|
|
#endif // PAGE_H_
|