medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 258d2b1fec8fb12aa79c44a05cd8dfff4072bf5a
parent 3020202dcfe1bb1ff017c85d4b42faebf347e00a
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Aug 16 18:20:21 +0200

Add platform_barrier.h

Diffstat:
platform_barrier.h | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/platform_barrier.h b/platform_barrier.h @@ -0,0 +1,7 @@ +#ifndef _PLATFORM_BARRIER_H_ +#define _PLATFORM_BARRIER_H_ + +#define read_barrier() asm volatile ( "" ::: "memory" ) +#define write_barrier() asm volatile ( "" ::: "memory" ) + +#endif // _PLATFORM_BARRIER_H_