thermosphere: sysreg stuff, continued

This commit is contained in:
TuxSH
2019-07-26 23:06:34 +02:00
parent 53785b2281
commit df38a00b86
4 changed files with 93 additions and 18 deletions

View File

@@ -36,7 +36,8 @@ void enableTraps(void)
u64 hcr = GET_SYSREG(hcr_el2);
// Trap *writes* to memory control registers
hcr |= HCR_TVM;
//hcr |= HCR_TVM;
// actually don't
// Trap SMC instructions
hcr |= HCR_TSC;