diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-11-28 01:31:15 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-11-28 01:52:55 +0100 |
commit | 4a8995ba22e0862eb8ece1d721870326669719ce (patch) | |
tree | ed28e60d134479b4eb0c78a68f8404ddcd952568 /linux/src/net/core/dev.c | |
parent | 0b1f1658732cd0e38ecb84a98b3bdf7a97a3b122 (diff) | |
download | gnumach-4a8995ba22e0862eb8ece1d721870326669719ce.tar.gz gnumach-4a8995ba22e0862eb8ece1d721870326669719ce.tar.bz2 gnumach-4a8995ba22e0862eb8ece1d721870326669719ce.zip |
x86: Pave the way for xsave/xrstor support
* i386/i386/fpu.h (xgetbv, get_xcr0, xsetbv, set_xcr0): New inline
functions.
(xsave, xrstor): New macros.
* i386/i386/locore.S (cpu_features): Extend to two words.
(cpu_features_edx, cpu_features_ecx): New labels.
(discover_x86_cpu_type): Also save ecx cpuid(1) report.
* x86_64/locore.S: Likewise.
* i386/i386/locore.h (cpu_features): Extend to two words.
(CPU_FEATURE_XSAVE): New macro.
* i386/i386/proc_reg.h (CR4_OSXSAVE): New macro.
Diffstat (limited to 'linux/src/net/core/dev.c')
0 files changed, 0 insertions, 0 deletions