MdeModulePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
7c7184e201
commit
1436aea4d5
@@ -8,7 +8,9 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
#include "PlDebugSupport.h"
|
||||
|
||||
IA32_IDT_GATE_DESCRIPTOR NullDesc = {{0,0}};
|
||||
IA32_IDT_GATE_DESCRIPTOR NullDesc = {
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
/**
|
||||
Get Interrupt Handle from IDT Gate Descriptor.
|
||||
@@ -23,16 +25,16 @@ GetInterruptHandleFromIdt (
|
||||
IN IA32_IDT_GATE_DESCRIPTOR *IdtGateDecriptor
|
||||
)
|
||||
{
|
||||
UINTN InterruptHandle;
|
||||
UINTN InterruptHandle;
|
||||
|
||||
//
|
||||
// InterruptHandle 0-15 : OffsetLow
|
||||
// InterruptHandle 16-31 : OffsetHigh
|
||||
// InterruptHandle 32-63 : OffsetUpper
|
||||
//
|
||||
InterruptHandle = ((UINTN) IdtGateDecriptor->Bits.OffsetLow) |
|
||||
(((UINTN) IdtGateDecriptor->Bits.OffsetHigh) << 16) |
|
||||
(((UINTN) IdtGateDecriptor->Bits.OffsetUpper) << 32) ;
|
||||
InterruptHandle = ((UINTN)IdtGateDecriptor->Bits.OffsetLow) |
|
||||
(((UINTN)IdtGateDecriptor->Bits.OffsetHigh) << 16) |
|
||||
(((UINTN)IdtGateDecriptor->Bits.OffsetUpper) << 32);
|
||||
|
||||
return InterruptHandle;
|
||||
}
|
||||
@@ -50,11 +52,11 @@ GetInterruptHandleFromIdt (
|
||||
**/
|
||||
VOID
|
||||
CreateEntryStub (
|
||||
IN EFI_EXCEPTION_TYPE ExceptionType,
|
||||
OUT VOID **Stub
|
||||
IN EFI_EXCEPTION_TYPE ExceptionType,
|
||||
OUT VOID **Stub
|
||||
)
|
||||
{
|
||||
UINT8 *StubCopy;
|
||||
UINT8 *StubCopy;
|
||||
|
||||
StubCopy = *Stub;
|
||||
|
||||
@@ -72,12 +74,12 @@ CreateEntryStub (
|
||||
//
|
||||
// poke in the exception type so the second push pushes the exception type
|
||||
//
|
||||
StubCopy[0x1] = (UINT8) ExceptionType;
|
||||
StubCopy[0x1] = (UINT8)ExceptionType;
|
||||
|
||||
//
|
||||
// fixup the jump target to point to the common entry
|
||||
//
|
||||
*(UINT32 *) &StubCopy[0x3] = (UINT32)((UINTN) CommonIdtEntry - (UINTN) &StubCopy[StubSize]);
|
||||
*(UINT32 *)&StubCopy[0x3] = (UINT32)((UINTN)CommonIdtEntry - (UINTN)&StubCopy[StubSize]);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -102,8 +104,8 @@ CreateEntryStub (
|
||||
**/
|
||||
EFI_STATUS
|
||||
ManageIdtEntryTable (
|
||||
CALLBACK_FUNC NewCallback,
|
||||
EFI_EXCEPTION_TYPE ExceptionType
|
||||
CALLBACK_FUNC NewCallback,
|
||||
EFI_EXCEPTION_TYPE ExceptionType
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
Reference in New Issue
Block a user