diff options
author | comex | 2015-01-24 22:23:27 -0500 |
---|---|---|
committer | comex | 2015-01-24 22:23:27 -0500 |
commit | bd22f1a62adc6a5fc0645484039ba099a3a72e04 (patch) | |
tree | 200acf4e5ebed0862072d45ae4cc1631d6d8ed33 /lib/arm/jump-patch.h | |
parent | ... (diff) | |
download | substitute-bd22f1a62adc6a5fc0645484039ba099a3a72e04.tar.gz |
it compiles...
Diffstat (limited to 'lib/arm/jump-patch.h')
-rw-r--r-- | lib/arm/jump-patch.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/arm/jump-patch.h b/lib/arm/jump-patch.h index b19e90f..238d56e 100644 --- a/lib/arm/jump-patch.h +++ b/lib/arm/jump-patch.h @@ -3,16 +3,19 @@ #define MAX_JUMP_PATCH_SIZE 8 #define MAX_REWRITTEN_SIZE (12 * 4) /* actually should be less */ -static inline int jump_patch_size(uintptr_t pc, uintptr_t dpc, - struct arch_dis_ctx arch) { +static inline int jump_patch_size(UNUSED uintptr_t pc, + UNUSED uintptr_t dpc, + UNUSED struct arch_dis_ctx arch, + UNUSED bool force) { return 8; } -static inline void make_jump_patch(void **codep, uintptr_t pc, uintptr_t dpc, +static inline void make_jump_patch(void **codep, UNUSED uintptr_t pc, + uintptr_t dpc, struct arch_dis_ctx arch) { if (arch.pc_low_bit) op32(codep, 0xf000f8df); else op32(codep, 0xe51ff004); - op32(codep, (uint32_t) pc); + op32(codep, (uint32_t) dpc); } |