MdePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/** @file
|
||||
GCC inline implementation of BaseSynchronizationLib processor specific functions.
|
||||
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -43,12 +43,12 @@ InternalSyncIncrement (
|
||||
"mov %2, %%eax "
|
||||
: "=a" (Result), // %0
|
||||
"=m" (*Value) // %1
|
||||
: "m" (*Value) // %2
|
||||
: "m" (*Value) // %2
|
||||
: "memory",
|
||||
"cc"
|
||||
);
|
||||
|
||||
return Result;
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
||||
@@ -72,18 +72,18 @@ InternalSyncDecrement (
|
||||
)
|
||||
{
|
||||
UINT32 Result;
|
||||
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"lock \n\t"
|
||||
"decl %2 \n\t"
|
||||
"mov %2, %%eax "
|
||||
: "=a" (Result), // %0
|
||||
"=m" (*Value) // %1
|
||||
: "m" (*Value) // %2
|
||||
: "m" (*Value) // %2
|
||||
: "memory",
|
||||
"cc"
|
||||
);
|
||||
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
@@ -166,12 +166,12 @@ InternalSyncCompareExchange32 (
|
||||
: "=a" (CompareValue), // %0
|
||||
"=m" (*Value) // %1
|
||||
: "a" (CompareValue), // %2
|
||||
"r" (ExchangeValue), // %3
|
||||
"r" (ExchangeValue), // %3
|
||||
"m" (*Value)
|
||||
: "memory",
|
||||
"cc"
|
||||
);
|
||||
|
||||
|
||||
return CompareValue;
|
||||
}
|
||||
|
||||
@@ -208,12 +208,12 @@ InternalSyncCompareExchange64 (
|
||||
: "=a" (CompareValue), // %0
|
||||
"=m" (*Value) // %1
|
||||
: "a" (CompareValue), // %2
|
||||
"r" (ExchangeValue), // %3
|
||||
"r" (ExchangeValue), // %3
|
||||
"m" (*Value)
|
||||
: "memory",
|
||||
"cc"
|
||||
);
|
||||
|
||||
|
||||
return CompareValue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user