aboutsummaryrefslogtreecommitdiff
path: root/lib/arm/jump-patch.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arm/jump-patch.h')
-rw-r--r--lib/arm/jump-patch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arm/jump-patch.h b/lib/arm/jump-patch.h
index 8ba4c3a..361e357 100644
--- a/lib/arm/jump-patch.h
+++ b/lib/arm/jump-patch.h
@@ -14,6 +14,6 @@ static inline int jump_patch_size(uint_tptr pc,
static inline void make_jump_patch(void **codep, uint_tptr pc,
uint_tptr dpc,
struct arch_dis_ctx arch) {
- struct assemble_ctx actx = {codep, pc, arch.pc_low_bit, 0xe};
+ struct assemble_ctx actx = {codep, *codep, pc, arch.pc_low_bit, 0xe};
LDR_PC(actx, dpc);
}