This is an automated email from the ASF dual-hosted git repository.
lupyuen pushed a commit to branch releases/12.9
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/12.9 by this push:
new e7cc8ac713 mpfs/mpfs_entrypoints.c: Change atomic_load > atomic_read
e7cc8ac713 is described below
commit e7cc8ac713b1bd928670c05fbc8f6bc1bf92c113
Author: Ville Juven <[email protected]>
AuthorDate: Wed Apr 2 13:32:47 2025 +0300
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 <[email protected]>
---
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 64b6866ac3..2e5aa4f642 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 */