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
@@ -40,16 +40,16 @@ typedef struct _EFI_EBC_VM_TEST_PROTOCOL EFI_EBC_VM_TEST_PROTOCOL;
|
||||
//
|
||||
// Masks for working with the VM flags register
|
||||
//
|
||||
#define VMFLAGS_CC 0x0001 // condition flag
|
||||
#define VMFLAGS_STEP 0x0002 // step instruction mode
|
||||
#define VMFLAGS_ALL_VALID (VMFLAGS_CC | VMFLAGS_STEP)
|
||||
#define VMFLAGS_CC 0x0001 // condition flag
|
||||
#define VMFLAGS_STEP 0x0002 // step instruction mode
|
||||
#define VMFLAGS_ALL_VALID (VMFLAGS_CC | VMFLAGS_STEP)
|
||||
|
||||
//
|
||||
// Macros for operating on the VM flags register
|
||||
//
|
||||
#define VMFLAG_SET(pVM, Flag) (pVM->Flags |= (Flag))
|
||||
#define VMFLAG_ISSET(pVM, Flag) ((pVM->Flags & (Flag)) ? 1 : 0)
|
||||
#define VMFLAG_CLEAR(pVM, Flag) (pVM->Flags &= ~(Flag))
|
||||
#define VMFLAG_SET(pVM, Flag) (pVM->Flags |= (Flag))
|
||||
#define VMFLAG_ISSET(pVM, Flag) ((pVM->Flags & (Flag)) ? 1 : 0)
|
||||
#define VMFLAG_CLEAR(pVM, Flag) (pVM->Flags &= ~(Flag))
|
||||
|
||||
//
|
||||
// Define a macro to get the operand. Then we can change it to be either a
|
||||
@@ -61,8 +61,8 @@ typedef struct _EFI_EBC_VM_TEST_PROTOCOL EFI_EBC_VM_TEST_PROTOCOL;
|
||||
//
|
||||
// Macros for operating on the VM GP registers
|
||||
//
|
||||
#define OPERAND1_REGDATA(pVM, Op) pVM->Gpr[OPERAND1_REGNUM (Op)]
|
||||
#define OPERAND2_REGDATA(pVM, Op) pVM->Gpr[OPERAND2_REGNUM (Op)]
|
||||
#define OPERAND1_REGDATA(pVM, Op) pVM->Gpr[OPERAND1_REGNUM (Op)]
|
||||
#define OPERAND2_REGDATA(pVM, Op) pVM->Gpr[OPERAND2_REGNUM (Op)]
|
||||
|
||||
//
|
||||
// Bits of exception flags field of VM context
|
||||
@@ -75,35 +75,35 @@ typedef struct _EFI_EBC_VM_TEST_PROTOCOL EFI_EBC_VM_TEST_PROTOCOL;
|
||||
///
|
||||
/// instruction pointer for the VM
|
||||
///
|
||||
typedef UINT8 *VMIP;
|
||||
typedef UINT8 *VMIP;
|
||||
|
||||
typedef INT64 VM_REGISTER;
|
||||
typedef UINT32 EXCEPTION_FLAGS;
|
||||
typedef INT64 VM_REGISTER;
|
||||
typedef UINT32 EXCEPTION_FLAGS;
|
||||
|
||||
typedef struct {
|
||||
VM_REGISTER Gpr[8]; ///< General purpose registers.
|
||||
VM_REGISTER Gpr[8]; ///< General purpose registers.
|
||||
///< Flags register:
|
||||
///< 0 Set to 1 if the result of the last compare was true
|
||||
///< 1 Set to 1 if stepping
|
||||
UINT64 Flags; ///< 2..63 Reserved.
|
||||
VMIP Ip; ///< Instruction pointer.
|
||||
UINTN LastException;
|
||||
EXCEPTION_FLAGS ExceptionFlags; ///< to keep track of exceptions
|
||||
UINT32 StopFlags;
|
||||
UINT32 CompilerVersion; ///< via break(6)
|
||||
UINTN HighStackBottom; ///< bottom of the upper stack
|
||||
UINTN LowStackTop; ///< top of the lower stack
|
||||
UINT64 StackRetAddr; ///< location of final return address on stack
|
||||
UINTN *StackMagicPtr; ///< pointer to magic value on stack to detect corruption
|
||||
EFI_HANDLE ImageHandle; ///< for this EBC driver
|
||||
EFI_SYSTEM_TABLE *SystemTable; ///< for debugging only
|
||||
UINTN LastAddrConverted; ///< for debug
|
||||
UINTN LastAddrConvertedValue; ///< for debug
|
||||
VOID *FramePtr;
|
||||
VOID *EntryPoint; ///< entry point of EBC image
|
||||
UINTN ImageBase;
|
||||
VOID *StackPool;
|
||||
VOID *StackTop;
|
||||
UINT64 Flags; ///< 2..63 Reserved.
|
||||
VMIP Ip; ///< Instruction pointer.
|
||||
UINTN LastException;
|
||||
EXCEPTION_FLAGS ExceptionFlags; ///< to keep track of exceptions
|
||||
UINT32 StopFlags;
|
||||
UINT32 CompilerVersion; ///< via break(6)
|
||||
UINTN HighStackBottom; ///< bottom of the upper stack
|
||||
UINTN LowStackTop; ///< top of the lower stack
|
||||
UINT64 StackRetAddr; ///< location of final return address on stack
|
||||
UINTN *StackMagicPtr; ///< pointer to magic value on stack to detect corruption
|
||||
EFI_HANDLE ImageHandle; ///< for this EBC driver
|
||||
EFI_SYSTEM_TABLE *SystemTable; ///< for debugging only
|
||||
UINTN LastAddrConverted; ///< for debug
|
||||
UINTN LastAddrConvertedValue; ///< for debug
|
||||
VOID *FramePtr;
|
||||
VOID *EntryPoint; ///< entry point of EBC image
|
||||
UINTN ImageBase;
|
||||
VOID *StackPool;
|
||||
VOID *StackTop;
|
||||
} VM_CONTEXT;
|
||||
|
||||
/**
|
||||
@@ -122,7 +122,7 @@ typedef struct {
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EBC_VM_TEST_EXECUTE) (
|
||||
(EFIAPI *EBC_VM_TEST_EXECUTE)(
|
||||
IN EFI_EBC_VM_TEST_PROTOCOL *This,
|
||||
IN VM_CONTEXT *VmPtr,
|
||||
IN OUT UINTN *InstructionCount
|
||||
@@ -142,7 +142,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EBC_VM_TEST_ASM) (
|
||||
(EFIAPI *EBC_VM_TEST_ASM)(
|
||||
IN EFI_EBC_VM_TEST_PROTOCOL *This,
|
||||
IN CHAR16 *AsmText,
|
||||
IN OUT INT8 *Buffer,
|
||||
@@ -163,7 +163,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EBC_VM_TEST_DASM) (
|
||||
(EFIAPI *EBC_VM_TEST_DASM)(
|
||||
IN EFI_EBC_VM_TEST_PROTOCOL *This,
|
||||
IN OUT CHAR16 *AsmText,
|
||||
IN OUT INT8 *Buffer,
|
||||
@@ -174,11 +174,11 @@ EFI_STATUS
|
||||
// Prototype for the actual EBC test protocol interface
|
||||
//
|
||||
struct _EFI_EBC_VM_TEST_PROTOCOL {
|
||||
EBC_VM_TEST_EXECUTE Execute;
|
||||
EBC_VM_TEST_ASM Assemble;
|
||||
EBC_VM_TEST_DASM Disassemble;
|
||||
EBC_VM_TEST_EXECUTE Execute;
|
||||
EBC_VM_TEST_ASM Assemble;
|
||||
EBC_VM_TEST_DASM Disassemble;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiEbcVmTestProtocolGuid;
|
||||
extern EFI_GUID gEfiEbcVmTestProtocolGuid;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user