UefiCpuPkg/PeiCpuException: Fix coding style issue

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
This commit is contained in:
Ruiyu Ni 2018-09-07 18:12:46 +08:00
parent 3a34753312
commit 34c3405cb7
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ GetExceptionHandlerData (
AsmReadIdtr (&IdtDescriptor); AsmReadIdtr (&IdtDescriptor);
IdtTable = (IA32_IDT_GATE_DESCRIPTOR *)IdtDescriptor.Base; IdtTable = (IA32_IDT_GATE_DESCRIPTOR *)IdtDescriptor.Base;
Exception0StubHeader = (EXCEPTION0_STUB_HEADER *)ArchGetIdtHandler (&IdtTable[0]); Exception0StubHeader = (EXCEPTION0_STUB_HEADER *)ArchGetIdtHandler (&IdtTable[0]);
return Exception0StubHeader->ExceptionHandlerData; return Exception0StubHeader->ExceptionHandlerData;
} }
@ -58,7 +58,7 @@ GetExceptionHandlerData (
exception handler data. The new allocated memory layout follows structure EXCEPTION0_STUB_HEADER. exception handler data. The new allocated memory layout follows structure EXCEPTION0_STUB_HEADER.
The code assumes that all processors uses the same exception handler for #0 exception. The code assumes that all processors uses the same exception handler for #0 exception.
@param pointer to exception handler data. @param ExceptionHandlerData pointer to exception handler data.
**/ **/
VOID VOID
SetExceptionHandlerData ( SetExceptionHandlerData (
@ -74,7 +74,7 @@ SetExceptionHandlerData (
// //
AsmReadIdtr (&IdtDescriptor); AsmReadIdtr (&IdtDescriptor);
IdtTable = (IA32_IDT_GATE_DESCRIPTOR *)IdtDescriptor.Base; IdtTable = (IA32_IDT_GATE_DESCRIPTOR *)IdtDescriptor.Base;
Exception0StubHeader = AllocatePool (sizeof (*Exception0StubHeader)); Exception0StubHeader = AllocatePool (sizeof (*Exception0StubHeader));
ASSERT (Exception0StubHeader != NULL); ASSERT (Exception0StubHeader != NULL);
CopyMem ( CopyMem (