Need to patch glibc for NEON hwcaps: PROCINFO_CLASS const char _dl_arm_cap_flags[10][10] #endif #ifndef PROCINFO_DECL = { "swp", "half", "thumb", "26bit", "fast-mult", "fpa", "vfp", "edsp", "java", "iwmmxt", } #endif
in ports/sysdeps/unix/sysv/linux/arm/dl-procinfo.c (add "thumbee" and "neon" I think, checking with people who run the new kernel)
and:
/* The following must match the kernel's <asm/procinfo.h>. */ #define HWCAP_ARM_SWP 1 #define HWCAP_ARM_HALF 2 #define HWCAP_ARM_THUMB 4 #define HWCAP_ARM_26BIT 8 #define HWCAP_ARM_FAST_MULT 16 #define HWCAP_ARM_FPA 32 #define HWCAP_ARM_VFP 64 #define HWCAP_ARM_EDSP 128 #define HWCAP_ARM_JAVA 256 #define HWCAP_ARM_IWMMXT 512
in ports/sysdeps/unix/sysv/linux/arm/sysdep.h (needs new defines)
Then patch HWCAP_IMPORTANT as in http://bazaar.launchpad.net/~ubuntu-toolchain/ubuntu-toolchain/glibc-2.5-package/revision/201
Need to patch glibc for NEON hwcaps: cap_flags[ 10][10]
PROCINFO_CLASS const char _dl_arm_
#endif
#ifndef PROCINFO_DECL
= {
"swp", "half", "thumb", "26bit", "fast-mult", "fpa", "vfp", "edsp",
"java", "iwmmxt",
}
#endif
in ports/sysdeps/ unix/sysv/ linux/arm/ dl-procinfo. c
(add "thumbee" and "neon" I think, checking with people who run the new kernel)
and:
/* The following must match the kernel's <asm/procinfo.h>. */
#define HWCAP_ARM_SWP 1
#define HWCAP_ARM_HALF 2
#define HWCAP_ARM_THUMB 4
#define HWCAP_ARM_26BIT 8
#define HWCAP_ARM_FAST_MULT 16
#define HWCAP_ARM_FPA 32
#define HWCAP_ARM_VFP 64
#define HWCAP_ARM_EDSP 128
#define HWCAP_ARM_JAVA 256
#define HWCAP_ARM_IWMMXT 512
in ports/sysdeps/ unix/sysv/ linux/arm/ sysdep. h
(needs new defines)
Then patch HWCAP_IMPORTANT as in http:// bazaar. launchpad. net/~ubuntu- toolchain/ ubuntu- toolchain/ glibc-2. 5-package/ revision/ 201