From dc1a1a3486bb5d74b8f2ea6ada782acdc2f34d0a Mon Sep 17 00:00:00 2001 From: opa334 Date: Thu, 16 May 2024 00:29:12 +0200 Subject: [PATCH] Fix intendation --- BaseBin/libjailbreak/src/kcall_Fugu14.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/BaseBin/libjailbreak/src/kcall_Fugu14.c b/BaseBin/libjailbreak/src/kcall_Fugu14.c index 66406f33d..1b1a7f2e3 100644 --- a/BaseBin/libjailbreak/src/kcall_Fugu14.c +++ b/BaseBin/libjailbreak/src/kcall_Fugu14.c @@ -19,14 +19,14 @@ void pac_loop(void); uint64_t mapKernelPage(uint64_t addr) { - uint64_t page = addr & ~0x3FFFULL; - uint64_t off = addr & 0x3FFFULL; - uint64_t translated = kvtophys(page); - void *map = NULL; - if (kmap(translated, 0x4000, &map) == 0) { - return ((uint64_t)map) + off; - } - return -1; + uint64_t page = addr & ~0x3FFFULL; + uint64_t off = addr & 0x3FFFULL; + uint64_t translated = kvtophys(page); + void *map = NULL; + if (kmap(translated, 0x4000, &map) == 0) { + return ((uint64_t)map) + off; + } + return -1; } uint64_t getUserReturnThreadContext(void) @@ -130,8 +130,8 @@ int fugu14_kcall_init(int (^threadSigner)(mach_port_t threadPort)) // Write register values uint64_t str_x8_x9_gadget = kgadget(str_x8_x9); - uint64_t exception_return_after_check = kgadget(exception_return_after_check); - uint64_t brX22 = kgadget(br_x22); + uint64_t exception_return_after_check = kgadget(exception_return_after_check); + uint64_t brX22 = kgadget(br_x22); kwrite64(actContext + offsetof(kRegisterState, pc), str_x8_x9_gadget); kwrite32(actContext + offsetof(kRegisterState, cpsr), CPSR_KERN_INTR_DIS); kwrite64(actContext + offsetof(kRegisterState, lr), exception_return_after_check);