# HG changeset patch # User Tassilo Philipp # Date 1633591914 -7200 # Node ID beb15f1065e69741a4f7d6f186e0d5f5c972c992 # Parent 49bc10c9946266eab75c6df3f36341876cf9056e - comments cleanup diff -r 49bc10c99462 -r beb15f1065e6 dyncallback/dyncall_thunk_arm32.c --- a/dyncallback/dyncall_thunk_arm32.c Tue Oct 05 22:06:37 2021 +0200 +++ b/dyncallback/dyncall_thunk_arm32.c Thu Oct 07 09:31:54 2021 +0200 @@ -6,7 +6,7 @@ Description: Thunk - Implementation for ARM32 (ARM and THUMB mode) License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2021 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -33,15 +33,15 @@ /* # ARM32 (ARM mode) thunk code: .code 32 - sub %r12, %r15, #8 - ldr %r15, [%r15, #-4] + sub r12, r15, #8 + ldr r15, [r15, #-4] */ /* This code stores a ptr to DCCallback in r12 (equals ptr to thunk, */ /* which is PC (r15) minus 8, as PC points to current instruction+8. */ /* Then it loads the callback 'entry' into PC. The -4 is needed, also bc */ /* of the PC pointing ahead. */ - p->code[0] = 0xe24fc008UL; /* sub %r12, %r15, #8 */ - p->code[1] = 0xe51ff004UL; /* ldr %r15, [%r15, #-4] */ + p->code[0] = 0xe24fc008UL; /* sub r12, r15, #8 */ + p->code[1] = 0xe51ff004UL; /* ldr r15, [r15, #-4] */ p->entry = entry; }