MdePkg: Apply uncrustify changes

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the MdePkg 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:
Michael Kubacki
2021-12-05 14:54:05 -08:00
committed by mergify[bot]
parent 1436aea4d5
commit 2f88bd3a12
975 changed files with 55681 additions and 57790 deletions

View File

@@ -8,7 +8,10 @@
#include "BaseLibInternals.h"
extern VOID RiscVCpuBreakpoint (VOID);
extern VOID
RiscVCpuBreakpoint (
VOID
);
/**
Generates a breakpoint on the CPU.

View File

@@ -8,8 +8,10 @@
#include "BaseLibInternals.h"
extern VOID RiscVCpuPause (VOID);
extern VOID
RiscVCpuPause (
VOID
);
/**
Requests CPU to pause for a short period of time.
@@ -26,4 +28,3 @@ CpuPause (
{
RiscVCpuPause ();
}

View File

@@ -7,7 +7,10 @@
**/
#include "BaseLibInternals.h"
extern VOID RiscVDisableSupervisorModeInterrupts (VOID);
extern VOID
RiscVDisableSupervisorModeInterrupts (
VOID
);
/**
Disables CPU interrupts.
@@ -21,4 +24,3 @@ DisableInterrupts (
{
RiscVDisableSupervisorModeInterrupts ();
}

View File

@@ -8,7 +8,10 @@
#include "BaseLibInternals.h"
extern VOID RiscVEnableSupervisorModeInterrupt (VOID);
extern VOID
RiscVEnableSupervisorModeInterrupt (
VOID
);
/**
Enables CPU interrupts.
@@ -22,4 +25,3 @@ EnableInterrupts (
{
RiscVEnableSupervisorModeInterrupt ();
}

View File

@@ -8,7 +8,10 @@
#include "BaseLibInternals.h"
extern UINT32 RiscVGetSupervisorModeInterrupts (VOID);
extern UINT32
RiscVGetSupervisorModeInterrupts (
VOID
);
/**
Retrieves the current CPU interrupt state.
@@ -26,10 +29,8 @@ GetInterruptState (
VOID
)
{
unsigned long RetValue;
unsigned long RetValue;
RetValue = RiscVGetSupervisorModeInterrupts ();
return RetValue? TRUE: FALSE;
return RetValue ? TRUE : FALSE;
}

View File

@@ -44,12 +44,18 @@ InternalSwitchStack (
{
BASE_LIBRARY_JUMP_BUFFER JumpBuffer;
DEBUG ((DEBUG_INFO, "RISC-V InternalSwitchStack Entry:%x Context1:%x Context2:%x NewStack%x\n", \
EntryPoint, Context1, Context2, NewStack));
DEBUG ((
DEBUG_INFO,
"RISC-V InternalSwitchStack Entry:%x Context1:%x Context2:%x NewStack%x\n", \
EntryPoint,
Context1,
Context2,
NewStack
));
JumpBuffer.RA = (UINTN)EntryPoint;
JumpBuffer.SP = (UINTN)NewStack - sizeof (VOID *);
JumpBuffer.S0 = (UINT64)(UINTN)Context1;
JumpBuffer.S1 = (UINT64)(UINTN)Context2;
LongJump (&JumpBuffer, (UINTN)-1);
ASSERT(FALSE);
ASSERT (FALSE);
}