diff options
author | zwei4 <david.wei@intel.com> | 2017-05-14 16:02:10 +0800 |
---|---|---|
committer | zwei4 <david.wei@intel.com> | 2017-05-14 16:02:10 +0800 |
commit | b85bc33fdc99b645696d2f3a021c9e6cce65d410 (patch) | |
tree | 55efeeb0cbf824efc4ab18424cb2a73ce1d2fca8 /Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c | |
parent | 95a96d2f14376c3ed3e7913173b8777408f1269e (diff) | |
download | edk2-platforms-b85bc33fdc99b645696d2f3a021c9e6cce65d410.tar.xz |
Fix GCC build errors.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: zwei4 <david.wei@intel.com>
Diffstat (limited to 'Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c')
-rw-r--r-- | Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c index d7ef4970b8..fe454bf89f 100644 --- a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c +++ b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c @@ -217,6 +217,10 @@ CopyMemSse4 ( IN UINTN SizeInBytes
)
{
+
+ #ifdef __GNUC__
+ CopyMem (Dst, Src, SizeInBytes);
+ #else
_asm {
//
// Initialize pointers to start of the USWC memory
@@ -281,6 +285,7 @@ CopyMemSse4 ( movdqu xmm3, [esp + 48]
add esp, 040h // stack cleanup
}
+ #endif
// End of Bulk Load loop
}
|