Changeset 32e8cd1 in mainline for kernel/arch/sparc32/include/arch/atomic.h
- Timestamp:
- 2013-12-28T17:16:44Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1023bcb
- Parents:
- f6f22cdb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc32/include/arch/atomic.h
rf6f22cdb r32e8cd1 27 27 */ 28 28 29 /** @addtogroup abs32le29 /** @addtogroup sparc32 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef KERN_ abs32le_ATOMIC_H_36 #define KERN_ abs32le_ATOMIC_H_35 #ifndef KERN_sparc32_ATOMIC_H_ 36 #define KERN_sparc32_ATOMIC_H_ 37 37 38 38 #include <typedefs.h> … … 47 47 REQUIRES(val->count < ATOMIC_COUNT_MAX) 48 48 { 49 /* On real hardware the increment has to be done 50 as an atomic action. */ 51 49 // FIXME TODO 52 50 val->count++; 53 51 } … … 58 56 REQUIRES(val->count > ATOMIC_COUNT_MIN) 59 57 { 60 /* On real hardware the decrement has to be done 61 as an atomic action. */ 62 58 // FIXME TODO 63 59 val->count--; 64 60 } … … 69 65 REQUIRES(val->count < ATOMIC_COUNT_MAX) 70 66 { 71 /* On real hardware both the storing of the previous 72 value and the increment have to be done as a single 73 atomic action. */ 67 // FIXME TODO 74 68 75 69 atomic_count_t prev = val->count; … … 84 78 REQUIRES(val->count > ATOMIC_COUNT_MIN) 85 79 { 86 /* On real hardware both the storing of the previous 87 value and the decrement have to be done as a single 88 atomic action. */ 80 // FIXME TODO 89 81 90 82 atomic_count_t prev = val->count; … … 101 93 REQUIRES_EXTENT_MUTABLE(val) 102 94 { 103 /* On real hardware the retrieving of the original 104 value and storing 1 have to be done as a single 105 atomic action. */ 95 // FIXME TODO 106 96 107 97 atomic_count_t prev = val->count; … … 114 104 REQUIRES_EXTENT_MUTABLE(val) 115 105 { 106 // FIXME TODO 107 116 108 do { 117 109 while (val->count);
Note:
See TracChangeset
for help on using the changeset viewer.