Skip to content

Commit

Permalink
This seems to work
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeajames authored Jun 30, 2019
1 parent d908c17 commit 0ffaf4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions amfi_utils.m
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ uint64_t ubc_cs_blob_allocate(vm_size_t size) {
return alloced;
}
else {
size = (size + 0x3fff) & ~0x3fff;
uint64_t addrp = Kernel_alloc(sizeof(uint64_t));
if (!addrp) return 0;

Expand All @@ -205,14 +204,13 @@ uint64_t ubc_cs_blob_allocate(vm_size_t size) {
uint64_t alloc = Find_kernel_memory_allocate();
if (!alloc) return 0;

Kernel_Execute(alloc, kernel_map, addrp, size, 0, 0, 0, 0);
Kernel_Execute(alloc, kernel_map, addrp, size, 0, 4, 17, 0);
addrp = KernelRead_64bits(addrp);
return addrp;
}
}

void kern_free(uint64_t addr, vm_size_t size) {
if (size > 0x1ff8) size = (size + 0x3fff) & ~0x3fff;
Kernel_Execute(Find_kfree(), addr, size, 0, 0, 0, 0, 0);
}

Expand Down
Binary file modified downloads/jelbrekLib.a
Binary file not shown.

0 comments on commit 0ffaf4a

Please sign in to comment.