Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/
DArchDebugSupport.c28 IA32_DESCRIPTOR IdtDescriptor; in InitializeDebugIdt() local
33 AsmReadIdtr (&IdtDescriptor); in InitializeDebugIdt()
40 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor.Base; in InitializeDebugIdt()
86 IA32_DESCRIPTOR IdtDescriptor; in GetExceptionHandlerInIdtEntry() local
88 AsmReadIdtr (&IdtDescriptor); in GetExceptionHandlerInIdtEntry()
89 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor.Base; in GetExceptionHandlerInIdtEntry()
109 IA32_DESCRIPTOR IdtDescriptor; in SetExceptionHandlerInIdtEntry() local
111 AsmReadIdtr (&IdtDescriptor); in SetExceptionHandlerInIdtEntry()
112 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor.Base; in SetExceptionHandlerInIdtEntry()
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/
DArchDebugSupport.c28 IA32_DESCRIPTOR IdtDescriptor; in InitializeDebugIdt() local
33 AsmReadIdtr (&IdtDescriptor); in InitializeDebugIdt()
40 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor.Base; in InitializeDebugIdt()
88 IA32_DESCRIPTOR IdtDescriptor; in GetExceptionHandlerInIdtEntry() local
90 AsmReadIdtr (&IdtDescriptor); in GetExceptionHandlerInIdtEntry()
91 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor.Base; in GetExceptionHandlerInIdtEntry()
112 IA32_DESCRIPTOR IdtDescriptor; in SetExceptionHandlerInIdtEntry() local
114 AsmReadIdtr (&IdtDescriptor); in SetExceptionHandlerInIdtEntry()
115 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor.Base; in SetExceptionHandlerInIdtEntry()
/device/linaro/bootloader/edk2/IntelFspPkg/FspSecCore/
DSecMain.c63 IA32_DESCRIPTOR IdtDescriptor; in SecStartup() local
101 IdtDescriptor.Base = (UINTN) &IdtTableInStack.IdtTable; in SecStartup()
102 IdtDescriptor.Limit = (UINT16)(sizeof (IdtTableInStack.IdtTable) - 1); in SecStartup()
104 AsmWriteIdtr (&IdtDescriptor); in SecStartup()
160 IA32_DESCRIPTOR IdtDescriptor; in SecTemporaryRamSupport() local
191 AsmReadIdtr (&IdtDescriptor); in SecTemporaryRamSupport()
192 IdtDescriptor.Base = IdtDescriptor.Base - (UINTN)OldStack + (UINTN)NewStack; in SecTemporaryRamSupport()
194 AsmWriteIdtr (&IdtDescriptor); in SecTemporaryRamSupport()
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/Ia32/
DIntHandlerFuncs.c29 IN IA32_DESCRIPTOR *IdtDescriptor, in CheckDebugAgentHandler() argument
36 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base; in CheckDebugAgentHandler()
59 IN IA32_DESCRIPTOR *IdtDescriptor, in SaveAndUpdateIdtEntry1() argument
67 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base; in SaveAndUpdateIdtEntry1()
91 IN IA32_DESCRIPTOR *IdtDescriptor, in RestoreIdtEntry1() argument
97 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base; in RestoreIdtEntry1()
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/X64/
DIntHandlerFuncs.c29 IN IA32_DESCRIPTOR *IdtDescriptor, in CheckDebugAgentHandler() argument
36 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base; in CheckDebugAgentHandler()
60 IN IA32_DESCRIPTOR *IdtDescriptor, in SaveAndUpdateIdtEntry1() argument
68 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base; in SaveAndUpdateIdtEntry1()
93 IN IA32_DESCRIPTOR *IdtDescriptor, in RestoreIdtEntry1() argument
99 IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base; in RestoreIdtEntry1()
/device/linaro/bootloader/edk2/IntelFsp2Pkg/FspSecCore/
DSecMain.c63 IA32_DESCRIPTOR IdtDescriptor; in SecStartup() local
101 IdtDescriptor.Base = (UINTN) &IdtTableInStack.IdtTable; in SecStartup()
102 IdtDescriptor.Limit = (UINT16)(sizeof (IdtTableInStack.IdtTable) - 1); in SecStartup()
104 AsmWriteIdtr (&IdtDescriptor); in SecStartup()
170 IA32_DESCRIPTOR IdtDescriptor; in SecTemporaryRamSupport() local
206 AsmReadIdtr (&IdtDescriptor); in SecTemporaryRamSupport()
207 IdtDescriptor.Base = IdtDescriptor.Base - (UINTN)OldStack + (UINTN)NewStack; in SecTemporaryRamSupport()
209 AsmWriteIdtr (&IdtDescriptor); in SecTemporaryRamSupport()
/device/linaro/bootloader/edk2/CorebootModulePkg/SecCore/
DSecMain.c72 IA32_DESCRIPTOR IdtDescriptor; in SecStartup() local
113 IdtDescriptor.Base = (UINTN) &IdtTableInStack.IdtTable; in SecStartup()
114 IdtDescriptor.Limit = (UINT16)(sizeof (IdtTableInStack.IdtTable) - 1); in SecStartup()
116 AsmWriteIdtr (&IdtDescriptor); in SecStartup()
205 IA32_DESCRIPTOR IdtDescriptor; in SecTemporaryRamSupport() local
267 AsmReadIdtr (&IdtDescriptor); in SecTemporaryRamSupport()
268 IdtDescriptor.Base = IdtDescriptor.Base - (UINTN)OldStack + (UINTN)NewStack; in SecTemporaryRamSupport()
270 AsmWriteIdtr (&IdtDescriptor); in SecTemporaryRamSupport()
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Acpi/Dxe/BootScriptExecutorDxe/IA32/
DSetIdtEntry.c46 IA32_DESCRIPTOR *IdtDescriptor; in SetIdtEntry() local
52 IdtDescriptor = (IA32_DESCRIPTOR *) (UINTN) (AcpiS3Context->IdtrProfile); in SetIdtEntry()
53 …IdtEntry = (INTERRUPT_GATE_DESCRIPTOR *)(IdtDescriptor->Base + (3 * sizeof (INTERRUPT_GATE_DESCRIP… in SetIdtEntry()
61 AsmWriteIdtr (IdtDescriptor); in SetIdtEntry()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/
DSetIdtEntry.c31 IA32_DESCRIPTOR *IdtDescriptor; in SetIdtEntry() local
38 IdtDescriptor = (IA32_DESCRIPTOR *) (UINTN) (AcpiS3Context->IdtrProfile); in SetIdtEntry()
39 AsmWriteIdtr (IdtDescriptor); in SetIdtEntry()
53 …IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *)(IdtDescriptor->Base + (3 * sizeof (IA32_IDT_GATE_DESCRIPTO… in SetIdtEntry()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/FspSupport/Library/SecFspPlatformSecLibVlv2/
DSecTempRamSupport.c65 IA32_DESCRIPTOR IdtDescriptor; in SecTemporaryRamSupport() local
131 AsmReadIdtr (&IdtDescriptor); in SecTemporaryRamSupport()
132 IdtDescriptor.Base = IdtDescriptor.Base - (UINTN)OldStack + (UINTN)NewStack; in SecTemporaryRamSupport()
134 AsmWriteIdtr (&IdtDescriptor); in SecTemporaryRamSupport()
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/
DDxeException.c101 IA32_DESCRIPTOR IdtDescriptor; in InitializeCpuInterruptHandlers() local
127 AsmReadIdtr (&IdtDescriptor); in InitializeCpuInterruptHandlers()
128 IdtEntryCount = (IdtDescriptor.Limit + 1) / sizeof (IA32_IDT_GATE_DESCRIPTOR); in InitializeCpuInterruptHandlers()
137 CopyMem (IdtTable, (VOID *)IdtDescriptor.Base, sizeof (IA32_IDT_GATE_DESCRIPTOR) * IdtEntryCount); in InitializeCpuInterruptHandlers()
166 IdtDescriptor.Base = (UINTN) IdtTable; in InitializeCpuInterruptHandlers()
167 IdtDescriptor.Limit = (UINT16) (sizeof (IA32_IDT_GATE_DESCRIPTOR) * CPU_INTERRUPT_NUM - 1); in InitializeCpuInterruptHandlers()
168 AsmWriteIdtr ((IA32_DESCRIPTOR *) &IdtDescriptor); in InitializeCpuInterruptHandlers()
DSecPeiCpuException.c74 IA32_DESCRIPTOR IdtDescriptor; in InitializeCpuExceptionHandlers() local
92 AsmReadIdtr (&IdtDescriptor); in InitializeCpuExceptionHandlers()
93 IdtEntryCount = (IdtDescriptor.Limit + 1) / sizeof (IA32_IDT_GATE_DESCRIPTOR); in InitializeCpuExceptionHandlers()
106 IdtTable = (IA32_IDT_GATE_DESCRIPTOR *)IdtDescriptor.Base; in InitializeCpuExceptionHandlers()
DPeiDxeSmmCpuException.c209 IA32_DESCRIPTOR IdtDescriptor; in InitializeCpuExceptionHandlersWorker() local
227 AsmReadIdtr (&IdtDescriptor); in InitializeCpuExceptionHandlersWorker()
228 IdtEntryCount = (IdtDescriptor.Limit + 1) / sizeof (IA32_IDT_GATE_DESCRIPTOR); in InitializeCpuExceptionHandlersWorker()
236 IdtTable = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor.Base; in InitializeCpuExceptionHandlersWorker()
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/Library/SecPeiFspPlatformSecLibSample/
DSecTempRamSupport.c65 IA32_DESCRIPTOR IdtDescriptor; in SecTemporaryRamSupport() local
130 AsmReadIdtr (&IdtDescriptor); in SecTemporaryRamSupport()
131 IdtDescriptor.Base = IdtDescriptor.Base - (UINTN)OldStack + (UINTN)NewStack; in SecTemporaryRamSupport()
133 AsmWriteIdtr (&IdtDescriptor); in SecTemporaryRamSupport()
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/
DPeCoffExtraActionLib.c65 IA32_DESCRIPTOR IdtDescriptor; in PeCoffLoaderExtraActionCommon() local
93 AsmReadIdtr (&IdtDescriptor); in PeCoffLoaderExtraActionCommon()
95 if (!CheckDebugAgentHandler (&IdtDescriptor, SOFT_INT_VECTOR_NUM)) { in PeCoffLoaderExtraActionCommon()
102 if (!CheckDebugAgentHandler (&IdtDescriptor, IO_HW_BREAKPOINT_VECTOR_NUM)) { in PeCoffLoaderExtraActionCommon()
106 SaveAndUpdateIdtEntry1 (&IdtDescriptor, &OriginalIdtEntry); in PeCoffLoaderExtraActionCommon()
191 RestoreIdtEntry1 (&IdtDescriptor, &OriginalIdtEntry); in PeCoffLoaderExtraActionCommon()
DPeCoffExtraActionLib.h48 IN IA32_DESCRIPTOR *IdtDescriptor,
61 IN IA32_DESCRIPTOR *IdtDescriptor,
74 IN IA32_DESCRIPTOR *IdtDescriptor,
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/
DDxeDebugAgentLib.c365 IA32_DESCRIPTOR IdtDescriptor; in InitializeDebugAgent() local
418 AsmReadIdtr (&IdtDescriptor); in InitializeDebugAgent()
419 mSaveIdtTableSize = IdtDescriptor.Limit + 1; in InitializeDebugAgent()
420 mSavedIdtTable = AllocateCopyPool (mSaveIdtTableSize, (VOID *) IdtDescriptor.Base); in InitializeDebugAgent()
469 AsmReadIdtr (&IdtDescriptor); in InitializeDebugAgent()
470 IdtDescriptor.Limit = (UINT16) (mSaveIdtTableSize - 1); in InitializeDebugAgent()
471 CopyMem ((VOID *) IdtDescriptor.Base, mSavedIdtTable, mSaveIdtTableSize); in InitializeDebugAgent()
472 AsmWriteIdtr (&IdtDescriptor); in InitializeDebugAgent()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/
DSetIdtEntry.c140 IA32_DESCRIPTOR *IdtDescriptor; in SetIdtEntry() local
147 IdtDescriptor = (IA32_DESCRIPTOR *) (UINTN) (AcpiS3Context->IdtrProfile); in SetIdtEntry()
148 AsmWriteIdtr (IdtDescriptor); in SetIdtEntry()
162 …IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *)(IdtDescriptor->Base + (3 * sizeof (IA32_IDT_GATE_DESCRIPTO… in SetIdtEntry()
179 …IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *)(IdtDescriptor->Base + (14 * sizeof (IA32_IDT_GATE_DESCRIPT… in SetIdtEntry()
/device/linaro/bootloader/edk2/UefiCpuPkg/SecCore/
DSecMain.c78 IA32_DESCRIPTOR IdtDescriptor; in SecStartup() local
130 IdtDescriptor.Base = (UINTN) &IdtTableInStack.IdtTable; in SecStartup()
131 IdtDescriptor.Limit = (UINT16)(sizeof (IdtTableInStack.IdtTable) - 1); in SecStartup()
133 AsmWriteIdtr (&IdtDescriptor); in SecStartup()
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspWrapperSecCore/
DSecMain.c67 IA32_DESCRIPTOR IdtDescriptor; in SecStartup() local
113 IdtDescriptor.Base = (UINTN) &IdtTableInStack.IdtTable; in SecStartup()
114 IdtDescriptor.Limit = (UINT16)(sizeof (IdtTableInStack.IdtTable) - 1); in SecStartup()
116 AsmWriteIdtr (&IdtDescriptor); in SecStartup()
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspInitPei/
DSecMain.c76 IA32_DESCRIPTOR IdtDescriptor; in SecStartup() local
122 IdtDescriptor.Base = (UINTN) &IdtTableInStack.IdtTable; in SecStartup()
123 IdtDescriptor.Limit = (UINT16)(sizeof (IdtTableInStack.IdtTable) - 1); in SecStartup()
125 AsmWriteIdtr (&IdtDescriptor); in SecStartup()
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/
DSmmDebugAgentLib.c186 IA32_DESCRIPTOR IdtDescriptor; in InitializeDebugAgent() local
237 AsmReadIdtr (&IdtDescriptor); in InitializeDebugAgent()
238 CopyMem (&IdtEntry, (VOID *)IdtDescriptor.Base, 33 * sizeof(IA32_IDT_GATE_DESCRIPTOR)); in InitializeDebugAgent()
274 CopyMem ((VOID *)IdtDescriptor.Base, &IdtEntry, 33 * sizeof(IA32_IDT_GATE_DESCRIPTOR)); in InitializeDebugAgent()
/device/linaro/bootloader/edk2/OvmfPkg/Sec/
DSecMain.c730 IA32_DESCRIPTOR IdtDescriptor; in SecCoreStartupWithStack() local
768 IdtDescriptor.Base = (UINTN)&IdtTableInStack.IdtTable; in SecCoreStartupWithStack()
769 IdtDescriptor.Limit = (UINT16)(sizeof (IdtTableInStack.IdtTable) - 1); in SecCoreStartupWithStack()
771 AsmWriteIdtr (&IdtDescriptor); in SecCoreStartupWithStack()
882 IA32_DESCRIPTOR IdtDescriptor; in TemporaryRamMigration() local
923 AsmReadIdtr (&IdtDescriptor); in TemporaryRamMigration()
924 IdtDescriptor.Base = IdtDescriptor.Base - (UINTN)OldStack + (UINTN)NewStack; in TemporaryRamMigration()
926 AsmWriteIdtr (&IdtDescriptor); in TemporaryRamMigration()
/device/linaro/bootloader/edk2/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/
DS3Resume.c772 IA32_DESCRIPTOR *IdtDescriptor; in S3ResumeExecuteBootScript() local
827 IdtDescriptor = (IA32_DESCRIPTOR *) (UINTN) (AcpiS3Context->IdtrProfile); in S3ResumeExecuteBootScript()
831 IdtBuffer = AllocatePages (EFI_SIZE_TO_PAGES((IdtDescriptor->Limit + 1) + 16)); in S3ResumeExecuteBootScript()
845 …CopyMem ((VOID*)((UINT8*)IdtBuffer + 16),(VOID*)(IdtDescriptor->Base), (IdtDescriptor->Limit + 1)); in S3ResumeExecuteBootScript()
846 IdtDescriptor->Base = (UINTN)((UINT8*)IdtBuffer + 16); in S3ResumeExecuteBootScript()
847 *(UINTN*)(IdtDescriptor->Base - sizeof(UINTN)) = (UINTN)GetPeiServicesTablePointer (); in S3ResumeExecuteBootScript()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/
DScriptExecute.c50 IA32_DESCRIPTOR IdtDescriptor; in S3BootScriptExecutorEntryFunction() local
57 AsmReadIdtr (&IdtDescriptor); in S3BootScriptExecutorEntryFunction()
66 InitializeDebugAgent (DEBUG_AGENT_INIT_S3, (VOID *)&IdtDescriptor, NULL); in S3BootScriptExecutorEntryFunction()