summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2024-01-05 02:45:01 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2024-01-05 02:45:01 +0000
commite48a5c343d3ba76c6dfb949b5178e46a41792f72 (patch)
treeb81f9de7bc9551e7bf6b050e5d3190c8dd37f72e
parenteaffa1ef55825c34e138246fe5db5bbf996a8dbb (diff)
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.
-rw-r--r--sys/src/9/imx8/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/imx8/main.c b/sys/src/9/imx8/main.c
index 51e2c5a95..455c44402 100644
--- a/sys/src/9/imx8/main.c
+++ b/sys/src/9/imx8/main.c
@@ -268,7 +268,7 @@ mpinit(void)
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);