summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c
diff options
context:
space:
mode:
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)