From cc64c026d9e18926f58f66fb3ee7235fca219bf0 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Wed, 2 Apr 2025 13:32:47 +0300 Subject: [PATCH] mpfs/mpfs_entrypoints.c: Change atomic_load > atomic_read Otherwise we get an undefined symbol error when LIBC_ARCH_ATOMIC is defined. Signed-off-by: Ville Juven --- arch/risc-v/src/mpfs/mpfs_entrypoints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/risc-v/src/mpfs/mpfs_entrypoints.c b/arch/risc-v/src/mpfs/mpfs_entrypoints.c index 64b6866ac35..2e5aa4f642a 100644 --- a/arch/risc-v/src/mpfs/mpfs_entrypoints.c +++ b/arch/risc-v/src/mpfs/mpfs_entrypoints.c @@ -270,7 +270,7 @@ bool mpfs_get_use_sbi(uint64_t hartid) int mpfs_cpus_booted(void) { - return atomic_load(&g_cpus_booted); + return atomic_read(&g_cpus_booted); } #endif /* CONFIG_MPFS_BOOTLOADER */