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 */