x86/fpu: Clean up asm/fpu/types.h
- add header guards - standardize vertical alignment - add comments about MPX No code changed. Reviewed-by: Borislav Petkov <bp@alien8.de> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
Родитель
14b9675ae9
Коммит
47bc510634
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* FPU data structures:
|
||||
*/
|
||||
#ifndef _ASM_X86_FPU_H
|
||||
#define _ASM_X86_FPU_H
|
||||
|
||||
#define MXCSR_DEFAULT 0x1f80
|
||||
|
||||
|
@ -52,6 +57,9 @@ struct i387_fxsave_struct {
|
|||
|
||||
} __attribute__((aligned(16)));
|
||||
|
||||
/*
|
||||
* Software based FPU emulation state:
|
||||
*/
|
||||
struct i387_soft_struct {
|
||||
u32 cwd;
|
||||
u32 swd;
|
||||
|
@ -82,6 +90,7 @@ struct lwp_struct {
|
|||
u8 reserved[128];
|
||||
};
|
||||
|
||||
/* Intel MPX support: */
|
||||
struct bndreg {
|
||||
u64 lower_bound;
|
||||
u64 upper_bound;
|
||||
|
@ -105,7 +114,7 @@ struct xsave_struct {
|
|||
struct lwp_struct lwp;
|
||||
struct bndreg bndreg[4];
|
||||
struct bndcsr bndcsr;
|
||||
/* new processor state extensions will go here */
|
||||
/* New processor state extensions will go here. */
|
||||
} __attribute__ ((packed, aligned (64)));
|
||||
|
||||
union thread_xstate {
|
||||
|
@ -130,3 +139,4 @@ struct fpu {
|
|||
unsigned char counter;
|
||||
};
|
||||
|
||||
#endif /* _ASM_X86_FPU_H */
|
||||
|
|
Загрузка…
Ссылка в новой задаче