Go to the documentation of this file. 1 #ifndef __ASM_SH_ATOMIC_LLSC_H
2 #define __ASM_SH_ATOMIC_LLSC_H
14 "1: movli.l @%2, %0 ! atomic_add \n"
28 "1: movli.l @%2, %0 ! atomic_sub \n"
50 "1: movli.l @%2, %0 ! atomic_add_return \n"
67 "1: movli.l @%2, %0 ! atomic_sub_return \n"
84 "1: movli.l @%2, %0 ! atomic_clear_mask \n"
89 :
"r" (~mask),
"r" (&v->
counter)
98 "1: movli.l @%2, %0 ! atomic_set_mask \n"
100 " movco.l %0, @%2 \n"
103 :
"r" (mask),
"r" (&v->
counter)