diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2021-10-15 03:16:41 +0200 |
|---|---|---|
| committer | Borislav Petkov <bp@suse.de> | 2021-10-20 15:27:29 +0200 |
| commit | 079ec41b22b952cdf3126527d735e373c9125f6d (patch) | |
| tree | 4b05e6bf06ae8062b7f879db9e0b2d4574f2fca5 /arch/x86/kernel/fpu/internal.h | |
| parent | b56d2795b29792c465cc8ef036abad5127a003fb (diff) | |
| download | linux-079ec41b22b952cdf3126527d735e373c9125f6d.tar.gz linux-079ec41b22b952cdf3126527d735e373c9125f6d.tar.bz2 linux-079ec41b22b952cdf3126527d735e373c9125f6d.zip | |
x86/fpu: Provide a proper function for ex_handler_fprestore()
To make upcoming changes for support of dynamically enabled features
simpler, provide a proper function for the exception handler which removes
exposure of FPU internals.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011540.053515012@linutronix.de
Diffstat (limited to 'arch/x86/kernel/fpu/internal.h')
| -rw-r--r-- | arch/x86/kernel/fpu/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/fpu/internal.h b/arch/x86/kernel/fpu/internal.h index bd7f813242dd..479f2db6e160 100644 --- a/arch/x86/kernel/fpu/internal.h +++ b/arch/x86/kernel/fpu/internal.h @@ -2,6 +2,8 @@ #ifndef __X86_KERNEL_FPU_INTERNAL_H #define __X86_KERNEL_FPU_INTERNAL_H +extern union fpregs_state init_fpstate; + /* CPU feature check wrappers */ static __always_inline __pure bool use_xsave(void) { |
