]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-sparc32-no-getcontext-20070716
authorDerrick Brashear <shadow@dementia.org>
Tue, 17 Jul 2007 04:13:59 +0000 (04:13 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 17 Jul 2007 04:13:59 +0000 (04:13 +0000)
implement ptr_mangle for sparc32

(cherry picked from commit f489b05a1c055f3aa8eccdbcd96f8bbcfbf466e7)

src/lwp/process.c

index d93ef8f3d0ce351204b5ee1f58adae6ae78ab1d3..b5537f83734e519bc6ea28bfaa7dd4124d5c9859 100644 (file)
@@ -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)
 {