summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 64eadcf)
raw | patch | inline | side by side (parent: 64eadcf)
author | Wendy Liang <jliang@xilinx.com> | |
Wed, 1 Jun 2016 23:37:40 +0000 (16:37 -0700) | ||
committer | Wendy Liang <jliang@xilinx.com> | |
Thu, 13 Oct 2016 05:01:43 +0000 (22:01 -0700) |
As we use atomic operations to setup memory fence.
It is not required to define memory barrier in
OpenAMP.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
It is not required to define memory barrier in
OpenAMP.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/include/openamp/env.h | patch | blob | history | |
lib/system/generic/env.c | patch | blob | history |
index ccab0050399582dfd05fee30bcd3e6d42c07b689..9baf27d380199b1d7f9ef768548078b70a51940f 100644 (file)
* env_assert
* env_map_vatopa
* env_map_patova
- * env_mb
- * env_rmb
- * env_wmb
* env_sleep_msec
* env_disable_interrupts
* env_restore_interrupts
*/
void *env_map_patova(unsigned long address);
-/**
- *-----------------------------------------------------------------------------
- *
- * Abstractions for memory barrier instructions.
- *
- *-----------------------------------------------------------------------------
- */
-
-/**
- * env_mb
- *
- * Inserts memory barrier.
- */
-
-void env_mb();
-
-/**
- * env_rmb
- *
- * Inserts read memory barrier
- */
-
-void env_rmb();
-
-/**
- * env_wmb
- *
- * Inserts write memory barrier
- */
-
-void env_wmb();
-
/**
*-----------------------------------------------------------------------------
*
index 5db4b849141026ae085e9f1632f67c89239c68d0..cd36edd993dfa26c62215d0529b64656bd40c65e 100755 (executable)
--- a/lib/system/generic/env.c
+++ b/lib/system/generic/env.c
}
}
-/**
- *
- * env_mb - implementation
- *
- */
-void env_mb()
-{
- MEM_BARRIER();
-}
-
-/**
- * osalr_mb - implementation
- */
-void env_rmb()
-{
- MEM_BARRIER();
-}
-
-/**
- * env_wmb - implementation
- */
-void env_wmb()
-{
- MEM_BARRIER();
-}
-
/**
* env_map_vatopa - implementation
*