mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
add inline function to check, if xsave is enabled
This commit is contained in:
parent
6bb57b5e49
commit
0b958abf95
1 changed files with 4 additions and 0 deletions
|
@ -270,6 +270,10 @@ inline static uint32_t has_xsave(void) {
|
|||
return (cpu_info.feature2 & CPU_FEATURE_XSAVE);
|
||||
}
|
||||
|
||||
inline static uint32_t has_osxsave(void) {
|
||||
return (cpu_info.feature2 & CPU_FEATURE_OSXSAVE);
|
||||
}
|
||||
|
||||
inline static uint32_t has_avx(void) {
|
||||
return (cpu_info.feature2 & CPU_FEATURE_AVX);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue