Home
last modified time | relevance | path

Searched refs:ExceptionType (Results 1 – 25 of 60) sorted by relevance

123

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/DebugSupportDxe/Ia32/
DPlDebugSupport.c80 IN EFI_EXCEPTION_TYPE ExceptionType, in HookEntry() argument
86 CreateEntryStub (ExceptionType, (VOID **) &IdtEntryTable[ExceptionType].StubEntry); in HookEntry()
96 ReadIdtGateDescriptor (ExceptionType, &(IdtEntryTable[ExceptionType].OrigDesc)); in HookEntry()
100 …IdtEntryTable[ExceptionType].OrigVector = (DEBUG_PROC) GetInterruptHandleFromIdt (&(IdtEntryTable[ in HookEntry()
105 Vect2Desc (&IdtEntryTable[ExceptionType].NewDesc, IdtEntryTable[ExceptionType].StubEntry); in HookEntry()
109 IdtEntryTable[ExceptionType].RegisteredCallback = NewCallback; in HookEntry()
114 WriteIdtGateDescriptor (ExceptionType, &(IdtEntryTable[ExceptionType].NewDesc)); in HookEntry()
132 IN EFI_EXCEPTION_TYPE ExceptionType in UnhookEntry() argument
145 WriteIdtGateDescriptor (ExceptionType, &(IdtEntryTable[ExceptionType].OrigDesc)); in UnhookEntry()
227 IN EFI_EXCEPTION_TYPE ExceptionType in RegisterExceptionCallback() argument
[all …]
DPlDebugSupportIa32.c57 IN EFI_EXCEPTION_TYPE ExceptionType, in CreateEntryStub() argument
81 StubCopy[0x0c] = (UINT8) ExceptionType; in CreateEntryStub()
111 EFI_EXCEPTION_TYPE ExceptionType in ManageIdtEntryTable() argument
118 …if (CompareMem (&IdtEntryTable[ExceptionType].NewDesc, &NullDesc, sizeof (IA32_IDT_GATE_DESCRIPTOR… in ManageIdtEntryTable()
128 UnhookEntry (ExceptionType); in ManageIdtEntryTable()
140 HookEntry (ExceptionType, NewCallback); in ManageIdtEntryTable()
DDebugSupport.h190 IN EFI_EXCEPTION_TYPE ExceptionType
228 IN EFI_EXCEPTION_TYPE ExceptionType,
266 EFI_EXCEPTION_TYPE ExceptionType
283 IN EFI_EXCEPTION_TYPE ExceptionType,
295 IN EFI_EXCEPTION_TYPE ExceptionType
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/DebugSupportDxe/Ipf/
DPlDebugSupport.c81 EFI_EXCEPTION_TYPE ExceptionType; in PlUnloadDebugSupportDriver() local
83 for (ExceptionType = 0; ExceptionType < NUM_IVT_ENTRIES; ExceptionType++) { in PlUnloadDebugSupportDriver()
84 ManageIvtEntryTable (ExceptionType, NULL, NULL); in PlUnloadDebugSupportDriver()
101 IN EFI_EXCEPTION_TYPE ExceptionType, in CommonHandler() argument
113 (INT32)ExceptionType, in CommonHandler()
123 if (IvtEntryTable[ExceptionType].RegisteredCallback != NULL) { in CommonHandler()
124 if (ExceptionType != EXCEPT_IPF_EXTERNAL_INTERRUPT) { in CommonHandler()
125 IvtEntryTable[ExceptionType].RegisteredCallback (ExceptionType, Context.SystemContextIpf); in CommonHandler()
127 IvtEntryTable[ExceptionType].RegisteredCallback (Context.SystemContextIpf); in CommonHandler()
184 IN EFI_EXCEPTION_TYPE ExceptionType, in ManageIvtEntryTable() argument
[all …]
DPlDebugSupport.h203 IN EFI_EXCEPTION_TYPE ExceptionType
239 IN EFI_EXCEPTION_TYPE ExceptionType,
256 IN EFI_EXCEPTION_TYPE ExceptionType,
272 IN EFI_EXCEPTION_TYPE ExceptionType,
285 IN EFI_EXCEPTION_TYPE ExceptionType
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/
DPeiDxeSmmCpuException.c27 IN EFI_EXCEPTION_TYPE ExceptionType, in CommonExceptionHandlerWorker() argument
40 switch (ReservedVectors[ExceptionType].Attribute) { in CommonExceptionHandlerWorker()
45 …ExceptionHandlerContext->ExceptionDataFlag = (mErrorCodeFlag & (1 << ExceptionType)) ? TRUE : FALS… 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()
58 ArchSaveExceptionContext (ExceptionType, SystemContext, ExceptionHandlerData); in CommonExceptionHandlerWorker()
59 …ExceptionHandlerContext->ExceptionDataFlag = (mErrorCodeFlag & (1 << ExceptionType)) ? TRUE : FALS… in CommonExceptionHandlerWorker()
60 ExceptionHandlerContext->OldIdtHandler = ReservedVectors[ExceptionType].ExceptonHandler; in CommonExceptionHandlerWorker()
66 if (ReservedVectors[ExceptionType].ApicId == GetApicId ()) { in CommonExceptionHandlerWorker()
[all …]
DCpuExceptionCommon.h134 IN EFI_EXCEPTION_TYPE ExceptionType,
205 IN UINTN ExceptionType,
219 IN UINTN ExceptionType,
267 IN EFI_EXCEPTION_TYPE ExceptionType
279 IN EFI_EXCEPTION_TYPE ExceptionType,
DSmmException.c42 IN EFI_EXCEPTION_TYPE ExceptionType, in CommonExceptionHandler() argument
46 CommonExceptionHandlerWorker (ExceptionType, SystemContext, &mExceptionHandlerData); in CommonExceptionHandler()
DCpuExceptionCommon.c66 IN EFI_EXCEPTION_TYPE ExceptionType in GetExceptionNameStr() argument
69 if ((UINTN) ExceptionType < EXCEPTION_KNOWN_NAME_NUM) { in GetExceptionNameStr()
70 return mExceptionNameStr[ExceptionType]; in GetExceptionNameStr()
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmExceptionLib/
DArmExceptionLib.c38 IN EFI_EXCEPTION_TYPE ExceptionType,
260 IN EFI_EXCEPTION_TYPE ExceptionType, in RegisterCpuInterruptHandler() argument
263 if (ExceptionType > gMaxExceptionNumber) { in RegisterCpuInterruptHandler()
267 if ((ExceptionHandler != NULL) && (gExceptionHandlers[ExceptionType] != NULL)) { in RegisterCpuInterruptHandler()
271 gExceptionHandlers[ExceptionType] = ExceptionHandler; in RegisterCpuInterruptHandler()
296 IN EFI_EXCEPTION_TYPE ExceptionType, in RegisterExceptionHandler() argument
300 return RegisterCpuInterruptHandler(ExceptionType, InterruptHandler); in RegisterExceptionHandler()
306 IN EFI_EXCEPTION_TYPE ExceptionType, in CommonCExceptionHandler() argument
310 if (ExceptionType <= gMaxExceptionNumber) { in CommonCExceptionHandler()
311 if (gExceptionHandlers[ExceptionType]) { in CommonCExceptionHandler()
[all …]
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/
DArchExceptionHandler.c60 IN UINTN ExceptionType, in ArchSaveExceptionContext() argument
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()
99 IN UINTN ExceptionType, in ArchRestoreExceptionContext() argument
107 SystemContext.SystemContextX64->Ss = ReservedVectors[ExceptionType].OldSs; in ArchRestoreExceptionContext()
[all …]
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/
DArchExceptionHandler.c59 IN UINTN ExceptionType, in ArchSaveExceptionContext() argument
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()
96 IN UINTN ExceptionType, in ArchRestoreExceptionContext() argument
104 SystemContext.SystemContextIa32->Eflags = ReservedVectors[ExceptionType].OldFlags; in ArchRestoreExceptionContext()
105 SystemContext.SystemContextIa32->Cs = ReservedVectors[ExceptionType].OldCs; in ArchRestoreExceptionContext()
106 SystemContext.SystemContextIa32->Eip = ReservedVectors[ExceptionType].OldIp; in ArchRestoreExceptionContext()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/DebugSupportDxe/X64/
DPlDebugSupportX64.c59 IN EFI_EXCEPTION_TYPE ExceptionType, in CreateEntryStub() argument
81 StubCopy[0x1] = (UINT8) ExceptionType; in CreateEntryStub()
112 EFI_EXCEPTION_TYPE ExceptionType in ManageIdtEntryTable() argument
119 …if (CompareMem (&IdtEntryTable[ExceptionType].NewDesc, &NullDesc, sizeof (IA32_IDT_GATE_DESCRIPTOR… in ManageIdtEntryTable()
129 UnhookEntry (ExceptionType); in ManageIdtEntryTable()
141 HookEntry (ExceptionType, NewCallback); in ManageIdtEntryTable()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/EbcDxe/EbcDebugger/
DEdbCmdExtIo.c33 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerExtIoIB() argument
62 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerExtIoIW() argument
90 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerExtIoID() argument
117 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerExtIoOB() argument
145 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerExtIoOW() argument
173 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerExtIoOD() argument
DEdbCmdExtPci.c33 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerExtPciPCIL() argument
60 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerExtPciPCID() argument
87 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerExtPciCFGB() argument
115 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerExtPciCFGW() argument
142 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerExtPciCFGD() argument
DEdb.c309 IN EFI_EXCEPTION_TYPE ExceptionType, in InitDebuggerPrivateData() argument
339 if (ExceptionType == EXCEPT_EBC_BREAKPOINT) { in InitDebuggerPrivateData()
373 IN EFI_EXCEPTION_TYPE ExceptionType, in DeinitDebuggerPrivateData() argument
429 IN EFI_EXCEPTION_TYPE ExceptionType, in PrintExceptionReason() argument
458 EDBPrint (L"Exception Type - %x", (UINTN)ExceptionType); in PrintExceptionReason()
459 if ((ExceptionType >= EXCEPT_EBC_UNDEFINED) && (ExceptionType <= EXCEPT_EBC_STEP)) { in PrintExceptionReason()
460 EDBPrint (L" (%s)\n", mExceptionStr[ExceptionType]); in PrintExceptionReason()
482 IN EFI_EXCEPTION_TYPE ExceptionType, in EdbExceptionHandler() argument
514 InitDebuggerPrivateData (&mDebuggerPrivate, ExceptionType, SystemContext, mInitialized); in EdbExceptionHandler()
519 PrintExceptionReason (&mDebuggerPrivate, ExceptionType, SystemContext, mInitialized); in EdbExceptionHandler()
[all …]
DEdbCmdBreak.c34 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerBreakOnCALL() argument
80 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerBreakOnCALLEX() argument
126 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerBreakOnRET() argument
172 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerBreakOnEntrypoint() argument
220 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerBreakOnThunk() argument
267 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerBreakOnKey() argument
DEdbCmdStep.c85 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerStepInto() argument
110 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerStepOver() argument
145 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerStepOut() argument
DEdbCmdMemory.c418 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerMemoryDB() argument
441 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerMemoryDW() argument
464 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerMemoryDD() argument
487 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerMemoryDQ() argument
510 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerMemoryEB() argument
533 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerMemoryEW() argument
556 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerMemoryED() argument
579 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerMemoryEQ() argument
DEdbCmdScope.c33 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerScope() argument
86 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerList() argument
DEdbCmdBreakpoint.c258 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerBreakpointList() argument
318 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerBreakpointSet() argument
376 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerBreakpointClear() argument
443 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerBreakpointDisable() argument
504 IN EFI_EXCEPTION_TYPE ExceptionType, in DebuggerBreakpointEnable() argument
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugAgentSymbolsBaseLib/Arm/
DDebugAgentException.asm81 mov R0,#0 ; ExceptionType
93 mov R0,#1 ; ExceptionType
105 mov R0,#2 ; ExceptionType
117 mov R0,#3 ; ExceptionType
129 mov R0,#4 ; ExceptionType
140 mov R0,#5 ; ExceptionType
152 mov R0,#6 ; ExceptionType
165 mov R0,#7 ; ExceptionType
208 sub r4, r0, #1 ; if (ExceptionType == 1 || ExceptionType ==2)) {
223 ; R0 is ExceptionType
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/GdbDebugAgent/Arm/
DExceptionSupport.ARMv6.asm103 mov R0,#1 ; ExceptionType
115 mov R0,#2 ; ExceptionType
127 mov R0,#3 ; ExceptionType
139 mov R0,#4 ; ExceptionType
150 mov R0,#5 ; ExceptionType
163 mov R0,#7 ; ExceptionType
206 sub r4, r0, #1 ; if (ExceptionType == 1 || ExceptionType ==2)) {
221 ; R0 is ExceptionType
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmExceptionLib/Arm/
DExceptionSupport.asm103 mov R0,#0 ; ExceptionType
115 mov R0,#1 ; ExceptionType
126 mov R0,#2 ; ExceptionType
138 mov R0,#3 ; ExceptionType
150 mov R0,#4 ; ExceptionType
161 mov R0,#5 ; ExceptionType
173 mov R0,#6 ; ExceptionType
186 mov R0,#7 ; ExceptionType
229 sub r4, r0, #1 ; if (ExceptionType == 1 || ExceptionType == 2)) {
244 ; R0 is ExceptionType
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/EbcDxe/
DEbcInt.c295 IN EFI_EXCEPTION_TYPE ExceptionType
681 IN EFI_EXCEPTION_TYPE ExceptionType in EbcDebugRegisterExceptionCallback() argument
684 if ((ExceptionType < 0) || (ExceptionType > MAX_EBC_EXCEPTION)) { in EbcDebugRegisterExceptionCallback()
687 if ((mDebugExceptionCallback[ExceptionType] == NULL) && (ExceptionCallback == NULL)) { in EbcDebugRegisterExceptionCallback()
690 if ((mDebugExceptionCallback[ExceptionType] != NULL) && (ExceptionCallback != NULL)) { in EbcDebugRegisterExceptionCallback()
693 mDebugExceptionCallback[ExceptionType] = ExceptionCallback; in EbcDebugRegisterExceptionCallback()
740 IN EFI_EXCEPTION_TYPE ExceptionType, in EbcDebugSignalException() argument
748 ASSERT ((ExceptionType >= 0) && (ExceptionType <= MAX_EBC_EXCEPTION)); in EbcDebugSignalException()
753 VmPtr->LastException = (UINTN) ExceptionType; in EbcDebugSignalException()
768 if (mDebugExceptionCallback[ExceptionType] != NULL) { in EbcDebugSignalException()
[all …]

123