Trying to fix exception in el1

This commit is contained in:
2025-06-25 11:44:40 +02:00
parent 1ff752e3dd
commit fe8e5e000a
12 changed files with 159 additions and 74 deletions

View File

@@ -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