1 /* SPDX-License-Identifier: GPL-2.0+ */ 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 2 /* 3 * Emulated 1-byte and 2-byte cmpxchg operatio 3 * Emulated 1-byte and 2-byte cmpxchg operations for architectures 4 * lacking direct support for these sizes. Th 4 * lacking direct support for these sizes. These are implemented in terms 5 * of 4-byte cmpxchg operations. 5 * of 4-byte cmpxchg operations. 6 * 6 * 7 * Copyright (C) 2024 Paul E. McKenney. 7 * Copyright (C) 2024 Paul E. McKenney. 8 */ 8 */ 9 9 10 #ifndef __LINUX_CMPXCHG_EMU_H 10 #ifndef __LINUX_CMPXCHG_EMU_H 11 #define __LINUX_CMPXCHG_EMU_H 11 #define __LINUX_CMPXCHG_EMU_H 12 12 13 uintptr_t cmpxchg_emu_u8(volatile u8 *p, uintp 13 uintptr_t cmpxchg_emu_u8(volatile u8 *p, uintptr_t old, uintptr_t new); 14 14 15 #endif /* __LINUX_CMPXCHG_EMU_H */ 15 #endif /* __LINUX_CMPXCHG_EMU_H */ 16 16
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.