Ignore:
File:
1 edited

Legend:

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

    r228666c rba371e1  
    101101static inline atomic_count_t test_and_set(atomic_t *val)
    102102{
    103         atomic_count_t v;
     103        atomic_count_t v = 1;
    104104       
    105105        asm volatile (
    106                 "movl $1, %[v]\n"
    107106                "xchgl %[v], %[count]\n"
    108                 : [v] "=r" (v),
     107                : [v] "+r" (v),
    109108                  [count] "+m" (val->count)
    110109        );
Note: See TracChangeset for help on using the changeset viewer.