mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-19 16:31:27 +01:00
In order to compile code that uses <asm/atomic.h> 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 <trini@konsulko.com>
16 lines
317 B
C
16 lines
317 B
C
/* 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 <asm/system.h>
|
|
#include <asm-generic/atomic.h>
|
|
|
|
#endif
|