summaryrefslogtreecommitdiffstats
path: root/runtime/unwind/x86_64.h
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-07-12 19:10:22 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-07-12 19:10:22 -0400
commitf1743f00e6058d2dee44510f3ef165c549a6291e (patch)
tree00286e777fefe26691e14be0e77536f0c9737214 /runtime/unwind/x86_64.h
parentad125a746537f806424fbad8d36eff332dffc25a (diff)
downloadsystemtap-steved-f1743f00e6058d2dee44510f3ef165c549a6291e.tar.gz
systemtap-steved-f1743f00e6058d2dee44510f3ef165c549a6291e.tar.xz
systemtap-steved-f1743f00e6058d2dee44510f3ef165c549a6291e.zip
PR6738: restore support for rhel4-era (2.6.9) kernels
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