]> git.ipfire.org Git - thirdparty/glibc.git/commit - sysdeps/sparc/dl-procinfo.h
sparc: support the ADP hw capability
authorJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 13 Dec 2017 20:01:21 +0000 (18:01 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 14 Dec 2017 10:47:07 +0000 (08:47 -0200)
commitbfb7bf227331e682e35ccbc630ecd66127bea538
tree5690e4e5c887c910dc69d102286b48699c6bf475
parent2bce01ebbaf8db52ba4a5635eb5744f989cdbf69
sparc: support the ADP hw capability

This patch adds support for the ADP (also known as adi) hardware
capability, as reported by the kernel sparc port when running on M7
machines.

Tested in both sparcv9-*-* and sparc64-*-* targets.

* sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
* sysdeps/sparc/dl-procinfo.c: Added "adp" to the
_dl_sparc_cap_flags array.
* sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
ChangeLog
sysdeps/sparc/bits/hwcap.h
sysdeps/sparc/dl-procinfo.c
sysdeps/sparc/dl-procinfo.h