ref: e48a5c343d3ba76c6dfb949b5178e46a41792f72
parent: eaffa1ef55825c34e138246fe5db5bbf996a8dbb
author: cinap_lenrek <[email protected]>
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);