mirror of
https://github.com/iceHtwoO/novaOS.git
synced 2026-04-17 04:32:27 +00:00
Read SoC temp via mailboxes
This commit is contained in:
10
src/vector.S
10
src/vector.S
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user