SourceLevelDebugPkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
X64 arch function to access IDT vector.
|
||||
|
||||
Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -24,7 +24,7 @@
|
||||
@retval FALSE IDT entries were not setuo by Debug Agent.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
BOOLEAN
|
||||
CheckDebugAgentHandler (
|
||||
IN IA32_DESCRIPTOR *IdtDescriptor,
|
||||
IN UINTN InterruptType
|
||||
@@ -39,7 +39,7 @@ CheckDebugAgentHandler (
|
||||
}
|
||||
|
||||
InterruptHandler = IdtEntry[InterruptType].Bits.OffsetLow +
|
||||
(((UINTN)IdtEntry[InterruptType].Bits.OffsetHigh) << 16) +
|
||||
(((UINTN)IdtEntry[InterruptType].Bits.OffsetHigh) << 16) +
|
||||
(((UINTN)IdtEntry[InterruptType].Bits.OffsetUpper) << 32);
|
||||
if (InterruptHandler >= sizeof (UINT32) && *(UINT32 *)(InterruptHandler - sizeof (UINT32)) == AGENT_HANDLER_SIGNATURE) {
|
||||
return TRUE;
|
||||
@@ -49,7 +49,7 @@ CheckDebugAgentHandler (
|
||||
}
|
||||
|
||||
/**
|
||||
Save IDT entry for INT1 and update it.
|
||||
Save IDT entry for INT1 and update it.
|
||||
|
||||
@param[in] IdtDescriptor Pointer to IDT Descriptor.
|
||||
@param[out] SavedIdtEntry Original IDT entry returned.
|
||||
@@ -64,7 +64,7 @@ SaveAndUpdateIdtEntry1 (
|
||||
IA32_IDT_GATE_DESCRIPTOR *IdtEntry;
|
||||
UINT16 CodeSegment;
|
||||
UINTN InterruptHandler;
|
||||
|
||||
|
||||
IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base;
|
||||
CopyMem (SavedIdtEntry, &IdtEntry[1], sizeof (IA32_IDT_GATE_DESCRIPTOR));
|
||||
|
||||
@@ -82,7 +82,7 @@ SaveAndUpdateIdtEntry1 (
|
||||
}
|
||||
|
||||
/**
|
||||
Restore IDT entry for INT1.
|
||||
Restore IDT entry for INT1.
|
||||
|
||||
@param[in] IdtDescriptor Pointer to IDT Descriptor.
|
||||
@param[in] RestoredIdtEntry IDT entry to be restored.
|
||||
@@ -95,7 +95,7 @@ RestoreIdtEntry1 (
|
||||
)
|
||||
{
|
||||
IA32_IDT_GATE_DESCRIPTOR *IdtEntry;
|
||||
|
||||
|
||||
IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base;
|
||||
CopyMem (&IdtEntry[1], RestoredIdtEntry, sizeof (IA32_IDT_GATE_DESCRIPTOR));
|
||||
}
|
||||
|
Reference in New Issue
Block a user