Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
\r
AsmReadIdtr (&IdtDescriptor);\r
IdtTable = (IA32_IDT_GATE_DESCRIPTOR *)IdtDescriptor.Base;\r
\r
AsmReadIdtr (&IdtDescriptor);\r
IdtTable = (IA32_IDT_GATE_DESCRIPTOR *)IdtDescriptor.Base;\r
Exception0StubHeader = (EXCEPTION0_STUB_HEADER *)ArchGetIdtHandler (&IdtTable[0]);\r
return Exception0StubHeader->ExceptionHandlerData;\r
}\r
Exception0StubHeader = (EXCEPTION0_STUB_HEADER *)ArchGetIdtHandler (&IdtTable[0]);\r
return Exception0StubHeader->ExceptionHandlerData;\r
}\r
exception handler data. The new allocated memory layout follows structure EXCEPTION0_STUB_HEADER.\r
The code assumes that all processors uses the same exception handler for #0 exception.\r
\r
exception handler data. The new allocated memory layout follows structure EXCEPTION0_STUB_HEADER.\r
The code assumes that all processors uses the same exception handler for #0 exception.\r
\r
- @param pointer to exception handler data.\r
+ @param ExceptionHandlerData pointer to exception handler data.\r
**/\r
VOID\r
SetExceptionHandlerData (\r
**/\r
VOID\r
SetExceptionHandlerData (\r
//\r
AsmReadIdtr (&IdtDescriptor);\r
IdtTable = (IA32_IDT_GATE_DESCRIPTOR *)IdtDescriptor.Base;\r
//\r
AsmReadIdtr (&IdtDescriptor);\r
IdtTable = (IA32_IDT_GATE_DESCRIPTOR *)IdtDescriptor.Base;\r
Exception0StubHeader = AllocatePool (sizeof (*Exception0StubHeader));\r
ASSERT (Exception0StubHeader != NULL);\r
CopyMem (\r
Exception0StubHeader = AllocatePool (sizeof (*Exception0StubHeader));\r
ASSERT (Exception0StubHeader != NULL);\r
CopyMem (\r