The previous change adds unit test for DxeCpuExeptionHandlerLib in 64bit mode. This change create a PEIM to add unit test for PeiCpuExceptionHandlerLib based on previous change.It can run in both 32bit and 64bit modes. Signed-off-by: Dun Tan <dun.tan@intel.com> Cc: Eric Dong <eric.dong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com>
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
## @file
 | 
						|
# Unit tests of the PeiCpuExceptionHandlerLib instance.
 | 
						|
#
 | 
						|
# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
 | 
						|
# SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
##
 | 
						|
 | 
						|
[Defines]
 | 
						|
  INF_VERSION                    = 0x00010006
 | 
						|
  BASE_NAME                      = CpuExceptionHandlerPeiTest
 | 
						|
  FILE_GUID                      = 39A96CF7-F369-4357-9234-4B52F98A007F
 | 
						|
  MODULE_TYPE                    = PEIM
 | 
						|
  VERSION_STRING                 = 1.0
 | 
						|
  ENTRY_POINT                    = PeiEntryPoint
 | 
						|
 | 
						|
#
 | 
						|
# The following information is for reference only and not required by the build tools.
 | 
						|
#
 | 
						|
#  VALID_ARCHITECTURES           = IA32 X64
 | 
						|
#
 | 
						|
[Sources.Ia32]
 | 
						|
  Ia32/ArchExceptionHandlerTestAsm.nasm
 | 
						|
  Ia32/ArchExceptionHandlerTest.c
 | 
						|
 | 
						|
[Sources.X64]
 | 
						|
  X64/ArchExceptionHandlerTestAsm.nasm
 | 
						|
  X64/ArchExceptionHandlerTest.c
 | 
						|
 | 
						|
[Sources.common]
 | 
						|
  CpuExceptionHandlerTest.h
 | 
						|
  CpuExceptionHandlerTestCommon.c
 | 
						|
  PeiCpuExceptionHandlerUnitTest.c
 | 
						|
 | 
						|
[Packages]
 | 
						|
  MdePkg/MdePkg.dec
 | 
						|
  MdeModulePkg/MdeModulePkg.dec
 | 
						|
  UefiCpuPkg/UefiCpuPkg.dec
 | 
						|
 | 
						|
[LibraryClasses]
 | 
						|
  BaseLib
 | 
						|
  BaseMemoryLib
 | 
						|
  DebugLib
 | 
						|
  UnitTestLib
 | 
						|
  MemoryAllocationLib
 | 
						|
  CpuExceptionHandlerLib
 | 
						|
  PeimEntryPoint
 | 
						|
  HobLib
 | 
						|
  PeiServicesLib
 | 
						|
  CpuPageTableLib
 | 
						|
  PeiServicesTablePointerLib
 | 
						|
 | 
						|
[Pcd]
 | 
						|
  gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard   ## CONSUMES
 | 
						|
  gUefiCpuPkgTokenSpaceGuid.PcdCpuApStackSize       ## CONSUMES
 | 
						|
 | 
						|
[Ppis]
 | 
						|
  gEdkiiPeiMpServices2PpiGuid                       ## CONSUMES
 | 
						|
 | 
						|
[Depex]
 | 
						|
  gEdkiiPeiMpServices2PpiGuid AND
 | 
						|
  gEfiPeiMemoryDiscoveredPpiGuid
 |