Remove __ASSUME_SWAPCONTEXT_SYSCALL.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 20 Aug 2012 14:39:53 +0000 (14:39 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 20 Aug 2012 14:39:53 +0000 (14:39 +0000)
ChangeLog
sysdeps/unix/sysv/linux/kernel-features.h
sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S

index df7f090cf5890c3b5203b447328bde0e62e54901..111503e311d81100e24eb2f4e3e5ef14d5d63c80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/unix/sysv/linux/kernel-features.h
+       (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
+       [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
+       [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
+       [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
+       [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
+       [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
+       [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
+
        * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
        __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
 
index 13adaad2c1d785ea7524e26c28d26b283f9d4bf5..2e459150cf19376289b72f31376841287b89f8c7 100644 (file)
 # define __ASSUME_FADVISE64_64_SYSCALL 1
 #endif
 
-/* Starting with 2.6.0 PowerPC adds signal/swapcontext support for Vector
-   SIMD (AKA Altivec, VMX) instructions and register state.  This changes
-   the overall size of the sigcontext and adds the swapcontext syscall.  */
-#ifdef __powerpc__
-# define __ASSUME_SWAPCONTEXT_SYSCALL  1
-#endif
-
 /* On sparc64 stat64/lstat64/fstat64 syscalls were introduced in 2.6.12.  */
 #if defined __sparc__ && defined __arch64__
 # define __ASSUME_STAT64_SYSCALL       1
index 2d36df458d26577370e3255b4a119fac062067d7..27f2348da07bbbfeff339cc7c292fcc452c2bad3 100644 (file)
@@ -32,7 +32,6 @@
 /* Size of ucontext in GLIBC_2.3.4 and later.  */
 #define _UC_SIZE_2_3_4 1184
 
-#ifdef __ASSUME_SWAPCONTEXT_SYSCALL
        .section ".text";
 ENTRY (__getcontext)
        li      r4,0
@@ -45,9 +44,6 @@ ENTRY (__getcontext)
 1:
        b       __syscall_error@local
 END(__getcontext)
-#else
-# include "getcontext-common.S"
-#endif
 
 versioned_symbol (libc, __getcontext, getcontext, GLIBC_2_3_4)
 
index fa7d05f70b14b21fac6101e04dd4964f09ed238e..b96b04040879192e526f565ae02e0baee30add65 100644 (file)
@@ -1,5 +1,5 @@
 /* Jump to a new context.
-   Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2002-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -32,7 +32,6 @@
 /* Size of ucontext in GLIBC_2.3.4 and later.  */
 #define _UC_SIZE_2_3_4 1184
 
-#ifdef __ASSUME_SWAPCONTEXT_SYSCALL
        .section ".text";
 ENTRY (__setcontext)
        mr      r4,r3
@@ -46,9 +45,6 @@ ENTRY (__setcontext)
 1:
        b       __syscall_error@local
 END(__setcontext)
-#else
-# include "setcontext-common.S"
-#endif
 
 versioned_symbol (libc, __setcontext, setcontext, GLIBC_2_3_4)
 
index 0189af8e254d7b04c34df3dac3ec725ad5a9860d..556c8020de4b28cf380942855d7fc12adacb07bb 100644 (file)
@@ -1,5 +1,5 @@
 /* Save current context and jump to a new context.
-   Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2002-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -32,7 +32,6 @@
 /* Size of ucontext in GLIBC_2.3.4 and later.  */
 #define _UC_SIZE_2_3_4 1184
 
-#ifdef __ASSUME_SWAPCONTEXT_SYSCALL
        .section ".text";
 ENTRY (__swapcontext)
        li      r5,_UC_SIZE_2_3_4;
@@ -44,9 +43,6 @@ ENTRY (__swapcontext)
 1:
        b       __syscall_error@local
 END(__swapcontext)
-#else
-# include "swapcontext-common.S"
-#endif
 
 versioned_symbol (libc, __swapcontext, swapcontext, GLIBC_2_3_4)