Home GnuPG

Parse /proc/cpuinfo for ARM HW features
a76148ac8fedUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Parse /proc/cpuinfo for ARM HW features

* src/hwf-arm.c [__linux__] (HAS_PROC_CPUINFO)
(detect_arm_proc_cpuinfo): New.
(_gcry_hwf_detect_arm) [HAS_PROC_CPUINFO]: Check '/proc/cpuinfo' for
HW features.

Some Linux platforms (read: Android) block read access to '/proc/self/auxv',
which prevents NEON HW detection. Patch adds alternative check which parses
'/proc/cpuinfo' which should be accessable by Android applications.

(cherry picked from commit a05be441d8cd89b90d8d58e3a343a436dae377d0)

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Dec 30 2013, 2:10 PM
wernerCommitted on Jan 31 2014, 8:50 AM
Parents
rC3216da3ddbc3: cipher: Take care of ENABLE_NEON_SUPPORT.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCa76148ac8fed: Parse /proc/cpuinfo for ARM HW features (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Jan 31 2014, 8:50 AM