mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 18:49:48 +02:00
invalidate x86_64 icache
This commit is contained in:
1 parent
6817bc0162
commit
0c5c108f87
1 file changed
+4
@@ -62,5 +62,9 @@ void setup_hooks_x86_64(void *stream)
|
||||
patch(t8012_patch_base, t8012_bin, t8012_bin_len);
|
||||
|
||||
assert(vm_protect(mach_task_self(), page, 0x1000, false, VM_PROT_READ | VM_PROT_EXECUTE) == 0);
|
||||
|
||||
sys_icache_invalidate((void*)page, 0x1000);
|
||||
|
||||
dprintf("patched checkra1n\n");
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user