|
|
147e83 |
# commit 02f04a6c7fea2b474b026bbce721d8c658d71fda
|
|
|
147e83 |
# Author: Alan Modra <amodra@gmail.com>
|
|
|
147e83 |
# Date: Sat Aug 17 18:36:11 2013 +0930
|
|
|
147e83 |
#
|
|
|
147e83 |
# PowerPC LE _dl_hwcap access
|
|
|
147e83 |
# http://sourceware.org/ml/libc-alpha/2013-08/msg00091.html
|
|
|
147e83 |
#
|
|
|
147e83 |
# More LE support, correcting word accesses to _dl_hwcap.
|
|
|
147e83 |
#
|
|
|
147e83 |
# * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
|
|
|
147e83 |
# HIWORD/LOWORD.
|
|
|
147e83 |
# * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
|
|
|
147e83 |
# * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
|
|
|
147e83 |
#
|
|
|
147e83 |
diff -urN glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
|
|
|
147e83 |
--- glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S 2014-05-27 23:25:35.000000000 -0500
|
|
|
147e83 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S 2014-05-27 23:25:38.000000000 -0500
|
|
|
147e83 |
@@ -151,15 +151,15 @@
|
|
|
147e83 |
# ifdef SHARED
|
|
|
147e83 |
lwz r7,_rtld_global_ro@got(r7)
|
|
|
147e83 |
mtlr r8
|
|
|
147e83 |
- lwz r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+4(r7)
|
|
|
147e83 |
+ lwz r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+LOWORD(r7)
|
|
|
147e83 |
# else
|
|
|
147e83 |
lwz r7,_dl_hwcap@got(r7)
|
|
|
147e83 |
mtlr r8
|
|
|
147e83 |
- lwz r7,4(r7)
|
|
|
147e83 |
+ lwz r7,LOWORD(r7)
|
|
|
147e83 |
# endif
|
|
|
147e83 |
# else
|
|
|
147e83 |
- lis r7,(_dl_hwcap+4)@ha
|
|
|
147e83 |
- lwz r7,(_dl_hwcap+4)@l(r7)
|
|
|
147e83 |
+ lis r7,(_dl_hwcap+LOWORD)@ha
|
|
|
147e83 |
+ lwz r7,(_dl_hwcap+LOWORD)@l(r7)
|
|
|
147e83 |
# endif
|
|
|
147e83 |
andis. r7,r7,(PPC_FEATURE_HAS_ALTIVEC >> 16)
|
|
|
147e83 |
|
|
|
147e83 |
diff -urN glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
|
|
|
147e83 |
--- glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S 2014-05-27 23:25:35.000000000 -0500
|
|
|
147e83 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S 2014-05-27 23:25:38.000000000 -0500
|
|
|
147e83 |
@@ -79,15 +79,15 @@
|
|
|
147e83 |
# ifdef SHARED
|
|
|
147e83 |
lwz r7,_rtld_global_ro@got(r7)
|
|
|
147e83 |
mtlr r8
|
|
|
147e83 |
- lwz r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+4(r7)
|
|
|
147e83 |
+ lwz r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+LOWORD(r7)
|
|
|
147e83 |
# else
|
|
|
147e83 |
lwz r7,_dl_hwcap@got(r7)
|
|
|
147e83 |
mtlr r8
|
|
|
147e83 |
- lwz r7,4(r7)
|
|
|
147e83 |
+ lwz r7,LOWORD(r7)
|
|
|
147e83 |
# endif
|
|
|
147e83 |
#else
|
|
|
147e83 |
- lis r7,(_dl_hwcap+4)@ha
|
|
|
147e83 |
- lwz r7,(_dl_hwcap+4)@l(r7)
|
|
|
147e83 |
+ lis r7,(_dl_hwcap+LOWORD)@ha
|
|
|
147e83 |
+ lwz r7,(_dl_hwcap+LOWORD)@l(r7)
|
|
|
147e83 |
#endif
|
|
|
147e83 |
|
|
|
147e83 |
#ifdef __CONTEXT_ENABLE_FPRS
|
|
|
147e83 |
diff -urN glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
|
|
|
147e83 |
--- glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S 2014-05-27 23:25:35.000000000 -0500
|
|
|
147e83 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S 2014-05-27 23:25:38.000000000 -0500
|
|
|
147e83 |
@@ -152,15 +152,15 @@
|
|
|
147e83 |
# ifdef SHARED
|
|
|
147e83 |
lwz r7,_rtld_global_ro@got(r7)
|
|
|
147e83 |
mtlr r8
|
|
|
147e83 |
- lwz r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+4(r7)
|
|
|
147e83 |
+ lwz r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+LOWORD(r7)
|
|
|
147e83 |
# else
|
|
|
147e83 |
lwz r7,_dl_hwcap@got(r7)
|
|
|
147e83 |
mtlr r8
|
|
|
147e83 |
- lwz r7,4(r7)
|
|
|
147e83 |
+ lwz r7,LOWORD(r7)
|
|
|
147e83 |
# endif
|
|
|
147e83 |
# else
|
|
|
147e83 |
- lis r7,(_dl_hwcap+4)@ha
|
|
|
147e83 |
- lwz r7,(_dl_hwcap+4)@l(r7)
|
|
|
147e83 |
+ lis r7,(_dl_hwcap+LOWORD)@ha
|
|
|
147e83 |
+ lwz r7,(_dl_hwcap+LOWORD)@l(r7)
|
|
|
147e83 |
# endif
|
|
|
147e83 |
|
|
|
147e83 |
# ifdef __CONTEXT_ENABLE_VRS
|
|
|
147e83 |
@@ -308,14 +308,14 @@
|
|
|
147e83 |
mtlr r8
|
|
|
147e83 |
# ifdef SHARED
|
|
|
147e83 |
lwz r7,_rtld_global_ro@got(r7)
|
|
|
147e83 |
- lwz r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+4(r7)
|
|
|
147e83 |
+ lwz r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+LOWORD(r7)
|
|
|
147e83 |
# else
|
|
|
147e83 |
lwz r7,_dl_hwcap@got(r7)
|
|
|
147e83 |
- lwz r7,4(r7)
|
|
|
147e83 |
+ lwz r7,LOWORD(r7)
|
|
|
147e83 |
# endif
|
|
|
147e83 |
# else
|
|
|
147e83 |
- lis r7,(_dl_hwcap+4)@ha
|
|
|
147e83 |
- lwz r7,(_dl_hwcap+4)@l(r7)
|
|
|
147e83 |
+ lis r7,(_dl_hwcap+LOWORD)@ha
|
|
|
147e83 |
+ lwz r7,(_dl_hwcap+LOWORD)@l(r7)
|
|
|
147e83 |
# endif
|
|
|
147e83 |
andis. r7,r7,(PPC_FEATURE_HAS_ALTIVEC >> 16)
|
|
|
147e83 |
la r10,(_UC_VREGS)(r31)
|