Home
last modified time | relevance | path

Searched refs:mReservedVectors (Results 1 – 6 of 6) sorted by relevance

/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/
DDxeSmmCpuException.c50 switch (mReservedVectors[ExceptionType].Attribute) { in CommonExceptionHandler()
56 ExceptionHandlerContext->OldIdtHandler = mReservedVectors[ExceptionType].ExceptonHandler; in CommonExceptionHandler()
63 if (AcquireSpinLockOrFail (&mReservedVectors[ExceptionType].SpinLock)) { in CommonExceptionHandler()
67 mReservedVectors[ExceptionType].ApicId = GetApicId (); in CommonExceptionHandler()
70 … ExceptionHandlerContext->OldIdtHandler = mReservedVectors[ExceptionType].ExceptonHandler; in CommonExceptionHandler()
76 if (mReservedVectors[ExceptionType].ApicId == GetApicId ()) { in CommonExceptionHandler()
85 ReleaseSpinLock (&mReservedVectors[ExceptionType].SpinLock); in CommonExceptionHandler()
121 if (mReservedVectors[ExceptionType].Attribute != EFI_VECTOR_HANDOFF_HOOK_BEFORE) { in CommonExceptionHandler()
156 switch (mReservedVectors[Index].Attribute) { in UpdateIdtTable()
163 InitializeSpinLock (&mReservedVectors[Index].SpinLock); in UpdateIdtTable()
[all …]
DDxeException.c81 mReservedVectors = AllocatePool (sizeof (RESERVED_VECTORS_DATA) * CPU_INTERRUPT_NUM); in InitializeCpuInterruptHandlers()
82 ASSERT (mReservedVectors != NULL); in InitializeCpuInterruptHandlers()
83 SetMem ((VOID *) mReservedVectors, sizeof (RESERVED_VECTORS_DATA) * CPU_INTERRUPT_NUM, 0xff); in InitializeCpuInterruptHandlers()
85 Status = ReadAndVerifyVectorInfo (VectorInfo, mReservedVectors, CPU_INTERRUPT_NUM); in InitializeCpuInterruptHandlers()
87 FreePool (mReservedVectors); in InitializeCpuInterruptHandlers()
DCpuExceptionCommon.h46 extern RESERVED_VECTORS_DATA *mReservedVectors;
DCpuExceptionCommon.c24 RESERVED_VECTORS_DATA *mReservedVectors = NULL; variable
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/
DArchExceptionHandler.c67 mReservedVectors[ExceptionType].OldSs = SystemContext.SystemContextX64->Ss; in ArchSaveExceptionContext()
68 mReservedVectors[ExceptionType].OldSp = SystemContext.SystemContextX64->Rsp; in ArchSaveExceptionContext()
69 mReservedVectors[ExceptionType].OldFlags = SystemContext.SystemContextX64->Rflags; in ArchSaveExceptionContext()
70 mReservedVectors[ExceptionType].OldCs = SystemContext.SystemContextX64->Cs; in ArchSaveExceptionContext()
71 mReservedVectors[ExceptionType].OldIp = SystemContext.SystemContextX64->Rip; in ArchSaveExceptionContext()
72 mReservedVectors[ExceptionType].ExceptionData = SystemContext.SystemContextX64->ExceptionData; in ArchSaveExceptionContext()
82 …SystemContext.SystemContextX64->Rip = (UINTN) mReservedVectors[ExceptionType].HookAfterStubHeaderC… in ArchSaveExceptionContext()
97 SystemContext.SystemContextX64->Ss = mReservedVectors[ExceptionType].OldSs; in ArchRestoreExceptionContext()
98 SystemContext.SystemContextX64->Rsp = mReservedVectors[ExceptionType].OldSp; in ArchRestoreExceptionContext()
99 SystemContext.SystemContextX64->Rflags = mReservedVectors[ExceptionType].OldFlags; in ArchRestoreExceptionContext()
[all …]
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/
DArchExceptionHandler.c67 mReservedVectors[ExceptionType].OldFlags = SystemContext.SystemContextIa32->Eflags; in ArchSaveExceptionContext()
68 mReservedVectors[ExceptionType].OldCs = SystemContext.SystemContextIa32->Cs; in ArchSaveExceptionContext()
69 mReservedVectors[ExceptionType].OldIp = SystemContext.SystemContextIa32->Eip; in ArchSaveExceptionContext()
70 mReservedVectors[ExceptionType].ExceptionData = SystemContext.SystemContextIa32->ExceptionData; in ArchSaveExceptionContext()
80 …SystemContext.SystemContextIa32->Eip = (UINTN) mReservedVectors[ExceptionType].HookAfterStubHea… in ArchSaveExceptionContext()
95 SystemContext.SystemContextIa32->Eflags = mReservedVectors[ExceptionType].OldFlags; in ArchRestoreExceptionContext()
96 SystemContext.SystemContextIa32->Cs = mReservedVectors[ExceptionType].OldCs; in ArchRestoreExceptionContext()
97 SystemContext.SystemContextIa32->Eip = mReservedVectors[ExceptionType].OldIp; in ArchRestoreExceptionContext()
98 SystemContext.SystemContextIa32->ExceptionData = mReservedVectors[ExceptionType].ExceptionData; in ArchRestoreExceptionContext()