Subversion Repositories HelenOS

Rev

Rev 2089 | Rev 4314 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2089 Rev 2129
Line 103... Line 103...
103
}
103
}
104
 
104
 
105
static inline void atomic_lock_arch(atomic_t *val)
105
static inline void atomic_lock_arch(atomic_t *val)
106
{
106
{
107
    uint64_t tmp1 = 1;
107
    uint64_t tmp1 = 1;
108
    uint64_t tmp2;
108
    uint64_t tmp2 = 0;
109
 
109
 
110
    volatile uintptr_t x = (uint64_t) &val->count;
110
    volatile uintptr_t x = (uint64_t) &val->count;
111
 
111
 
112
    asm volatile (
112
    asm volatile (
113
    "0:\n"
113
    "0:\n"