From 30fa13cdf6b8225d590642226e1255d3f574ef8a Mon Sep 17 00:00:00 2001 From: David Smith Date: Mon, 23 Jun 2008 14:42:03 -0500 Subject: Made RHEL5 changes. 2008-06-23 David Smith * task_finder_vma.c (__stp_tf_vma_hash): Improved determination of whether this is a 64-bit platform. * syscall.h: Handles kernels with older style register definitions. --- runtime/task_finder_vma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/task_finder_vma.c') diff --git a/runtime/task_finder_vma.c b/runtime/task_finder_vma.c index c849f187..76b5c059 100644 --- a/runtime/task_finder_vma.c +++ b/runtime/task_finder_vma.c @@ -24,7 +24,7 @@ static struct hlist_head __stp_tf_vma_table[__STP_TF_TABLE_SIZE]; static inline u32 __stp_tf_vma_hash(struct task_struct *tsk, unsigned long addr) { -#if (__SIZEOF_LONG__ == 8) +#ifdef CONFIG_64BIT return (jhash_3words(tsk->pid, (u32)addr, (u32)(addr >> 32), 0) & (__STP_TF_TABLE_SIZE - 1)); #else -- cgit