x86: consolidate xchg and xadd macros
They both have a basic "put new value in location, return old value"
pattern, so they can use the same macro easily.
Signed-off-by: NJeremy Fitzhardinge <jeremy@goop.org>
Showing
想要评论请 注册 或 登录
They both have a basic "put new value in location, return old value"
pattern, so they can use the same macro easily.
Signed-off-by: NJeremy Fitzhardinge <jeremy@goop.org>