diff --git a/arch/arm64/src/goldfish/goldfish_boot.c b/arch/arm64/src/goldfish/goldfish_boot.c index d29af1a43cf..308b432ee62 100644 --- a/arch/arm64/src/goldfish/goldfish_boot.c +++ b/arch/arm64/src/goldfish/goldfish_boot.c @@ -125,6 +125,19 @@ uint64_t arm64_get_mpid(int cpu) return CORE_TO_MPID(cpu, 0); } +/**************************************************************************** + * Name: arm64_get_cpuid + * + * Description: + * The function from mpid to get cpu id + * + ****************************************************************************/ + +int arm64_get_cpuid(uint64_t mpid) +{ + return MPID_TO_CORE(mpid, 0); +} + #endif /* CONFIG_SMP */ /****************************************************************************