## @file\r
# Instance of CPU Library for various architecture.\r
#\r
-# CPU Library implemented using ASM functions for IA-32 and X64,\r
+# CPU Library implemented using ASM functions for IA32, X64, ARM, AARCH64,\r
# PAL CALLs for IPF, and empty functions for EBC.\r
#\r
-# Copyright (c) 2007 - 2010, Intel Corporation.<BR>\r
-# Portions Copyright (c) 2008-2009 Apple Inc. All rights reserved.\r
+# Copyright (c) 2007 - 2022, Intel Corporation. All rights reserved.<BR>\r
+# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+# Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>\r
+# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
+# Portions Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
#\r
-# All rights reserved. This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
#\r
##\r
[Defines]\r
INF_VERSION = 0x00010005\r
BASE_NAME = BaseCpuLib\r
+ MODULE_UNI_FILE = BaseCpuLib.uni\r
FILE_GUID = 4FBD2538-249C-4b50-8F4A-A9E66609CBF6\r
MODULE_TYPE = BASE\r
VERSION_STRING = 1.0\r
- LIBRARY_CLASS = CpuLib \r
+ LIBRARY_CLASS = CpuLib\r
\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC ARM\r
+# VALID_ARCHITECTURES = IA32 X64 EBC ARM AARCH64 RISCV64 LOONGARCH64\r
#\r
\r
[Sources.IA32]\r
- Ia32/CpuSleep.c | MSFT \r
- Ia32/CpuFlushTlb.c | MSFT \r
-\r
- Ia32/CpuSleep.asm | INTEL \r
- Ia32/CpuFlushTlb.asm | INTEL \r
-\r
- Ia32/CpuSleep.S | GCC \r
- Ia32/CpuFlushTlb.S | GCC \r
+ Ia32/CpuSleep.c | MSFT\r
+ Ia32/CpuSleep.nasm| INTEL\r
+ Ia32/CpuSleepGcc.c | GCC\r
+ X86CpuFlushTlb.c\r
\r
[Sources.X64]\r
- X64/CpuFlushTlb.asm \r
- X64/CpuSleep.asm\r
-\r
- X64/CpuSleep.S | GCC \r
- X64/CpuFlushTlb.S | GCC \r
+ X86CpuFlushTlb.c\r
+ X64/CpuSleep.nasm\r
\r
-[Sources.IPF]\r
- Ipf/CpuFlushTlb.s\r
- Ipf/CpuSleep.c\r
\r
[Sources.EBC]\r
Ebc/CpuSleepFlushTlb.c\r
\r
[Sources.ARM]\r
- Arm/CpuFlushTlb.asm | RVCT\r
- Arm/CpuSleep.asm | RVCT \r
+ Arm/CpuFlushTlb.asm | MSFT\r
+ Arm/CpuSleep.asm | MSFT\r
Arm/CpuFlushTlb.S | GCC\r
- Arm/CpuSleep.S | GCC \r
+ Arm/CpuSleep.S | GCC\r
+\r
+[Sources.AARCH64]\r
+ AArch64/CpuFlushTlb.S | GCC\r
+ AArch64/CpuSleep.S | GCC\r
+ AArch64/CpuFlushTlb.asm | MSFT\r
+ AArch64/CpuSleep.asm | MSFT\r
+\r
+[Sources.RISCV64]\r
+ RiscV/Cpu.S\r
+\r
+[Sources.LOONGARCH64]\r
+ LoongArch/CpuFlushTlb.S | GCC\r
+ LoongArch/CpuSleep.S | GCC\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
\r
\r
-[LibraryClasses.IPF]\r
- PalLib\r
- BaseLib\r