xstate.h (14e77332e74603efab8347c89d3cda447c3b97c9) xstate.h (6a877d2450ace4f27c012519e5a1ae818f931983)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __X86_KERNEL_FPU_XSTATE_H
3#define __X86_KERNEL_FPU_XSTATE_H
4
5#include <asm/cpufeature.h>
6#include <asm/fpu/xstate.h>
7#include <asm/fpu/xcr.h>
8

--- 33 unchanged lines hidden (view full) ---

42};
43
44struct membuf;
45extern void __copy_xstate_to_uabi_buf(struct membuf to, struct fpstate *fpstate,
46 u32 pkru_val, enum xstate_copy_mode copy_mode);
47extern void copy_xstate_to_uabi_buf(struct membuf to, struct task_struct *tsk,
48 enum xstate_copy_mode mode);
49extern int copy_uabi_from_kernel_to_xstate(struct fpstate *fpstate, const void *kbuf);
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __X86_KERNEL_FPU_XSTATE_H
3#define __X86_KERNEL_FPU_XSTATE_H
4
5#include <asm/cpufeature.h>
6#include <asm/fpu/xstate.h>
7#include <asm/fpu/xcr.h>
8

--- 33 unchanged lines hidden (view full) ---

42};
43
44struct membuf;
45extern void __copy_xstate_to_uabi_buf(struct membuf to, struct fpstate *fpstate,
46 u32 pkru_val, enum xstate_copy_mode copy_mode);
47extern void copy_xstate_to_uabi_buf(struct membuf to, struct task_struct *tsk,
48 enum xstate_copy_mode mode);
49extern int copy_uabi_from_kernel_to_xstate(struct fpstate *fpstate, const void *kbuf);
50extern int copy_sigframe_from_user_to_xstate(struct fpstate *fpstate, const void __user *ubuf);
50extern int copy_sigframe_from_user_to_xstate(struct task_struct *tsk, const void __user *ubuf);
51
52
53extern void fpu__init_cpu_xstate(void);
54extern void fpu__init_system_xstate(unsigned int legacy_size);
55
56extern void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr);
57
58static inline u64 xfeatures_mask_supervisor(void)

--- 268 unchanged lines hidden ---
51
52
53extern void fpu__init_cpu_xstate(void);
54extern void fpu__init_system_xstate(unsigned int legacy_size);
55
56extern void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr);
57
58static inline u64 xfeatures_mask_supervisor(void)

--- 268 unchanged lines hidden ---