mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-13 10:57:06 +00:00
m1n1.hw.uat: Only clear out kernel PTs on init()
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
77a00eb5b3
commit
3fa023a0d9
1 changed files with 5 additions and 4 deletions
|
@ -278,10 +278,6 @@ class UAT(Reloadable):
|
|||
self.ttbr1_base = self.sgx_dev.gfx_shared_region_base
|
||||
self.handoff = GFXHandoff(self.u)
|
||||
|
||||
# Clear out any stale kernel page tables
|
||||
self.p.memset64(self.ttbr1_base + 0x10, 0, 0x3ff0)
|
||||
self.u.inst("tlbi vmalle1os")
|
||||
|
||||
self.VA_MASK = 0
|
||||
for (off, size, _) in self.LEVELS:
|
||||
self.VA_MASK |= (size - 1) << off
|
||||
|
@ -523,6 +519,11 @@ class UAT(Reloadable):
|
|||
return
|
||||
|
||||
print("[UAT] Initializing...")
|
||||
|
||||
# Clear out any stale kernel page tables
|
||||
self.p.memset64(self.ttbr1_base + 0x10, 0, 0x3ff0)
|
||||
self.u.inst("tlbi vmalle1os")
|
||||
|
||||
self.handoff.initialize()
|
||||
|
||||
with self.handoff.lock():
|
||||
|
|
Loading…
Reference in a new issue