summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/internals.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-01 09:25:33 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-01 09:25:33 +0000
commitfd56af193eff8ad598d2789e970150d7a363c890 (patch)
treec5ec50abc7960fcaf509b4b1b3a27e4a9302f345 /libpthread/linuxthreads/internals.h
parentf45706ca6ade259d2cf9397c35b0135991470197 (diff)
change asm/volatile to __x__
Diffstat (limited to 'libpthread/linuxthreads/internals.h')
-rw-r--r--libpthread/linuxthreads/internals.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpthread/linuxthreads/internals.h b/libpthread/linuxthreads/internals.h
index 28d86459d..a04995f41 100644
--- a/libpthread/linuxthreads/internals.h
+++ b/libpthread/linuxthreads/internals.h
@@ -161,13 +161,13 @@ extern int __pthread_exit_requested, __pthread_exit_code;
/* Set to 1 by gdb if we're debugging */
-extern volatile int __pthread_threads_debug;
+extern __volatile__ int __pthread_threads_debug;
/* Globally enabled events. */
-extern volatile td_thr_events_t __pthread_threads_events;
+extern __volatile__ td_thr_events_t __pthread_threads_events;
/* Pointer to descriptor of thread with last event. */
-extern volatile pthread_descr __pthread_last_event;
+extern __volatile__ pthread_descr __pthread_last_event;
/* Flag which tells whether we are executing on SMP kernel. */
extern int __pthread_smp_kernel;
@@ -229,7 +229,7 @@ static inline int nonexisting_handle(pthread_handle h, pthread_t id)
distinguish between full, read and write barriers. */
#ifndef MEMORY_BARRIER
-#define MEMORY_BARRIER() asm ("" : : : "memory")
+#define MEMORY_BARRIER() __asm__ ("" : : : "memory")
#endif
#ifndef READ_MEMORY_BARRIER
#define READ_MEMORY_BARRIER() MEMORY_BARRIER()