From f1743f00e6058d2dee44510f3ef165c549a6291e Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Sat, 12 Jul 2008 19:10:22 -0400 Subject: PR6738: restore support for rhel4-era (2.6.9) kernels --- runtime/unwind/x86_64.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/unwind/x86_64.h') 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 -- cgit