Changeset d2ab461 in mainline
- Timestamp:
- 2006-03-22T22:25:28Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2802767
- Parents:
- d71007e
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/atomic.h
rd71007e rd2ab461 30 30 #define __ia64_ATOMIC_H__ 31 31 32 #include <arch/types.h>33 #include <typedefs.h>34 35 36 32 /** Atomic addition. 37 33 * -
arch/mips32/include/atomic.h
rd71007e rd2ab461 29 29 #ifndef __mips32_ATOMIC_H__ 30 30 #define __mips32_ATOMIC_H__ 31 32 #include <arch/types.h>33 #include <typedefs.h>34 31 35 32 #define atomic_inc(x) ((void) atomic_add(x, 1)) -
arch/ppc32/include/atomic.h
rd71007e rd2ab461 30 30 #define __ppc32_ATOMIC_H__ 31 31 32 #include <arch/types.h>33 #include <typedefs.h>34 35 32 static inline void atomic_inc(atomic_t *val) 36 33 { 37 __u32tmp;34 long tmp; 38 35 39 36 asm __volatile__ ( … … 50 47 static inline void atomic_dec(atomic_t *val) 51 48 { 52 __u32tmp;49 long tmp; 53 50 54 51 asm __volatile__( -
generic/include/atomic.h
rd71007e rd2ab461 30 30 #define __ATOMIC_H__ 31 31 32 struct atomic {32 typedef struct atomic { 33 33 volatile long count; 34 } ;34 } atomic_t; 35 35 36 36 #include <arch/atomic.h> 37 #include <typedefs.h>38 37 39 38 static inline void atomic_set(atomic_t *val, long i) -
generic/include/typedefs.h
rd71007e rd2ab461 62 62 typedef struct condvar condvar_t; 63 63 typedef struct waitq waitq_t; 64 typedef struct futex futex_t; 64 65 65 66 typedef struct chunk chunk_t; … … 93 94 typedef struct btree btree_t; 94 95 95 typedef struct atomic atomic_t;96 97 96 #endif
Note:
See TracChangeset
for help on using the changeset viewer.