1 #ifndef _ASM_X86_XEN_CMPXCHG_32_H
2 #define _ASM_X86_XEN_CMPXCHG_32_H
4 static inline u64 get_64bit(const volatile u64 *ptr)
7 __asm__("movl %%ebx,%%eax\n"
9 LOCK_PREFIX "cmpxchg8b %1"
10 : "=&A" (res) : "m" (*ptr));
14 static inline u64 get_64bit_local(const volatile u64 *ptr)
17 __asm__("movl %%ebx,%%eax\n"
20 : "=&A" (res) : "m" (*ptr));
24 #endif /* _ASM_X86_XEN_CMPXCHG_32_H */