Use CPUID Leaf 01 to detect support for CLFLUSH instruction. If CLFLUSH is supported, use CPUID to determine the cache line size to use with CLFLUSH. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17211 6f19259b-4bc3-4df7-8a09-765794883524
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
## @file
 | 
						|
#  Instance of Cache Maintenance Library using Base Library services.
 | 
						|
#
 | 
						|
#  Cache Maintenance Library that uses Base Library services to maintain caches.
 | 
						|
#  This library assumes there are no chipset dependencies required to maintain caches.
 | 
						|
#
 | 
						|
#  Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
 | 
						|
#  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
 | 
						|
#
 | 
						|
#  This program and the accompanying materials
 | 
						|
#  are licensed and made available under the terms and conditions of the BSD License
 | 
						|
#  which accompanies this distribution. The full text of the license may be found at
 | 
						|
#  http://opensource.org/licenses/bsd-license.php.
 | 
						|
#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 | 
						|
#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | 
						|
#
 | 
						|
#
 | 
						|
##
 | 
						|
 | 
						|
[Defines]
 | 
						|
  INF_VERSION                    = 0x00010005
 | 
						|
  BASE_NAME                      = BaseCacheMaintenanceLib
 | 
						|
  MODULE_UNI_FILE                = BaseCacheMaintenanceLib.uni
 | 
						|
  FILE_GUID                      = 123dd843-57c9-4158-8418-ce68b3944ce7
 | 
						|
  MODULE_TYPE                    = BASE
 | 
						|
  VERSION_STRING                 = 1.1
 | 
						|
  LIBRARY_CLASS                  = CacheMaintenanceLib 
 | 
						|
 | 
						|
 | 
						|
#
 | 
						|
#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC ARM AARCH64
 | 
						|
#
 | 
						|
 | 
						|
[Sources.IA32]
 | 
						|
  X86Cache.c
 | 
						|
 | 
						|
[Sources.X64]
 | 
						|
  X86Cache.c
 | 
						|
 | 
						|
[Sources.IPF]
 | 
						|
  IpfCache.c
 | 
						|
 | 
						|
[Sources.EBC]
 | 
						|
  EbcCache.c
 | 
						|
 | 
						|
[Sources.ARM]
 | 
						|
  ArmCache.c
 | 
						|
 | 
						|
[Sources.AARCH64]
 | 
						|
  ArmCache.c
 | 
						|
 | 
						|
[Packages]
 | 
						|
  MdePkg/MdePkg.dec
 | 
						|
 | 
						|
[LibraryClasses]
 | 
						|
  BaseLib
 | 
						|
  DebugLib
 | 
						|
 | 
						|
[LibraryClasses.Ipf]
 | 
						|
  PalLib
 | 
						|
 |