summaryrefslogtreecommitdiffstats
path: root/runtime/unwind/x86_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/unwind/x86_64.h')
-rw-r--r--runtime/unwind/x86_64.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/unwind/x86_64.h b/runtime/unwind/x86_64.h
index 5eb3a58f..3c70f206 100644
--- a/runtime/unwind/x86_64.h
+++ b/runtime/unwind/x86_64.h
@@ -137,11 +137,15 @@ static inline int arch_unw_user_mode(const struct unwind_frame_info *info)
#else
#ifdef STAPCONF_X86_UNIREGS
return (long)info->regs.ip >= 0
+#ifdef VSYSCALL_START
|| (info->regs.ip >= VSYSCALL_START && info->regs.ip < VSYSCALL_END)
+#endif
|| (long)info->regs.sp >= 0;
#else
return (long)info->regs.rip >= 0
+#ifdef VSYSCALL_START
|| (info->regs.rip >= VSYSCALL_START && info->regs.rip < VSYSCALL_END)
+#endif
|| (long)info->regs.rsp >= 0;
#endif
#endif