fml coke spilled all over this laptop's keyboard

This commit is contained in:
TuxSH
2019-07-28 18:50:16 +02:00
parent 3009438e54
commit a560de8465
6 changed files with 252 additions and 86 deletions

View File

@@ -42,10 +42,11 @@ void enableTraps(void)
// Trap SMC instructions
hcr |= HCR_TSC;
// Reroute physical IRQ to EL2
// Reroute physical IRQs to EL2
hcr |= HCR_IMO;
// TODO debug exceptions
// Make sure HVC is enabled
hcr &= ~HCR_HCD;
SET_SYSREG(hcr_el2, hcr);