TianoCore EDK2 master
Loading...
Searching...
No Matches
ArchInterruptDefs.h
Go to the documentation of this file.
1
9#ifndef _ARCH_CPU_INTERRUPT_DEFS_H_
10#define _ARCH_CPU_INTERRUPT_DEFS_H_
11
12typedef struct {
13 EFI_SYSTEM_CONTEXT_X64 SystemContext;
14 BOOLEAN ExceptionDataFlag;
15 UINTN OldIdtHandler;
17
18//
19// Register Structure Definitions
20//
21typedef struct {
23 EFI_SYSTEM_CONTEXT_X64 SystemContext;
25
26typedef struct {
27 SPIN_LOCK SpinLock;
28 UINT32 ApicId;
29 UINT32 Attribute;
30 UINTN ExceptonHandler;
31 UINTN OldSs;
32 UINTN OldSp;
33 UINTN OldFlags;
34 UINTN OldCs;
35 UINTN OldIp;
36 UINTN ExceptionData;
37 UINT8 HookAfterStubHeaderCode[HOOKAFTER_STUB_SIZE];
39
40#define CPU_TSS_DESC_SIZE sizeof (IA32_TSS_DESCRIPTOR)
41#define CPU_TSS_SIZE sizeof (IA32_TASK_STATE_SEGMENT)
42
43#endif
UINT64 UINTN
volatile UINTN SPIN_LOCK