Changeset 43b7b35 in mainline


Ignore:
Timestamp:
2008-08-31T19:54:09Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
82b72e40
Parents:
bf29fe5
Message:

Prevent 'tmp' in amd64's atomic_lock_arch() from being allocated
to the same register as 'val→count'.

File:
1 edited

Legend:

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

    rbf29fe5 r43b7b35  
    109109                "mov %0, %1\n"
    110110                "testq %1, %1\n"
    111                 "jnz 0b\n"       /* Lightweight looping on locked spinlock */
     111                "jnz 0b\n"       /* lightweight looping on locked spinlock */
    112112               
    113113                "incq %1\n"      /* now use the atomic operation */
     
    115115                "testq %1, %1\n"
    116116                "jnz 0b\n"
    117                 : "+m" (val->count), "=r"(tmp)
     117                : "+m" (val->count), "=&r" (tmp)
    118118        );
    119119        /*
Note: See TracChangeset for help on using the changeset viewer.