Home
last modified time | relevance | path

Searched refs:xstate_size (Results 1 – 9 of 9) sorted by relevance

/linux/arch/sh/kernel/
H A Dprocess.c13 unsigned int xstate_size; variable
34 memcpy(dst->thread.xstate, src->thread.xstate, xstate_size); in arch_dup_task_struct()
55 if (!xstate_size) in arch_task_cache_init()
58 task_xstate_cachep = kmem_cache_create("task_xstate", xstate_size, in arch_task_cache_init()
72 xstate_size = sizeof(struct sh_fpu_hard_struct); in init_thread_xstate()
74 xstate_size = sizeof(struct sh_fpu_soft_struct); in init_thread_xstate()
76 xstate_size = 0; in init_thread_xstate()
/linux/arch/x86/kernel/fpu/
H A Dsignal.c41 fx_sw->xstate_size < min_xstate_size || in check_xstate_in_sigframe()
42 fx_sw->xstate_size > fpstate->user_size || in check_xstate_in_sigframe()
43 fx_sw->extended_size < fx_sw->xstate_size + FP_XSTATE_MAGIC2_SIZE) in check_xstate_in_sigframe()
52 if (get_user(magic2, (__u32 __user *)(buf + fx_sw->xstate_size))) in check_xstate_in_sigframe()
57 if (fx_sw->xstate_size != fpstate->user_size || in check_xstate_in_sigframe()
66 if (fx_sw->xstate_size < xsize) in check_xstate_in_sigframe()
69 fx_sw->xstate_size = xsize; in check_xstate_in_sigframe()
86 fx_sw->xstate_size = sizeof(struct fxregs_state); in check_xstate_in_sigframe()
136 sw_bytes->xstate_size = fpstate->user_size; in save_sw_bytes()
290 bool fx_only, size_t xstate_size) in restore_fpregs_from_user() argument
[all...]
/linux/tools/testing/selftests/x86/
H A Dsigframe_fpu_portability.c130 sw->xstate_size = xstate_size_ymm; in __handle_shrunk_xstate_size()
132 sw->xstate_size = XSTATE_SSE_ONLY_SIZE; in __handle_shrunk_xstate_size()
139 *(uint32_t *)(fp + sw->xstate_size) = FP_XSTATE_MAGIC2; in __handle_shrunk_xstate_size()
148 if (sw->xstate_size + FP_XSTATE_MAGIC2_SIZE < sw->extended_size) in __handle_shrunk_xstate_size()
149 memset(fp + sw->xstate_size + FP_XSTATE_MAGIC2_SIZE, 0, in __handle_shrunk_xstate_size()
150 sw->extended_size - sw->xstate_size - FP_XSTATE_MAGIC2_SIZE); in __handle_shrunk_xstate_size()
H A Dxstate.c390 magic2 = *(uint32_t *)(xbuf + sw_bytes->xstate_size); in validate_sigfpstate()
/linux/arch/sh/kernel/cpu/
H A Dfpu.c31 memset(fp, 0, xstate_size); in init_fpu()
35 memset(fp, 0, xstate_size); in init_fpu()
/linux/Documentation/arch/x86/
H A Dxstate.rst196 __u32 xstate_size;
206 - ``xstate_size``: The actual size of the xstate context for the enabled
209 The kernel uses ``xstate_size`` in conjunction with the pointer to the xstate
211 the xstate context (at ``xstate_context + xstate_size``). In 64-bit signal frames,
/linux/arch/sh/include/asm/
H A Dprocessor.h110 extern unsigned int xstate_size;
/linux/arch/x86/include/uapi/asm/
H A Dsigcontext.h81 __u32 xstate_size; member
/linux/arch/x86/um/
H A Dsignal.c205 __put_user(host_fp_size, &to_fp64->fpstate.sw_reserved.xstate_size); in copy_sc_to_user()