From 98d6e9bb4f909ceaa17125b236c8ce9f660cfe38 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Fri, 26 Nov 2021 13:58:39 +0900 Subject: [PATCH] tools/chainload.py: Fix 8b/16b copy confusion Signed-off-by: Hector Martin --- proxyclient/tools/chainload.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxyclient/tools/chainload.py b/proxyclient/tools/chainload.py index d7986282..ba19733a 100755 --- a/proxyclient/tools/chainload.py +++ b/proxyclient/tools/chainload.py @@ -91,12 +91,12 @@ print(f"Copying stub...") stub = asm.ARMAsm(f""" 1: - ldp x4, x5, [x1], #8 + ldp x4, x5, [x1], #16 stp x4, x5, [x2] dc cvau, x2 ic ivau, x2 - add x2, x2, #8 - sub x3, x3, #8 + add x2, x2, #16 + sub x3, x3, #16 cbnz x3, 1b ldr x1, ={entry}