diff options
author | comex | 2015-02-23 00:41:29 -0500 |
---|---|---|
committer | comex | 2015-02-23 00:54:13 -0500 |
commit | b63f1dff9dc736f7fa66f04976436f1f3fe2ac5d (patch) | |
tree | db70eb338a0107fdc70992ea2522fd03f2ecf32e /lib/transform-dis.h | |
parent | fix some i386 stuff (diff) | |
download | substitute-b63f1dff9dc736f7fa66f04976436f1f3fe2ac5d.tar.gz |
Ban calls within transform regions in threadsafe mode.
Diffstat (limited to 'lib/transform-dis.h')
-rw-r--r-- | lib/transform-dis.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/transform-dis.h b/lib/transform-dis.h index 4e853b0..e8969a8 100644 --- a/lib/transform-dis.h +++ b/lib/transform-dis.h @@ -3,10 +3,13 @@ #include <stdbool.h> #include stringify(TARGET_DIR/arch-dis.h) +#define TRANSFORM_DIS_BAN_CALLS 1 + int transform_dis_main(const void *restrict code_ptr, void **restrict rewritten_ptr_ptr, uint_tptr pc_patch_start, uint_tptr *pc_patch_end_p, uint_tptr pc_trampoline, struct arch_dis_ctx *arch_ctx_p, - int *offset_by_pcdiff); + int *offset_by_pcdiff, + int options); |