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 / short_atomic_load_store.h
index f1b52818f1b3036b81a5a953a20cddcc39d2188f..9ec9cf423362446f4c3bc35f185da779e15b716c 100644 (file)
  */ 
 
 /*
- * Definitions for architecturs on which loads and stores of unsigned short are
- * atomic for all legal alignments.
+ * Definitions for architectures on which loads and stores of unsigned short
+ * are atomic for all legal alignments.
  */
 
 AO_INLINE unsigned short
-AO_short_load(volatile unsigned short *addr)
+AO_short_load(const volatile unsigned short *addr)
 {
   /* Cast away the volatile for architectures like IA64 where  */
   /* volatile adds barrier semantics.                          */
-  return (*(unsigned short *)addr);
+  return (*(const unsigned short *)addr);
 }
 
 #define AO_HAVE_short_load