From 62020f57356375acb713ca5bfc3749c0fb209546 Mon Sep 17 00:00:00 2001 From: Borchev <4501931+Borchev@users.noreply.github.com> Date: Mon, 19 Oct 2026 21:41:23 -0700 Subject: [PATCH] Small fix for pro to boot on 13.20 (#52) --- shellcode_kernel/main.c | 2 +- source/prepare_resume.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shellcode_kernel/main.c b/shellcode_kernel/main.c index ba9d66e..5241a21 100644 --- a/shellcode_kernel/main.c +++ b/shellcode_kernel/main.c @@ -36,7 +36,7 @@ __attribute__((section(".entry_point"))) uint32_t main(uint64_t add1, } else if ((0x0500 <= args_ptr->fw_version) && (args_ptr->fw_version < 0x0800)) { // Already escaped. - } else if (args_ptr->fw_version == 0x1360) { + } else if (args_ptr->fw_version == 0x1320 || args_ptr->fw_version == 0x1360) { // Already escaped. } else { return 0; diff --git a/source/prepare_resume.c b/source/prepare_resume.c index eb0f86a..2000547 100644 --- a/source/prepare_resume.c +++ b/source/prepare_resume.c @@ -197,7 +197,7 @@ uint64_t prepare_sck_args(void) { args.kernel_cfi_check = ktext + env_offset.KERNEL_CFI_CHECK; args.hv_handle_vmexit_pa = env_offset.HV_HANDLE_VMEXIT_PA; args.hv_code_cave_pa = env_offset.HV_CODE_CAVE_PA; - if (fw == 0x1360 && linux_i.kit_type == KIT_RETAIL_PRO) { + if ((fw == 0x1320 || fw == 0x1360) && linux_i.kit_type == KIT_RETAIL_PRO) { uint64_t pro_base = derive_h() + HV_CODE_OFFSET_PRO; uint64_t hv_offset = pro_base - HV_BASE_REGULAR; args.hv_handle_vmexit_pa += hv_offset;