mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
x86-64/cet: Make CET feature check specific to Linux/x86
CET feature bits in TCB, which are Linux specific, are used to check if CET features are active. Move CET feature check to Linux/x86 directory. Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
This commit is contained in:
@ -19,14 +19,6 @@
|
||||
#include <tcb-offsets.h>
|
||||
#include <ldsodefs.h>
|
||||
|
||||
#ifdef __x86_64__
|
||||
# ifdef __LP64__
|
||||
_Static_assert (FEATURE_1_OFFSET == 72, "FEATURE_1_OFFSET != 72");
|
||||
# else
|
||||
_Static_assert (FEATURE_1_OFFSET == 40, "FEATURE_1_OFFSET != 40");
|
||||
# endif
|
||||
#endif
|
||||
|
||||
const struct cpuid_feature *
|
||||
__x86_get_cpuid_feature_leaf (unsigned int leaf)
|
||||
{
|
||||
|
Reference in New Issue
Block a user