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:
committed by
mergify[bot]
parent
1436aea4d5
commit
2f88bd3a12
@@ -8,7 +8,10 @@
|
||||
|
||||
#include "BaseLibInternals.h"
|
||||
|
||||
extern VOID RiscVCpuBreakpoint (VOID);
|
||||
extern VOID
|
||||
RiscVCpuBreakpoint (
|
||||
VOID
|
||||
);
|
||||
|
||||
/**
|
||||
Generates a breakpoint on the CPU.
|
||||
|
@@ -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 ();
|
||||
}
|
||||
|
||||
|
@@ -7,7 +7,10 @@
|
||||
**/
|
||||
#include "BaseLibInternals.h"
|
||||
|
||||
extern VOID RiscVDisableSupervisorModeInterrupts (VOID);
|
||||
extern VOID
|
||||
RiscVDisableSupervisorModeInterrupts (
|
||||
VOID
|
||||
);
|
||||
|
||||
/**
|
||||
Disables CPU interrupts.
|
||||
@@ -21,4 +24,3 @@ DisableInterrupts (
|
||||
{
|
||||
RiscVDisableSupervisorModeInterrupts ();
|
||||
}
|
||||
|
||||
|
@@ -8,7 +8,10 @@
|
||||
|
||||
#include "BaseLibInternals.h"
|
||||
|
||||
extern VOID RiscVEnableSupervisorModeInterrupt (VOID);
|
||||
extern VOID
|
||||
RiscVEnableSupervisorModeInterrupt (
|
||||
VOID
|
||||
);
|
||||
|
||||
/**
|
||||
Enables CPU interrupts.
|
||||
@@ -22,4 +25,3 @@ EnableInterrupts (
|
||||
{
|
||||
RiscVEnableSupervisorModeInterrupt ();
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user