mirror of
https://github.com/apache/nuttx.git
synced 2026-09-25 09:15:09 +08:00
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 <ville.juven@unikie.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user