Skip to content

Commit 69d241c

Browse files
dberlinmarcan
authored andcommitted
Give AMX context reg a name.
This register is used to store AMX context information. Signed-off-by: Daniel Berlin <[email protected]>
1 parent a42c839 commit 69d241c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/chickens.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ const char *init_cpu(void)
149149

150150
int core = mrs(MPIDR_EL1) & 0xff;
151151

152-
// Unknown, related to SMP?
153-
msr(s3_4_c15_c5_0, core);
152+
msr(SYS_IMP_APL_AMX_CTX_EL1, core);
154153
msr(SYS_IMP_APL_AMX_CTL_EL1, 0x100);
155154

156155
// Enable IRQs (at least necessary on t600x)

src/cpu_regs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#define SYS_IMP_APL_ACTLR_EL12 sys_reg(3, 6, 15, 14, 6)
1111

12+
#define SYS_IMP_APL_AMX_CTX_EL1 sys_reg(3, 4, 15, 5, 0)
1213
#define SYS_IMP_APL_AMX_CTL_EL1 sys_reg(3, 4, 15, 1, 4)
1314
#define SYS_IMP_APL_AMX_CTL_EL2 sys_reg(3, 4, 15, 4, 7)
1415
#define SYS_IMP_APL_AMX_CTL_EL12 sys_reg(3, 4, 15, 4, 6)

0 commit comments

Comments
 (0)