Skip to content

Commit

Permalink
Give AMX context reg a name.
Browse files Browse the repository at this point in the history
This register is used to store AMX context information.

Signed-off-by: Daniel Berlin <[email protected]>
  • Loading branch information
dberlin committed Dec 11, 2023
1 parent 7112506 commit f316337
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/chickens.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ const char *init_cpu(void)

int core = mrs(MPIDR_EL1) & 0xff;

// Unknown, related to SMP?
msr(s3_4_c15_c5_0, core);
msr(SYS_IMP_APL_AMX_CTX_EL1, core);
msr(SYS_IMP_APL_AMX_CTL_EL1, 0x100);

// Enable IRQs (at least necessary on t600x)
Expand Down
1 change: 1 addition & 0 deletions src/cpu_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

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

#define SYS_IMP_APL_AMX_CTX_EL1 sys_reg(3, 4, 15, 5, 0)
#define SYS_IMP_APL_AMX_CTL_EL1 sys_reg(3, 4, 15, 1, 4)
#define SYS_IMP_APL_AMX_CTL_EL2 sys_reg(3, 4, 15, 4, 7)
#define SYS_IMP_APL_AMX_CTL_EL12 sys_reg(3, 4, 15, 4, 6)
Expand Down

0 comments on commit f316337

Please sign in to comment.