mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
powerpc: Add HWCAP3/HWCAP4 data to TCB for Power Architecture.
This patch adds a new feature for powerpc. In order to get faster access to the HWCAP3/HWCAP4 masks, similar to HWCAP/HWCAP2 (i.e. for implementing __builtin_cpu_supports() in GCC) without the overhead of reading them from the auxiliary vector, we now reserve space for them in the TCB. This is an ABI change for GLIBC 2.39. Suggested-by: Peter Bergner <bergner@linux.ibm.com> Reviewed-by: Peter Bergner <bergner@linux.ibm.com>
This commit is contained in:
committed by
Peter Bergner
parent
3d53d18fc7
commit
3ab9b88e2a
@@ -47,6 +47,8 @@ void _dl_parse_auxv (ElfW(auxv_t) *av, dl_parse_auxv_t auxv_values)
|
||||
GLRO(dl_platform) = (void *) auxv_values[AT_PLATFORM];
|
||||
GLRO(dl_hwcap) = auxv_values[AT_HWCAP];
|
||||
GLRO(dl_hwcap2) = auxv_values[AT_HWCAP2];
|
||||
GLRO(dl_hwcap3) = auxv_values[AT_HWCAP3];
|
||||
GLRO(dl_hwcap4) = auxv_values[AT_HWCAP4];
|
||||
GLRO(dl_clktck) = auxv_values[AT_CLKTCK];
|
||||
GLRO(dl_fpu_control) = auxv_values[AT_FPUCW];
|
||||
_dl_random = (void *) auxv_values[AT_RANDOM];
|
||||
|
||||
Reference in New Issue
Block a user