aboutsummaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2023-03-15 17:42:54 -0700
committerH.J. Lu <hjl.tools@gmail.com>2023-04-03 11:36:48 -0700
commit743113d42e6cad77477769a3de5542d33443ae76 (patch)
tree02f5ac20ff2715acfd54dd50fb670eb49ee43c94 /po
parent5d1ccdda7b0c625751661d50977f3dfbc73f8eae (diff)
downloadglibc-743113d42e6cad77477769a3de5542d33443ae76.zip
glibc-743113d42e6cad77477769a3de5542d33443ae76.tar.gz
glibc-743113d42e6cad77477769a3de5542d33443ae76.tar.bz2
x86: Set FSGSBASE to active if enabled by kernel
Linux kernel uses AT_HWCAP2 to indicate if FSGSBASE instructions are enabled. If the HWCAP2_FSGSBASE bit in AT_HWCAP2 is set, FSGSBASE instructions can be used in user space. Define dl_check_hwcap2 to set the FSGSBASE feature to active on Linux when the HWCAP2_FSGSBASE bit is set. Add a test to verify that FSGSBASE is active on current kernels. NB: This test will fail if the kernel doesn't set the HWCAP2_FSGSBASE bit in AT_HWCAP2 while fsgsbase shows up in /proc/cpuinfo. Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions