Home
last modified time | relevance | path

Searched refs:ReservedVectors (Results 1 – 7 of 7) sorted by relevance

/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/
DPeiDxeSmmCpuException.c33 RESERVED_VECTORS_DATA *ReservedVectors; in CommonExceptionHandlerWorker() local
37 ReservedVectors = ExceptionHandlerData->ReservedVectors; in CommonExceptionHandlerWorker()
40 switch (ReservedVectors[ExceptionType].Attribute) { in CommonExceptionHandlerWorker()
46 ExceptionHandlerContext->OldIdtHandler = ReservedVectors[ExceptionType].ExceptonHandler; in CommonExceptionHandlerWorker()
53 if (AcquireSpinLockOrFail (&ReservedVectors[ExceptionType].SpinLock)) { in CommonExceptionHandlerWorker()
57 ReservedVectors[ExceptionType].ApicId = GetApicId (); in CommonExceptionHandlerWorker()
60 ExceptionHandlerContext->OldIdtHandler = ReservedVectors[ExceptionType].ExceptonHandler; in CommonExceptionHandlerWorker()
66 if (ReservedVectors[ExceptionType].ApicId == GetApicId ()) { in CommonExceptionHandlerWorker()
75 ReleaseSpinLock (&ReservedVectors[ExceptionType].SpinLock); in CommonExceptionHandlerWorker()
112 if (ReservedVectors[ExceptionType].Attribute != EFI_VECTOR_HANDOFF_HOOK_BEFORE) { in CommonExceptionHandlerWorker()
[all …]
DDxeException.c71 mExceptionHandlerData.ReservedVectors = mReservedVectorsData; in InitializeCpuExceptionHandlers()
107 RESERVED_VECTORS_DATA *ReservedVectors; in InitializeCpuInterruptHandlers() local
110 ReservedVectors = AllocatePool (sizeof (RESERVED_VECTORS_DATA) * CPU_INTERRUPT_NUM); in InitializeCpuInterruptHandlers()
111 ASSERT (ReservedVectors != NULL); in InitializeCpuInterruptHandlers()
112 SetMem ((VOID *) ReservedVectors, sizeof (RESERVED_VECTORS_DATA) * CPU_INTERRUPT_NUM, 0xff); in InitializeCpuInterruptHandlers()
114 Status = ReadAndVerifyVectorInfo (VectorInfo, ReservedVectors, CPU_INTERRUPT_NUM); in InitializeCpuInterruptHandlers()
116 FreePool (ReservedVectors); in InitializeCpuInterruptHandlers()
157 mExceptionHandlerData.ReservedVectors = ReservedVectors; in InitializeCpuInterruptHandlers()
DPeiCpuException.c98 RESERVED_VECTORS_DATA *ReservedVectors; in InitializeCpuExceptionHandlers() local
100 ReservedVectors = AllocatePool (sizeof (RESERVED_VECTORS_DATA) * CPU_EXCEPTION_NUM); in InitializeCpuExceptionHandlers()
101 ASSERT (ReservedVectors != NULL); in InitializeCpuExceptionHandlers()
105 ExceptionHandlerData->ReservedVectors = ReservedVectors; in InitializeCpuExceptionHandlers()
111 FreePool (ReservedVectors); in InitializeCpuExceptionHandlers()
DSmmException.c71 mExceptionHandlerData.ReservedVectors = mReservedVectorsData; in InitializeCpuExceptionHandlers()
DCpuExceptionCommon.h51 RESERVED_VECTORS_DATA *ReservedVectors; member
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/
DArchExceptionHandler.c66 RESERVED_VECTORS_DATA *ReservedVectors; in ArchSaveExceptionContext() local
68 ReservedVectors = ExceptionHandlerData->ReservedVectors; in ArchSaveExceptionContext()
72 ReservedVectors[ExceptionType].OldSs = SystemContext.SystemContextX64->Ss; in ArchSaveExceptionContext()
73 ReservedVectors[ExceptionType].OldSp = SystemContext.SystemContextX64->Rsp; in ArchSaveExceptionContext()
74 ReservedVectors[ExceptionType].OldFlags = SystemContext.SystemContextX64->Rflags; in ArchSaveExceptionContext()
75 ReservedVectors[ExceptionType].OldCs = SystemContext.SystemContextX64->Cs; in ArchSaveExceptionContext()
76 ReservedVectors[ExceptionType].OldIp = SystemContext.SystemContextX64->Rip; in ArchSaveExceptionContext()
77 ReservedVectors[ExceptionType].ExceptionData = SystemContext.SystemContextX64->ExceptionData; in ArchSaveExceptionContext()
87 …SystemContext.SystemContextX64->Rip = (UINTN) ReservedVectors[ExceptionType].HookAfterStubHeaderCo… in ArchSaveExceptionContext()
104 RESERVED_VECTORS_DATA *ReservedVectors; in ArchRestoreExceptionContext() local
[all …]
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/
DArchExceptionHandler.c65 RESERVED_VECTORS_DATA *ReservedVectors; in ArchSaveExceptionContext() local
67 ReservedVectors = ExceptionHandlerData->ReservedVectors; in ArchSaveExceptionContext()
71 ReservedVectors[ExceptionType].OldFlags = SystemContext.SystemContextIa32->Eflags; in ArchSaveExceptionContext()
72 ReservedVectors[ExceptionType].OldCs = SystemContext.SystemContextIa32->Cs; in ArchSaveExceptionContext()
73 ReservedVectors[ExceptionType].OldIp = SystemContext.SystemContextIa32->Eip; in ArchSaveExceptionContext()
74 ReservedVectors[ExceptionType].ExceptionData = SystemContext.SystemContextIa32->ExceptionData; in ArchSaveExceptionContext()
84 …SystemContext.SystemContextIa32->Eip = (UINTN) ReservedVectors[ExceptionType].HookAfterStubHead… in ArchSaveExceptionContext()
101 RESERVED_VECTORS_DATA *ReservedVectors; in ArchRestoreExceptionContext() local
103 ReservedVectors = ExceptionHandlerData->ReservedVectors; in ArchRestoreExceptionContext()
104 SystemContext.SystemContextIa32->Eflags = ReservedVectors[ExceptionType].OldFlags; in ArchRestoreExceptionContext()
[all …]