implementation. Implement RISC-V CPU related functions in BaseCpuLib. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2672 Signed-off-by: Abner Chang <abner.chang@hpe.com> Co-authored-by: Gilbert Chen <gilbert.chen@hpe.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Zhiguang Liu <zhiguang.liu@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Gilbert Chen <gilbert.chen@hpe.com>
		
			
				
	
	
		
			70 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| #  Instance of CPU Library for various architecture.
 | |
| #
 | |
| #  CPU Library implemented using ASM functions for IA32, X64, ARM, AARCH64,
 | |
| #  PAL CALLs for IPF, and empty functions for EBC.
 | |
| #
 | |
| #  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
 | |
| #  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
 | |
| #  Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
 | |
| #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
 | |
| #
 | |
| #  SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = BaseCpuLib
 | |
|   MODULE_UNI_FILE                = BaseCpuLib.uni
 | |
|   FILE_GUID                      = 4FBD2538-249C-4b50-8F4A-A9E66609CBF6
 | |
|   MODULE_TYPE                    = BASE
 | |
|   VERSION_STRING                 = 1.0
 | |
|   LIBRARY_CLASS                  = CpuLib
 | |
| 
 | |
| 
 | |
| #
 | |
| #  VALID_ARCHITECTURES           = IA32 X64 EBC ARM AARCH64 RISCV64
 | |
| #
 | |
| 
 | |
| [Sources.IA32]
 | |
|   Ia32/CpuSleep.c | MSFT
 | |
|   Ia32/CpuFlushTlb.c | MSFT
 | |
| 
 | |
|   Ia32/CpuSleep.nasm| INTEL
 | |
|   Ia32/CpuFlushTlb.nasm| INTEL
 | |
| 
 | |
|   Ia32/CpuSleepGcc.c | GCC
 | |
|   Ia32/CpuFlushTlbGcc.c | GCC
 | |
| 
 | |
| [Sources.X64]
 | |
|   X64/CpuFlushTlb.nasm
 | |
|   X64/CpuSleep.nasm
 | |
| 
 | |
| 
 | |
| [Sources.EBC]
 | |
|   Ebc/CpuSleepFlushTlb.c
 | |
| 
 | |
| [Sources.ARM]
 | |
|   Arm/CpuFlushTlb.asm | RVCT
 | |
|   Arm/CpuSleep.asm    | RVCT
 | |
|   Arm/CpuFlushTlb.asm | MSFT
 | |
|   Arm/CpuSleep.asm    | MSFT
 | |
|   Arm/CpuFlushTlb.S   | GCC
 | |
|   Arm/CpuSleep.S      | GCC
 | |
| 
 | |
| [Sources.AARCH64]
 | |
|   AArch64/CpuFlushTlb.S   | GCC
 | |
|   AArch64/CpuSleep.S      | GCC
 | |
|   AArch64/CpuFlushTlb.asm | MSFT
 | |
|   AArch64/CpuSleep.asm    | MSFT
 | |
| 
 | |
| [Sources.RISCV64]
 | |
|   RiscV/Cpu.S
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
| 
 | |
| 
 |