From: Tom Rini Date: Tue, 12 Aug 2025 17:59:08 +0000 (-0600) Subject: sandbox: Add generic asm/atomic.h X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66ff673a8e9f56d2c08a32d12867094c77ea5fd3;p=thirdparty%2Fu-boot.git sandbox: Add generic asm/atomic.h In order to compile code that uses on sandbox, we must provide this header. RISC-V shows us today how to do so with the generic header implementation, so copy that. Signed-off-by: Tom Rini --- diff --git a/arch/sandbox/include/asm/atomic.h b/arch/sandbox/include/asm/atomic.h new file mode 100644 index 00000000000..2fe49f52f34 --- /dev/null +++ b/arch/sandbox/include/asm/atomic.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Based on arch/riscv/include/asm/atomic.h which is: + * Copyright 2023 SiFive, Inc. + */ + +#ifndef __SANDBOX_ATOMIC_H +#define __SANDBOX_ATOMIC_H + +/* use the generic asm/atomic.h until we define a better one */ + +#include +#include + +#endif