From: Derrick Brashear Date: Tue, 17 Jul 2007 04:12:36 +0000 (+0000) Subject: DEVEL15-sparc32-no-getcontext-20070716 X-Git-Tag: openafs-devel-1_5_22~44 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=fe791d7a1ff590c7f4228f7e78dcdb0de1b0418d;p=packages%2Fo%2Fopenafs.git DEVEL15-sparc32-no-getcontext-20070716 implement ptr_mangle for sparc32 (cherry picked from commit f489b05a1c055f3aa8eccdbcd96f8bbcfbf466e7) --- diff --git a/src/lwp/process.c b/src/lwp/process.c index d93ef8f3d..b5537f837 100644 --- a/src/lwp/process.c +++ b/src/lwp/process.c @@ -151,7 +151,11 @@ static jmp_buf_type *jmpBuffer; #ifdef __GLIBC__ #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3) -#ifdef AFS_SPARC64_LINUX24_ENV +#if defined(AFS_SPARC64_LINUX24_ENV) || defined(AFS_SPARC_LINUX24_ENV) +/* technically we should use POINTER_GUARD + * ( == offsetof (tcbhead_t, pointer_guard) ) + * instead of 0x18 + */ #undef ptr_mangle static int ptr_mangle(int p) {