mirror of
https://github.com/iceHtwoO/novaOS.git
synced 2026-04-17 04:32:27 +00:00
Trying to fix exception in el1
This commit is contained in:
@@ -14,8 +14,8 @@ vector_table:
|
||||
ventry .
|
||||
ventry .
|
||||
|
||||
ventry .
|
||||
ventry irq_handler // IRQ(Interrupt Request) 0x280
|
||||
ventry synchronous_interrupt // Synchronous Exception 0x200
|
||||
ventry irq_handler // IRQ(Interrupt Request) 0x280
|
||||
ventry .
|
||||
ventry .
|
||||
|
||||
@@ -44,6 +44,11 @@ el2_to_el1:
|
||||
adr x0, vector_table
|
||||
msr VBAR_EL1, x0
|
||||
|
||||
// Disable MMU
|
||||
mrs x0, sctlr_el1
|
||||
bic x0, x0, #1
|
||||
msr sctlr_el1, x0
|
||||
|
||||
isb
|
||||
|
||||
// Return to EL1
|
||||
|
||||
Reference in New Issue
Block a user