1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Emulated 1-byte and 2-byte cmpxchg operations for architectures
4 * lacking direct support for these sizes. These are implemented in terms
5 * of 4-byte cmpxchg operations.
7 * Copyright (C) 2024 Paul E. McKenney.
10 #ifndef __LINUX_CMPXCHG_EMU_H
11 #define __LINUX_CMPXCHG_EMU_H
13 uintptr_t cmpxchg_emu_u8(volatile u8
*p
, uintptr_t old
, uintptr_t new);
15 #endif /* __LINUX_CMPXCHG_EMU_H */