x86: Introduce 'struct fpu' and related API
Currently all fpu state access is through tsk->thread.xstate. Since we wish to generalize fpu access to non-task contexts, wrap the state in a new 'struct fpu' and convert existing access to use an fpu API. Signal frame handlers are not converted to the API since they will remain task context only things. Signed-off-by:Avi Kivity <avi@redhat.com> Acked-by:
Suresh Siddha <suresh.b.siddha@intel.com> LKML-Reference: <1273135546-29690-3-git-send-email-avi@redhat.com> Signed-off-by:
H. Peter Anvin <hpa@zytor.com>
Showing
- arch/x86/include/asm/i387.h 85 additions, 30 deletionsarch/x86/include/asm/i387.h
- arch/x86/include/asm/processor.h 5 additions, 1 deletionarch/x86/include/asm/processor.h
- arch/x86/include/asm/xsave.h 4 additions, 3 deletionsarch/x86/include/asm/xsave.h
- arch/x86/kernel/i387.c 51 additions, 51 deletionsarch/x86/kernel/i387.c
- arch/x86/kernel/process.c 9 additions, 12 deletionsarch/x86/kernel/process.c
- arch/x86/kernel/process_32.c 1 addition, 1 deletionarch/x86/kernel/process_32.c
- arch/x86/kernel/process_64.c 1 addition, 1 deletionarch/x86/kernel/process_64.c
- arch/x86/kernel/xsave.c 1 addition, 1 deletionarch/x86/kernel/xsave.c
- arch/x86/math-emu/fpu_aux.c 3 additions, 3 deletionsarch/x86/math-emu/fpu_aux.c
Loading
Please register or sign in to comment