Kees Cook | dd78b97 | 2013-10-10 17:18:13 -0700 | [diff] [blame] | 1 | #ifdef CONFIG_RANDOMIZE_BASE |
2 | |||||
3 | #include "../cpuflags.c" | ||||
4 | |||||
5 | bool has_cpuflag(int flag) | ||||
6 | { | ||||
H. Peter Anvin | 6e6a493 | 2013-10-13 04:08:56 -0700 | [diff] [blame] | 7 | get_cpuflags(); |
Kees Cook | dd78b97 | 2013-10-10 17:18:13 -0700 | [diff] [blame] | 8 | |
9 | return test_bit(flag, cpu.flags); | ||||
10 | } | ||||
11 | |||||
12 | #endif |