shithub: riscv

Download patch

ref: 4705576f844f536cdf46d581d4d1ad8776aaa4e9
parent: 44c0e7259800885d0028d8c5352f6760f670132b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Nov 11 11:07:06 EST 2023

bcm64, imx8: provide more flexible MPIDR_EL1 CPUID to machno mapping

Handle the mapping from MPIDR_EL1 to machno with a
mpidindex() function, that uses a new MPIDMASK
constant from mem.h that signifies the cpuid bits.

This way, other affinity arrangements can be supported
by just changing the MPIDMASK constant.