From 9f94f89a7a894651f18947ec7ac20959f9326478 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 30 Jun 2008 21:50:23 +0000 Subject: [PATCH] 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. --- src/config/param.arm_linux24.h | 3 +++ src/config/param.arm_linux26.h | 4 ++++ src/config/param.linux26.h | 2 -- src/config/param.parisc_linux24.h | 3 +++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/config/param.arm_linux24.h b/src/config/param.arm_linux24.h index 03146cd..d7025a5 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 1a03596..1339fd0 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 3c0edd2..e0d7b0c 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 0be0bc0..a6bebdf 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 */ -- 1.9.4