forked from yystopf/xiuos
Modify cpu mair setup
This commit is contained in:
parent
2425a2a12e
commit
8ad7409aae
|
@ -135,10 +135,10 @@ __cpu_mair_setup:
|
||||||
tlbi vmalle1 // Invalidate local TLB
|
tlbi vmalle1 // Invalidate local TLB
|
||||||
dsb nsh
|
dsb nsh
|
||||||
|
|
||||||
mov x0, #3 << 20
|
// mov x0, #3 << 20
|
||||||
msr cpacr_el1, x0 // Enable FP/ASIMD
|
// msr cpacr_el1, x0 // Enable FP/ASIMD
|
||||||
mov x0, #1 << 12 // Reset mdscr_el1 and disable
|
// mov x0, #1 << 12 // Reset mdscr_el1 and disable
|
||||||
msr mdscr_el1, x0 // access to the DCC from EL0
|
// msr mdscr_el1, x0 // access to the DCC from EL0
|
||||||
isb // Unmask debug exceptions now,
|
isb // Unmask debug exceptions now,
|
||||||
// enable_dbg // since this is per-cpu
|
// enable_dbg // since this is per-cpu
|
||||||
/*
|
/*
|
||||||
|
@ -161,7 +161,7 @@ __cpu_mair_setup:
|
||||||
MAIR(0xbb, MT_NORMAL_WT)
|
MAIR(0xbb, MT_NORMAL_WT)
|
||||||
msr mair_el1, x5
|
msr mair_el1, x5
|
||||||
|
|
||||||
eret
|
ret
|
||||||
.endfunc
|
.endfunc
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue