From 7e43ed89b28a1ce91ccf30bcb9d4ccaab966d0a4 Mon Sep 17 00:00:00 2001 From: xli24 Date: Fri, 24 Oct 2008 08:18:36 +0000 Subject: [PATCH] Refine code for ECC check. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6217 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/BaseLibInternals.h | 2 +- MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c | 1 + MdePkg/Library/BaseLib/SynchronizationMsc.c | 1 + MdePkg/Library/BaseLib/X64/CpuBreakpoint.c | 1 + MdePkg/Library/BaseLib/X64/InterlockedCompareExchange32.c | 1 + MdePkg/Library/BaseLib/X64/InterlockedCompareExchange64.c | 1 + MdePkg/Library/BaseLib/X64/InterlockedDecrement.c | 1 + MdePkg/Library/BaseLib/X64/InterlockedIncrement.c | 1 + MdePkg/Library/BaseLib/X64/ReadMsr64.c | 1 + MdePkg/Library/BaseLib/X64/WriteMsr64.c | 1 + 10 files changed, 10 insertions(+), 1 deletion(-) diff --git a/MdePkg/Library/BaseLib/BaseLibInternals.h b/MdePkg/Library/BaseLib/BaseLibInternals.h index 3d47a21535..b39f2df927 100644 --- a/MdePkg/Library/BaseLib/BaseLibInternals.h +++ b/MdePkg/Library/BaseLib/BaseLibInternals.h @@ -303,7 +303,7 @@ InternalMathDivRemS64x64 ( IN INT64 Dividend, IN INT64 Divisor, OUT INT64 *Remainder OPTIONAL - ); + ); /** Transfers control to a function starting with a new stack. diff --git a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c index 52cc7de207..87f4e7c5d7 100644 --- a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c +++ b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c @@ -18,6 +18,7 @@ /** Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics. **/ + void __debugbreak (); #pragma intrinsic(__debugbreak) diff --git a/MdePkg/Library/BaseLib/SynchronizationMsc.c b/MdePkg/Library/BaseLib/SynchronizationMsc.c index de271aea26..962c61bd3b 100644 --- a/MdePkg/Library/BaseLib/SynchronizationMsc.c +++ b/MdePkg/Library/BaseLib/SynchronizationMsc.c @@ -20,6 +20,7 @@ /** Microsoft Visual Studio 7.1 Function Prototypes for read write barrier Intrinsics. **/ + void _ReadWriteBarrier (void); #pragma intrinsic(_ReadWriteBarrier) diff --git a/MdePkg/Library/BaseLib/X64/CpuBreakpoint.c b/MdePkg/Library/BaseLib/X64/CpuBreakpoint.c index 049e34eaae..c7e2339d9b 100644 --- a/MdePkg/Library/BaseLib/X64/CpuBreakpoint.c +++ b/MdePkg/Library/BaseLib/X64/CpuBreakpoint.c @@ -16,6 +16,7 @@ /** Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics. **/ + void __debugbreak (); #pragma intrinsic(__debugbreak) diff --git a/MdePkg/Library/BaseLib/X64/InterlockedCompareExchange32.c b/MdePkg/Library/BaseLib/X64/InterlockedCompareExchange32.c index de1aac7e6a..6157ac1f4b 100644 --- a/MdePkg/Library/BaseLib/X64/InterlockedCompareExchange32.c +++ b/MdePkg/Library/BaseLib/X64/InterlockedCompareExchange32.c @@ -15,6 +15,7 @@ /** Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics. **/ + long _InterlockedCompareExchange( long volatile * Destination, long Exchange, diff --git a/MdePkg/Library/BaseLib/X64/InterlockedCompareExchange64.c b/MdePkg/Library/BaseLib/X64/InterlockedCompareExchange64.c index 1206a1732c..952d0c4be3 100644 --- a/MdePkg/Library/BaseLib/X64/InterlockedCompareExchange64.c +++ b/MdePkg/Library/BaseLib/X64/InterlockedCompareExchange64.c @@ -15,6 +15,7 @@ /** Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics. **/ + __int64 _InterlockedCompareExchange64( __int64 volatile * Destination, __int64 Exchange, diff --git a/MdePkg/Library/BaseLib/X64/InterlockedDecrement.c b/MdePkg/Library/BaseLib/X64/InterlockedDecrement.c index 0f321f8f18..fec26a9593 100644 --- a/MdePkg/Library/BaseLib/X64/InterlockedDecrement.c +++ b/MdePkg/Library/BaseLib/X64/InterlockedDecrement.c @@ -15,6 +15,7 @@ /** Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics. **/ + long _InterlockedDecrement( long * lpAddend ); diff --git a/MdePkg/Library/BaseLib/X64/InterlockedIncrement.c b/MdePkg/Library/BaseLib/X64/InterlockedIncrement.c index 0581b5887a..455fb453d4 100644 --- a/MdePkg/Library/BaseLib/X64/InterlockedIncrement.c +++ b/MdePkg/Library/BaseLib/X64/InterlockedIncrement.c @@ -15,6 +15,7 @@ /** Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics. **/ + long _InterlockedIncrement( long * lpAddend ); diff --git a/MdePkg/Library/BaseLib/X64/ReadMsr64.c b/MdePkg/Library/BaseLib/X64/ReadMsr64.c index 6ec22a3e69..582234a235 100644 --- a/MdePkg/Library/BaseLib/X64/ReadMsr64.c +++ b/MdePkg/Library/BaseLib/X64/ReadMsr64.c @@ -15,6 +15,7 @@ /** Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics. **/ + unsigned __int64 __readmsr (int register); #pragma intrinsic(__readmsr) diff --git a/MdePkg/Library/BaseLib/X64/WriteMsr64.c b/MdePkg/Library/BaseLib/X64/WriteMsr64.c index bc9c0b91e9..c21086155d 100644 --- a/MdePkg/Library/BaseLib/X64/WriteMsr64.c +++ b/MdePkg/Library/BaseLib/X64/WriteMsr64.c @@ -15,6 +15,7 @@ /** Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics. **/ + void __writemsr (unsigned long Register, unsigned __int64 Value); #pragma intrinsic(__writemsr) -- 2.39.2