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
@@ -6,10 +6,8 @@
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#include "BaseLibInternals.h"
|
||||
|
||||
|
||||
/**
|
||||
Returns the lower 32-bits of a Machine Specific Register(MSR).
|
||||
|
||||
@@ -27,7 +25,7 @@
|
||||
UINT32
|
||||
EFIAPI
|
||||
AsmReadMsr32 (
|
||||
IN UINT32 Index
|
||||
IN UINT32 Index
|
||||
)
|
||||
{
|
||||
return (UINT32)AsmReadMsr64 (Index);
|
||||
@@ -53,8 +51,8 @@ AsmReadMsr32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
AsmWriteMsr32 (
|
||||
IN UINT32 Index,
|
||||
IN UINT32 Value
|
||||
IN UINT32 Index,
|
||||
IN UINT32 Value
|
||||
)
|
||||
{
|
||||
return (UINT32)AsmWriteMsr64 (Index, Value);
|
||||
@@ -82,8 +80,8 @@ AsmWriteMsr32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
AsmMsrOr32 (
|
||||
IN UINT32 Index,
|
||||
IN UINT32 OrData
|
||||
IN UINT32 Index,
|
||||
IN UINT32 OrData
|
||||
)
|
||||
{
|
||||
return (UINT32)AsmMsrOr64 (Index, OrData);
|
||||
@@ -111,8 +109,8 @@ AsmMsrOr32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
AsmMsrAnd32 (
|
||||
IN UINT32 Index,
|
||||
IN UINT32 AndData
|
||||
IN UINT32 Index,
|
||||
IN UINT32 AndData
|
||||
)
|
||||
{
|
||||
return (UINT32)AsmMsrAnd64 (Index, AndData);
|
||||
@@ -143,9 +141,9 @@ AsmMsrAnd32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
AsmMsrAndThenOr32 (
|
||||
IN UINT32 Index,
|
||||
IN UINT32 AndData,
|
||||
IN UINT32 OrData
|
||||
IN UINT32 Index,
|
||||
IN UINT32 AndData,
|
||||
IN UINT32 OrData
|
||||
)
|
||||
{
|
||||
return (UINT32)AsmMsrAndThenOr64 (Index, AndData, OrData);
|
||||
@@ -176,9 +174,9 @@ AsmMsrAndThenOr32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
AsmMsrBitFieldRead32 (
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit
|
||||
)
|
||||
{
|
||||
return BitFieldRead32 (AsmReadMsr32 (Index), StartBit, EndBit);
|
||||
@@ -212,10 +210,10 @@ AsmMsrBitFieldRead32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
AsmMsrBitFieldWrite32 (
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 Value
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 Value
|
||||
)
|
||||
{
|
||||
ASSERT (EndBit < sizeof (Value) * 8);
|
||||
@@ -253,10 +251,10 @@ AsmMsrBitFieldWrite32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
AsmMsrBitFieldOr32 (
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 OrData
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 OrData
|
||||
)
|
||||
{
|
||||
ASSERT (EndBit < sizeof (OrData) * 8);
|
||||
@@ -294,10 +292,10 @@ AsmMsrBitFieldOr32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
AsmMsrBitFieldAnd32 (
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 AndData
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 AndData
|
||||
)
|
||||
{
|
||||
ASSERT (EndBit < sizeof (AndData) * 8);
|
||||
@@ -339,11 +337,11 @@ AsmMsrBitFieldAnd32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
AsmMsrBitFieldAndThenOr32 (
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 AndData,
|
||||
IN UINT32 OrData
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 AndData,
|
||||
IN UINT32 OrData
|
||||
)
|
||||
{
|
||||
ASSERT (EndBit < sizeof (AndData) * 8);
|
||||
@@ -378,8 +376,8 @@ AsmMsrBitFieldAndThenOr32 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
AsmMsrOr64 (
|
||||
IN UINT32 Index,
|
||||
IN UINT64 OrData
|
||||
IN UINT32 Index,
|
||||
IN UINT64 OrData
|
||||
)
|
||||
{
|
||||
return AsmWriteMsr64 (Index, AsmReadMsr64 (Index) | OrData);
|
||||
@@ -406,8 +404,8 @@ AsmMsrOr64 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
AsmMsrAnd64 (
|
||||
IN UINT32 Index,
|
||||
IN UINT64 AndData
|
||||
IN UINT32 Index,
|
||||
IN UINT64 AndData
|
||||
)
|
||||
{
|
||||
return AsmWriteMsr64 (Index, AsmReadMsr64 (Index) & AndData);
|
||||
@@ -437,9 +435,9 @@ AsmMsrAnd64 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
AsmMsrAndThenOr64 (
|
||||
IN UINT32 Index,
|
||||
IN UINT64 AndData,
|
||||
IN UINT64 OrData
|
||||
IN UINT32 Index,
|
||||
IN UINT64 AndData,
|
||||
IN UINT64 OrData
|
||||
)
|
||||
{
|
||||
return AsmWriteMsr64 (Index, (AsmReadMsr64 (Index) & AndData) | OrData);
|
||||
@@ -470,9 +468,9 @@ AsmMsrAndThenOr64 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
AsmMsrBitFieldRead64 (
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit
|
||||
)
|
||||
{
|
||||
return BitFieldRead64 (AsmReadMsr64 (Index), StartBit, EndBit);
|
||||
@@ -505,10 +503,10 @@ AsmMsrBitFieldRead64 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
AsmMsrBitFieldWrite64 (
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT64 Value
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT64 Value
|
||||
)
|
||||
{
|
||||
return AsmWriteMsr64 (
|
||||
@@ -547,10 +545,10 @@ AsmMsrBitFieldWrite64 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
AsmMsrBitFieldOr64 (
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT64 OrData
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT64 OrData
|
||||
)
|
||||
{
|
||||
return AsmWriteMsr64 (
|
||||
@@ -589,10 +587,10 @@ AsmMsrBitFieldOr64 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
AsmMsrBitFieldAnd64 (
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT64 AndData
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT64 AndData
|
||||
)
|
||||
{
|
||||
return AsmWriteMsr64 (
|
||||
@@ -634,11 +632,11 @@ AsmMsrBitFieldAnd64 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
AsmMsrBitFieldAndThenOr64 (
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT64 AndData,
|
||||
IN UINT64 OrData
|
||||
IN UINT32 Index,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT64 AndData,
|
||||
IN UINT64 OrData
|
||||
)
|
||||
{
|
||||
return AsmWriteMsr64 (
|
||||
|
Reference in New Issue
Block a user