From: Russ Allbery Date: Mon, 30 Jun 2008 21:50:23 +0000 (+0000) Subject: linux-ucontext-fixes-20080630 X-Git-Tag: openafs-devel-1_5_61~1011 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9f94f89a7a894651f18947ec7ac20959f9326478;p=packages%2Fo%2Fopenafs.git linux-ucontext-fixes-20080630 LICENSE BSD Use undef in the arch-specific param file to override UCONTEXT rather than adding a conditional in a generic file, making arm work the same as 32-bit SPARC. Disable UCONTEXT on parisc as well; glibc doesn't provide the ucontext functions on that architecture. --- diff --git a/src/config/param.arm_linux24.h b/src/config/param.arm_linux24.h index 03146cda1..d7025a598 100644 --- a/src/config/param.arm_linux24.h +++ b/src/config/param.arm_linux24.h @@ -30,4 +30,7 @@ #define AFSLITTLE_ENDIAN 1 #define AFS_SYSCALL 137 +/* glibc doesn't implement getcontext/savecontext for arm. */ +#undef USE_UCONTEXT + #endif /* AFS_PARAM_H */ diff --git a/src/config/param.arm_linux26.h b/src/config/param.arm_linux26.h index 1a0359690..1339fd0fc 100644 --- a/src/config/param.arm_linux26.h +++ b/src/config/param.arm_linux26.h @@ -33,4 +33,8 @@ #ifndef __NR_afs_syscall #define __NR_afs_syscall 137 #endif + +/* glibc doesn't implement getcontext/savecontext for arm. */ +#undef USE_UCONTEXT + #endif /* AFS_PARAM_H */ diff --git a/src/config/param.linux26.h b/src/config/param.linux26.h index 3c0edd2b3..e0d7b0c42 100644 --- a/src/config/param.linux26.h +++ b/src/config/param.linux26.h @@ -92,13 +92,11 @@ #endif /* !defined(UKERNEL) */ -#ifndef AFS_ARM_LINUX24_ENV #ifdef __GLIBC__ #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3) #define USE_UCONTEXT #endif #endif -#endif #ifndef HAVE_IGET #define AFS_CACHE_VNODE_PATH 1 diff --git a/src/config/param.parisc_linux24.h b/src/config/param.parisc_linux24.h index 0be0bc088..a6bebdf28 100644 --- a/src/config/param.parisc_linux24.h +++ b/src/config/param.parisc_linux24.h @@ -30,4 +30,7 @@ #define AFSBIG_ENDIAN 1 #define AFS_SYSCALL 137 +/* glibc doesn't implement getcontext/savecontext for parisc. */ +#undef USE_UCONTEXT + #endif /* AFS_PARAM_H */