00db10
commit 7dcdfbcf6749cdc4c63e2613cbb3e2392d2fc2fb
00db10
Author: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
00db10
Date:   Fri Jun 23 09:10:32 2017 -0300
00db10
00db10
    powerpc: Update AT_HWCAP[2] bits
00db10
    
00db10
    Linux commit ID a4700a26107241cc7b9ac8528b2c6714ff99983d reserved 2 more
00db10
    bits for the instructions darn (Deliver a Random Number) and scv (System
00db10
    Call Vectored).
00db10
    
00db10
    Linux commit ID 6997e57d693b07289694239e52a10d2f02c3a46f reserved
00db10
    another bit for internal usage.
00db10
    
00db10
            * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_DARN and
00db10
            PPC_FEATURE2_SCV.
00db10
            * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add scv
00db10
            and darn.
00db10
00db10
diff --git a/sysdeps/powerpc/bits/hwcap.h b/sysdeps/powerpc/bits/hwcap.h
00db10
index c9daeed..dfc71c2 100644
00db10
--- a/sysdeps/powerpc/bits/hwcap.h
00db10
+++ b/sysdeps/powerpc/bits/hwcap.h
00db10
@@ -50,6 +50,7 @@
00db10
 #define PPC_FEATURE_ARCH_2_06	    0x00000100 /* ISA 2.06 */
00db10
 #define PPC_FEATURE_HAS_VSX	    0x00000080 /* P7 Vector Extension.  */
00db10
 #define PPC_FEATURE_PSERIES_PERFMON_COMPAT  0x00000040
00db10
+/* Reserved by the kernel.	    0x00000004  Do not use.  */
00db10
 #define PPC_FEATURE_TRUE_LE	    0x00000002
00db10
 #define PPC_FEATURE_PPC_LE	    0x00000001
00db10
 
00db10
@@ -69,3 +70,5 @@
00db10
 #define PPC_FEATURE2_ARCH_3_00	   0x00800000 /* ISA 3.0 */
00db10
 #define PPC_FEATURE2_HAS_IEEE128   0x00400000 /* VSX IEEE Binary Float
00db10
 						 128-bit */
00db10
+#define PPC_FEATURE2_DARN	   0x00200000 /* darn instruction.  */
00db10
+#define PPC_FEATURE2_SCV	   0x00100000 /* scv syscall.  */
00db10
diff --git a/sysdeps/powerpc/dl-procinfo.c b/sysdeps/powerpc/dl-procinfo.c
00db10
index cd7329b..4dac16d 100644
00db10
--- a/sysdeps/powerpc/dl-procinfo.c
00db10
+++ b/sysdeps/powerpc/dl-procinfo.c
00db10
@@ -62,7 +62,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[64][10]
00db10
     "", "", "", "",
00db10
     "", "", "", "",
00db10
     "", "", "", "",
00db10
-    "", "", "ieee128", "arch_3_00",
00db10
+    "scv", "darn", "ieee128", "arch_3_00",
00db10
     "htm-nosc", "vcrypto", "tar", "isel",
00db10
     "ebb", "dscr", "htm", "arch_2_07",
00db10
   }