mirror of
https://github.com/apache/nuttx.git
synced 2026-08-03 21:29:02 +00:00
arm64: set cpuid according to mpidr
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
8eea6d2e2a
commit
1e55ca43ef
1 changed files with 13 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue