Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/abs32le/include/atomic.h

    rb03a666 rfb52db8  
    5454}
    5555
    56 static inline atomic_count_t atomic_postinc(atomic_t *val)
     56static inline long atomic_postinc(atomic_t *val)
    5757{
    5858        /* On real hardware both the storing of the previous
     
    6060           atomic action. */
    6161       
    62         atomic_count_t prev = val->count;
     62        long prev = val->count;
    6363       
    6464        val->count++;
     
    6666}
    6767
    68 static inline atomic_count_t atomic_postdec(atomic_t *val)
     68static inline long atomic_postdec(atomic_t *val)
    6969{
    7070        /* On real hardware both the storing of the previous
     
    7272           atomic action. */
    7373       
    74         atomic_count_t prev = val->count;
     74        long prev = val->count;
    7575       
    7676        val->count--;
     
    8181#define atomic_predec(val)  (atomic_postdec(val) - 1)
    8282
    83 static inline atomic_count_t test_and_set(atomic_t *val)
     83static inline uint32_t test_and_set(atomic_t *val)
    8484{
    85         atomic_count_t prev = val->count;
     85        uint32_t prev = val->count;
    8686        val->count = 1;
    8787        return prev;
Note: See TracChangeset for help on using the changeset viewer.