[OpenAFS-devel] IA64 status
chas williams
chas@cmf.nrl.navy.mil
Tue, 23 Apr 2002 08:05:17 -0400
In message <Pine.LNX.3.96L.1020422225245.17845F-100000@scully.trafford.dementia
>It's not safe to be included as-is, because it undoes the SYSCALL2POINTER
>stuff. I'm looking at it now though
only on the ia64 actually. i was getting warnings about casts and
comparisons so i changed fptr so its more like the rest of the linux
platforms, and then ia64 doesnt need a special syscall2pointer:
Index: src/afs/LINUX/osi_module.c
===================================================================
RCS file: /cvs/openafs/src/afs/LINUX/osi_module.c,v
retrieving revision 1.19
diff -u -d -b -w -r1.19 osi_module.c
--- src/afs/LINUX/osi_module.c 2002/04/23 03:03:35 1.19
+++ src/afs/LINUX/osi_module.c 2002/04/23 11:59:33
@@ -139,7 +139,7 @@
struct fptr
{
- unsigned long ip;
+ void *ip;
unsigned long gp;
};
@@ -154,11 +154,7 @@
#define SYSCALL2POINTER (void *)(long)
#else
#define POINTER2SYSCALL (void *)
-#ifdef AFS_IA64_LINUX20_ENV
-#define SYSCALL2POINTER (long)
-#else
#define SYSCALL2POINTER (void *)
-#endif
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)