mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-14 03:17:05 +00:00
hv_vuart: Make compatible with xnu and enable
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
a5c7e1557f
commit
c794ea6dc2
2 changed files with 2 additions and 2 deletions
|
@ -661,7 +661,7 @@ class HV:
|
|||
self.u.msr(APVMKEYHI_EL2, 0x697665596F755570)
|
||||
self.u.msr(APSTS_EL12, 1)
|
||||
|
||||
#self.p.hv_map_vuart(0x2_35200000, getattr(IODEV, self.iodev.name + "_SEC"))
|
||||
self.p.hv_map_vuart(0x2_35200000, getattr(IODEV, self.iodev.name + "_SEC"))
|
||||
|
||||
actlr = ACTLR(self.u.mrs(ACTLR_EL12))
|
||||
actlr.EnMDSB = 1
|
||||
|
|
|
@ -22,7 +22,7 @@ bool handle_vuart(u64 addr, u64 *val, bool write, int width)
|
|||
} else {
|
||||
switch (addr) {
|
||||
case UTRSTAT:
|
||||
*val = 0x02;
|
||||
*val = 0x06;
|
||||
break;
|
||||
default:
|
||||
*val = 0;
|
||||
|
|
Loading…
Reference in a new issue