UefiCpuPkg: Add Unit tests for PeiCpuExceptionHandlerLib
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>
This commit is contained in:
@ -93,6 +93,15 @@ typedef struct {
|
||||
UINT64 R15;
|
||||
} GENERAL_REGISTER;
|
||||
|
||||
typedef struct {
|
||||
UINT32 Edi;
|
||||
UINT32 Esi;
|
||||
UINT32 Ebx;
|
||||
UINT32 Edx;
|
||||
UINT32 Ecx;
|
||||
UINT32 Eax;
|
||||
} GENERAL_REGISTER_IA32;
|
||||
|
||||
extern UINTN mFaultInstructionLength;
|
||||
extern EFI_EXCEPTION_TYPE mExceptionType;
|
||||
extern UINTN mRspAddress[];
|
||||
|
Reference in New Issue
Block a user