boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / mm / boehm-gc / libatomic_ops-1.2 / src / atomic_ops / sysdeps / atomic_load_store.h
index 68c5179e4f8e7858ab4adc07ee8a9263b9774483..c69c97a86c7f1eeb96dfc4dd7c896d20d6b4c2e1 100644 (file)
  */ 
 
 /*
- * Definitions for architecturs on which loads and stores of AO_t are
- * atomic fo all legal alignments.
+ * Definitions for architectures on which loads and stores of AO_t are
+ * atomic for all legal alignments.
  */
 
 AO_INLINE AO_t
-AO_load(volatile AO_t *addr)
+AO_load(const volatile AO_t *addr)
 {
   /* Cast away the volatile for architectures like IA64 where  */
   /* volatile adds barrier semantics.                          */
-  return (*(AO_t *)addr);
+  return (*(const AO_t *)addr);
 }
 
 #define AO_HAVE_load