Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 88d653c in mainline


Ignore:
Timestamp:
2009-07-29T19:23:19Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
87bedd1c
Parents:
ba0aa6f
Message:

Add simple atomic_lock_arch() to mips32 so that it builds for the msim target.

File:
1 edited

Legend:

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

    rba0aa6f r88d653c  
    8989}
    9090
     91static inline void atomic_lock_arch(atomic_t *val) {
     92        do {
     93                while (val->count)
     94                        ;
     95        } while (test_and_set(val));
     96}
     97
    9198#endif
    9299
Note: See TracChangeset for help on using the changeset viewer.