brintos

brintos / linux-shallow public Read only

0
0
Text · 435 B · 998deec Raw
16 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ */2/*3 * Emulated 1-byte and 2-byte cmpxchg operations for architectures4 * lacking direct support for these sizes.  These are implemented in terms5 * of 4-byte cmpxchg operations.6 *7 * Copyright (C) 2024 Paul E. McKenney.8 */9 10#ifndef __LINUX_CMPXCHG_EMU_H11#define __LINUX_CMPXCHG_EMU_H12 13uintptr_t cmpxchg_emu_u8(volatile u8 *p, uintptr_t old, uintptr_t new);14 15#endif /* __LINUX_CMPXCHG_EMU_H */16