Changeset 33c4f72 in mainline for kernel/generic
- Timestamp:
- 2010-06-25T13:38:30Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fc81981
- Parents:
- 09a0bd4a
- Location:
- kernel/generic/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/atomic.h
r09a0bd4a r33c4f72 41 41 42 42 ATOMIC static inline void atomic_set(atomic_t *val, atomic_count_t i) 43 WRITES(&val->count) 44 REQUIRES_EXTENT_MUTABLE(val) 43 45 { 44 46 val->count = i; … … 46 48 47 49 ATOMIC static inline atomic_count_t atomic_get(atomic_t *val) 50 REQUIRES_EXTENT_MUTABLE(val) 48 51 { 49 52 return val->count; -
kernel/generic/include/verify.h
r09a0bd4a r33c4f72 39 39 #ifdef CONFIG_VERIFY_VCC 40 40 41 #define ATOMIC __spec_attr("atomic_inline", "") 42 #define REQUIRES(...) __requires(__VA_ARGS__) 41 #define ATOMIC __specification_attr("atomic_inline", "") 42 #define READS(...) __specification(reads(__VA_ARGS__)) 43 #define WRITES(...) __specification(writes(__VA_ARGS__)) 44 #define REQUIRES(...) __specification(requires __VA_ARGS__) 45 46 #define REQUIRES_EXTENT_MUTABLE(...) \ 47 REQUIRES(\extent_mutable(__VA_ARGS__)) 43 48 44 49 #else /* CONFIG_VERIFY_VCC */ 45 50 46 51 #define ATOMIC 52 #define READS(...) 53 #define WRITES(...) 47 54 #define REQUIRES(...) 55 56 #define REQUIRES_EXTENT_MUTABLE(...) 48 57 49 58 #endif /* CONFIG_VERIFY_VCC */
Note:
See TracChangeset
for help on using the changeset viewer.