[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9826 - gnuradio/branches/developers/eb/gcell-wip/gcel
From: |
eb |
Subject: |
[Commit-gnuradio] r9826 - gnuradio/branches/developers/eb/gcell-wip/gcell/include/gcell |
Date: |
Wed, 22 Oct 2008 12:10:57 -0600 (MDT) |
Author: eb
Date: 2008-10-22 12:10:55 -0600 (Wed, 22 Oct 2008)
New Revision: 9826
Modified:
gnuradio/branches/developers/eb/gcell-wip/gcell/include/gcell/memory_barrier.h
Log:
removed dependency on ppu_intrinics.h
Modified:
gnuradio/branches/developers/eb/gcell-wip/gcell/include/gcell/memory_barrier.h
===================================================================
---
gnuradio/branches/developers/eb/gcell-wip/gcell/include/gcell/memory_barrier.h
2008-10-22 17:50:44 UTC (rev 9825)
+++
gnuradio/branches/developers/eb/gcell-wip/gcell/include/gcell/memory_barrier.h
2008-10-22 18:10:55 UTC (rev 9826)
@@ -19,8 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef INCLUDED_MEMORY_BARRIER_H
-#define INCLUDED_MEMORY_BARRIER_H
+#ifndef INCLUDED_GCELL_MEMORY_BARRIER_H
+#define INCLUDED_GCELL_MEMORY_BARRIER_H
/*
* powerpc memory barriers
@@ -45,22 +45,20 @@
* Control Instructions." (site:ibm.com)
*/
-#include <ppu_intrinsics.h>
-
static inline void smp_mb(void)
{
- __sync();
+ __asm__ volatile ("sync" : : : "memory");
}
static inline void smp_rmb(void)
{
- __lwsync();
+ __asm__ volatile ("lwsync" : : : "memory");
}
static inline void smp_wmb(void)
{
- __eieio();
+ __asm__ volatile ("eieio" : : : "memory");
}
-#endif /* INCLUDED_MEMORY_BARRIER_H */
+#endif /* INCLUDED_GCELL_MEMORY_BARRIER_H */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9826 - gnuradio/branches/developers/eb/gcell-wip/gcell/include/gcell,
eb <=