x86/fpu: Move xgetbv()/xsetbv() into a separate header
authorJoerg Roedel <jroedel@suse.de>
Mon, 7 Sep 2020 13:15:27 +0000 (15:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 7 Sep 2020 17:54:20 +0000 (19:54 +0200)
commit1b4fb8545f2b00f2844c4b7619d64d98440a477c
tree19f3c07e6d7520703f562c408b205b03593641a3
parent25189d08e5168c098c307a0eaae5b30c13a331ef
x86/fpu: Move xgetbv()/xsetbv() into a separate header

The xgetbv() function is needed in the pre-decompression boot code,
but asm/fpu/internal.h can't be included there directly. Doing so
opens the door to include-hell due to various include-magic in
boot/compressed/misc.h.

Avoid that by moving xgetbv()/xsetbv() to a separate header file and
include it instead.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-27-joro@8bytes.org
arch/x86/include/asm/fpu/internal.h
arch/x86/include/asm/fpu/xcr.h [new file with mode: 0644]