summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tapset/ChangeLog5
-rw-r--r--tapset/syscalls.stp2
2 files changed, 6 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index f617b331..94071f07 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-25 Will Cohen <wcohen@redhat.com>
+
+ PR5554
+ * syscalls.stp (__is_user_regs): Modify to work with older kernels.
+
2008-01-23 Masami Hiramatsu <mhiramat@redhat.com>
PR5554
diff --git a/tapset/syscalls.stp b/tapset/syscalls.stp
index 3a239245..d394208f 100644
--- a/tapset/syscalls.stp
+++ b/tapset/syscalls.stp
@@ -857,7 +857,7 @@ function __is_user_regs:long (regs:long) %{ /* pure */
#else
int cs = kread(&regs->xcs);
#endif
- THIS->__retvalue = ((cs & SEGMENT_RPL_MASK) == USER_RPL);
+ THIS->__retvalue = (!!((cs & 3)));
#elif defined(__x86_64__)
unsigned long cs = kread(&regs->cs);
THIS->__retvalue = (!!((cs & 3)));