dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] pnet ChangeLog libgc/libatomic_ops-1.2/src/atom...


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] pnet ChangeLog libgc/libatomic_ops-1.2/src/atom...
Date: Thu, 31 Jul 2008 20:24:33 +0000

CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    pnet
Changes by:     Klaus Treichel <ktreichel>      08/07/31 20:24:32

Modified files:
        .              : ChangeLog 
Added files:
        libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps: 
                                                        
all_aligned_atomic_load_store.h 
                                                        
int_aligned_atomic_load_store.h 

Log message:
        Add two other missed files

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnet/ChangeLog?cvsroot=dotgnu-pnet&r1=1.3549&r2=1.3550
http://cvs.savannah.gnu.org/viewcvs/pnet/libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/all_aligned_atomic_load_store.h?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnet/libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/int_aligned_atomic_load_store.h?cvsroot=dotgnu-pnet&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ChangeLog,v
retrieving revision 1.3549
retrieving revision 1.3550
diff -u -b -r1.3549 -r1.3550
--- ChangeLog   31 Jul 2008 20:15:13 -0000      1.3549
+++ ChangeLog   31 Jul 2008 20:24:31 -0000      1.3550
@@ -62,6 +62,7 @@
        
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/aligned_atomic_load_store.h,
        
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/all_acquire_release_volatile.h,
        libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/all_atomic_load_store.h,
+       
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/all_aligned_atomic_load_store.h,
        libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/ao_t_is_int.h,
        libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/atomic_load_store.h,
        
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/char_acquire_release_volatile.h,
@@ -69,6 +70,7 @@
        libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/emul_cas.h,
        libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/generic_pthread.h,
        
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/int_acquire_release_volatile.h,
+       
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/int_aligned_atomic_load_store.h,
        libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/int_atomic_load_store.h,
        libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/Makefile.am,
        libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/Makefile.in,

Index: 
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/all_aligned_atomic_load_store.h
===================================================================
RCS file: 
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/all_aligned_atomic_load_store.h
diff -N 
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/all_aligned_atomic_load_store.h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ 
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/all_aligned_atomic_load_store.h  
    31 Jul 2008 20:24:32 -0000      1.1
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2004 Hewlett-Packard Development Company, L.P.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to 
deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
THE
+ * SOFTWARE. 
+ */
+
+/*
+ * Describes architectures on which AO_t, unsigned char, unsigned short,
+ * and unsigned int loads and strores are atomic for all normally legal 
alignments.
+ */
+#include "aligned_atomic_load_store.h"
+#include "char_atomic_load_store.h"
+#include "short_aligned_atomic_load_store.h"
+#include "int_aligned_atomic_load_store.h"

Index: 
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/int_aligned_atomic_load_store.h
===================================================================
RCS file: 
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/int_aligned_atomic_load_store.h
diff -N 
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/int_aligned_atomic_load_store.h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ 
libgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/int_aligned_atomic_load_store.h  
    31 Jul 2008 20:24:32 -0000      1.1
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2004 Hewlett-Packard Development Company, L.P.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to 
deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
THE
+ * SOFTWARE. 
+ */ 
+
+/*
+ * Definitions for architecturs on which loads and stores of unsigned int are
+ * atomic fo all legal alignments.
+ */
+
+AO_INLINE unsigned int
+AO_int_load(volatile unsigned int *addr)
+{
+  assert(((size_t)addr & (sizeof(unsigned int) - 1)) == 0);
+  /* Cast away the volatile for architectures like IA64 where  */
+  /* volatile adds barrier semantics.                          */
+  return (*(unsigned int *)addr);
+}
+
+#define AO_HAVE_int_load
+
+AO_INLINE void
+AO_int_store(volatile unsigned int *addr, unsigned int new_val)
+{
+  assert(((size_t)addr & (sizeof(unsigned int) - 1)) == 0);
+  (*(unsigned int *)addr) = new_val;
+}
+
+#define AO_HAVE_int_store
+
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]