Last active
May 22, 2021 01:08
-
-
Save BlueSlimee/adc3dc8a7945e751220e9a728da0b913 to your computer and use it in GitHub Desktop.
Prelim reg patches for macOS 11.3/arm64 (needs testing)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/xnu-qemu-arm64-5.1.0.diff b/xnu-qemu-arm64-5.1.0.diff | |
index f22ab5c..9635a8d 100644 | |
--- a/xnu-qemu-arm64-5.1.0.diff | |
+++ b/xnu-qemu-arm64-5.1.0.diff | |
@@ -927,10 +927,24 @@ index 0000000..6cda40a | |
+ } | |
+}; | |
+ | |
++struct darwin_kernel_patch darwin_patches_20E241 = { | |
++ .darwin_str = | |
++ "Darwin Kernel Version 20.4.0: Thu Apr 22 21:46:41 PDT 2021; " | |
++ "root:xnu-7195.101.2~1/RELEASE_ARM64_T8101", | |
++ .num_patches = 5, .patches = { | |
++ DARWIN_PATCH_A(0xfffffe0007ac4580, g_set_cpacr_and_branch_inst), // initial branch | |
++ DARWIN_PATCH(0xfffffe0007ab8a3c, g_bzero_branch_unconditionally_inst), // bzero conditional branch | |
++ DARWIN_PATCH(0xfffffe000806b438, g_w10_zero_inst), // parse_machfile slide set instruction | |
++ DARWIN_PATCH(0xfffffe0008cb6538, g_mov_w0_01_inst), // core trust check | |
++ DARWIN_PATCH(0xfffffe000806b234, g_nop_inst), // load_machfile: disable IMGPF_NOJOP | |
++ } | |
++}; | |
++ | |
+struct darwin_kernel_patch *darwin_patches[] = { | |
+ &darwin_patches_20A5364e, | |
+ &darwin_patches_20B5012d, | |
+ &darwin_patches_20C69, | |
++ &darwin_patches_20E241, | |
+}; | |
+ | |
+static void j273_add_cpregs(J273MachineState *nms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment