summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2009-08-18 21:02:42 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2009-08-18 21:02:42 +0000
commit3c99107841da7f4f646c5bba94f55d73a936e82a (patch)
treeb45254445866929d1df65b869697222879d1330b /MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c
parent9101c2e89417e103f1831a6aef007df67f3b472c (diff)
downloadedk2-platforms-3c99107841da7f4f646c5bba94f55d73a936e82a.tar.xz
Add ARM support
Add C inline versions of the IA32 and X64 assembly functions. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9112 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c')
-rw-r--r--MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c b/MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c
index 79bd5c4d2d..348ae088b9 100644
--- a/MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c
+++ b/MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c
@@ -2,6 +2,7 @@
Implementation of synchronization functions.
Copyright (c) 2006 - 2008, Intel Corporation<BR>
+ Portions Copyright (c) 2008-2009 Apple Inc.<BR>
All rights reserved. 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
@@ -17,7 +18,7 @@
//
// GCC inline assembly for Read Write Barrier
//
-#define _ReadWriteBarrier() do { asm volatile ("": : : "memory"); } while(0)
+#define _ReadWriteBarrier() do { __asm__ __volatile__ ("": : : "memory"); } while(0)
#define SPIN_LOCK_RELEASED ((UINTN) 1)
#define SPIN_LOCK_ACQUIRED ((UINTN) 2)