ref: e82d474c67efc97e09b4a2be98ec7c5348d0764f
parent: 63beb8c354aeb446fe5cd1c75bbdaeef6d11612e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jan 4 21:45:01 EST 2024
imx8: the mpid should not contain other bits from MPIDR_EL1, only the AFF bits By looking at ATF, it seems only the affinity bits are expected here, no MT bit.
--- a/sys/src/9/imx8/main.c
+++ b/sys/src/9/imx8/main.c
@@ -268,7 +268,7 @@
cachedwbinvse(MACHP(i), MACHSIZE);
u.r0 = 0x84000003; /* CPU_ON */
- u.r1 = (sysrd(MPIDR_EL1) & ~MPIDMASK) | machmpid(i);
+ u.r1 = machmpid(i);
u.r2 = PADDR(_start);
u.r3 = i;
smccall(&u);
--
⑨