Ignore:
File:
1 edited

Legend:

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

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