Read SoC temp via mailboxes

This commit is contained in:
2025-07-18 14:41:19 +02:00
parent fe8e5e000a
commit fbc2fcff72
11 changed files with 91 additions and 51 deletions

View File

@@ -21,7 +21,6 @@ vector_table:
.align 4
.extern main
.global el2_to_el1
el2_to_el1:
@@ -45,10 +44,15 @@ el2_to_el1:
msr VBAR_EL1, x0
// Disable MMU
mrs x0, sctlr_el1
bic x0, x0, #1
ldr x0, =SCTLR_EL1_CONF
msr sctlr_el1, x0
// SIMD should not be trapped
mrs x0, CPACR_EL1
mov x1, #(0b11<<20)
orr x0,x0, x1
msr CPACR_EL1,x0
isb
// Return to EL1