Skip to content

Commit

Permalink
i#6417: Handle AMD 32-bit syscall instruction.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankyluk committed Nov 17, 2023
1 parent 5990405 commit ae9bfc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/synch.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,11 @@ is_at_do_syscall(dcontext_t *dcontext, app_pc pc, byte *esp)
#else
return is_after_or_restarted_do_syscall(dcontext, pc, false /*!vsys*/);
#endif
} else if (get_syscall_method() == SYSCALL_METHOD_SYSENTER) {
} else if (get_syscall_method() ==
SYSCALL_METHOD_SYSENTER IF_X86_32(
||
(get_syscall_method() == SYSCALL_METHOD_SYSCALL &&
cpu_info.vendor == VENDOR_AMD))) {
#ifdef WINDOWS
if (pc == vsyscall_after_syscall) {
if (DYNAMO_OPTION(sygate_sysenter))
Expand Down

0 comments on commit ae9bfc9

Please sign in to comment.