diff options
author | Ben Dooks <ben.dooks@sifive.com> | 2023-05-05 09:02:05 +0100 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2023-07-06 17:28:08 +0800 |
commit | 3c874711ba2d66361b6040df48814be666aa6b1d (patch) | |
tree | a19cffe499cdb413f4bd5428cf5072846dbd5f1d /arch/riscv | |
parent | 7906155ed35ea584c3f8461d297426277d2d4416 (diff) | |
download | u-boot-3c874711ba2d66361b6040df48814be666aa6b1d.zip u-boot-3c874711ba2d66361b6040df48814be666aa6b1d.tar.gz u-boot-3c874711ba2d66361b6040df48814be666aa6b1d.tar.bz2 |
riscv: add generic link for <asm/atomic.h>
Add a link from <asm/atomic.h> to the generic one to allow
things like ubifs to be built. This can be extended with
riscv AMO ops at a later date.
Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/include/asm/atomic.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/atomic.h b/arch/riscv/include/asm/atomic.h new file mode 100644 index 0000000..f541fb4 --- /dev/null +++ b/arch/riscv/include/asm/atomic.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2023 SiFive, Inc. + */ + +#ifndef __RISCV_ATOMIC_H +#define __RISCV_ATOMIC_H + +/* use the generic asm/atomic.h until we define a better one */ + +#include <asm/system.h> +#include <asm-generic/atomic.h> + +#endif |