Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/atomic.h

    r7a0359b rdf4ed85  
    2727 */
    2828
    29 /** @addtogroup generic
     29/** @addtogroup generic 
    3030 * @{
    3131 */
     
    3636#define KERN_ATOMIC_H_
    3737
    38 #include <typedefs.h>
     38typedef struct atomic {
     39        volatile long count;
     40} atomic_t;
     41
    3942#include <arch/atomic.h>
    40 #include <verify.h>
    4143
    42 NO_TRACE ATOMIC static inline void atomic_set(atomic_t *val, atomic_count_t i)
    43     WRITES(&val->count)
    44     REQUIRES_EXTENT_MUTABLE(val)
     44static inline void atomic_set(atomic_t *val, long i)
    4545{
    4646        val->count = i;
    4747}
    4848
    49 NO_TRACE ATOMIC static inline atomic_count_t atomic_get(atomic_t *val)
    50     REQUIRES_EXTENT_MUTABLE(val)
     49static inline long atomic_get(atomic_t *val)
    5150{
    5251        return val->count;
Note: See TracChangeset for help on using the changeset viewer.