mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 04:36:13 +02:00
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>
This commit is contained in:
parent
7906155ed3
commit
3c874711ba
14
arch/riscv/include/asm/atomic.h
Normal file
14
arch/riscv/include/asm/atomic.h
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user