forked from Mirrors/opensbi

The AMO instructions are very critical for Linux so allow low-end RISC-V implementations without Zaamo to boot Linux by emulating AMO instructions using Zalrsc when OpenSBI is compiled without Zaamo. Signed-off-by: Chao-ying Fu <cfu@mips.com> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Link: https://lore.kernel.org/r/20250519121207.976949-1-apatel@ventanamicro.com Signed-off-by: Anup Patel <anup@brainfault.org>
18 lines
272 B
C
18 lines
272 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2025 MIPS
|
|
*
|
|
*/
|
|
|
|
#ifndef __SBI_ILLEGAL_ATOMIC_H__
|
|
#define __SBI_ILLEGAL_ATOMIC_H__
|
|
|
|
#include <sbi/sbi_types.h>
|
|
|
|
struct sbi_trap_regs;
|
|
|
|
int sbi_illegal_atomic(ulong insn, struct sbi_trap_regs *regs);
|
|
|
|
#endif
|