aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2015-09-09 03:12:44 -0400
committerIngo Molnar <mingo@kernel.org>2015-09-14 05:09:33 -0400
commit0e2815de552a638295cfdaf0865e575573bf263e (patch)
tree1abf2cc3ec36f45f320ce3f5e3038c5c6a354a86 /arch/x86/include
parentdecb4c41159e1511197f2964da758fa7f2eeb741 (diff)
x86/headers: Clean up too long lines
Signed-off-by: Peter Zijlstra <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: bp@alien8.de Cc: brgerst@gmail.com Cc: dvlasenk@redhat.com Cc: luto@amacapital.net Cc: mikko.rapeli@iki.fi Cc: oleg@redhat.com Link: http://lkml.kernel.org/r/20150909071244.GM3644@twins.programming.kicks-ass.net Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/uapi/asm/sigcontext.h57
1 files changed, 31 insertions, 26 deletions
diff --git a/arch/x86/include/uapi/asm/sigcontext.h b/arch/x86/include/uapi/asm/sigcontext.h
index 4411e6a8f8e7..d485232f1e9f 100644
--- a/arch/x86/include/uapi/asm/sigcontext.h
+++ b/arch/x86/include/uapi/asm/sigcontext.h
@@ -2,16 +2,16 @@
2#define _UAPI_ASM_X86_SIGCONTEXT_H 2#define _UAPI_ASM_X86_SIGCONTEXT_H
3 3
4/* 4/*
5 * Linux signal context definitions. The sigcontext includes a complex hierarchy of CPU 5 * Linux signal context definitions. The sigcontext includes a complex
6 * and FPU state, available to user-space (on the stack) when a signal handler is 6 * hierarchy of CPU and FPU state, available to user-space (on the stack) when
7 * executed. 7 * a signal handler is executed.
8 * 8 *
9 * As over the years this ABI grew from its very simple roots towards supporting more and 9 * As over the years this ABI grew from its very simple roots towards
10 * more CPU state organically, some of the details (which were rather clever hacks back 10 * supporting more and more CPU state organically, some of the details (which
11 * in the days) became a bit quirky by today. 11 * were rather clever hacks back in the days) became a bit quirky by today.
12 * 12 *
13 * The current ABI includes flexible provisions for future extensions, so we won't have 13 * The current ABI includes flexible provisions for future extensions, so we
14 * to grow new quirks for quite some time. Promise! 14 * won't have to grow new quirks for quite some time. Promise!
15 */ 15 */
16 16
17#include <linux/compiler.h> 17#include <linux/compiler.h>
@@ -23,27 +23,32 @@
23 23
24/* 24/*
25 * Bytes 464..511 in the current 512-byte layout of the FXSAVE/FXRSTOR frame 25 * Bytes 464..511 in the current 512-byte layout of the FXSAVE/FXRSTOR frame
26 * are reserved for SW usage. On CPUs supporting XSAVE/XRSTOR, these bytes 26 * are reserved for SW usage. On CPUs supporting XSAVE/XRSTOR, these bytes are
27 * are used to extend the fpstate pointer in the sigcontext, which now 27 * used to extend the fpstate pointer in the sigcontext, which now includes the
28 * includes the extended state information along with fpstate information. 28 * extended state information along with fpstate information.
29 * 29 *
30 * If sw_reserved.magic1 == FP_XSTATE_MAGIC1 then there's a sw_reserved.extended_size 30 * If sw_reserved.magic1 == FP_XSTATE_MAGIC1 then there's a
31 * bytes large extended context area present. (The last 32-bit word of this extended 31 * sw_reserved.extended_size bytes large extended context area present. (The
32 * area (at the fpstate+extended_size-FP_XSTATE_MAGIC2_SIZE address) is set to 32 * last 32-bit word of this extended area (at the
33 * fpstate+extended_size-FP_XSTATE_MAGIC2_SIZE address) is set to
33 * FP_XSTATE_MAGIC2 so that you can sanity check your size calculations.) 34 * FP_XSTATE_MAGIC2 so that you can sanity check your size calculations.)
34 * 35 *
35 * This extended area typically grows with newer CPUs that have larger and larger 36 * This extended area typically grows with newer CPUs that have larger and
36 * XSAVE areas. 37 * larger XSAVE areas.
37 */ 38 */
38struct _fpx_sw_bytes { 39struct _fpx_sw_bytes {
39 /* If set to FP_XSTATE_MAGIC1 then this is an xstate context. 0 if a legacy frame. */ 40 /*
41 * If set to FP_XSTATE_MAGIC1 then this is an xstate context.
42 * 0 if a legacy frame.
43 */
40 __u32 magic1; 44 __u32 magic1;
41 45
42 /* 46 /*
43 * Total size of the fpstate area: 47 * Total size of the fpstate area:
44 * 48 *
45 * - if magic1 == 0 then it's sizeof(struct _fpstate) 49 * - if magic1 == 0 then it's sizeof(struct _fpstate)
46 * - if magic1 == FP_XSTATE_MAGIC1 then it's sizeof(struct _xstate) plus extensions (if any) 50 * - if magic1 == FP_XSTATE_MAGIC1 then it's sizeof(struct _xstate)
51 * plus extensions (if any)
47 */ 52 */
48 __u32 extended_size; 53 __u32 extended_size;
49 54
@@ -66,13 +71,13 @@ struct _fpx_sw_bytes {
66/* 71/*
67 * As documented in the iBCS2 standard: 72 * As documented in the iBCS2 standard:
68 * 73 *
69 * The first part of "struct _fpstate" is just the normal i387 74 * The first part of "struct _fpstate" is just the normal i387 hardware setup,
70 * hardware setup, the extra "status" word is used to save the 75 * the extra "status" word is used to save the coprocessor status word before
71 * coprocessor status word before entering the handler. 76 * entering the handler.
72 * 77 *
73 * The FPU state data structure has had to grow to accommodate the 78 * The FPU state data structure has had to grow to accommodate the extended FPU
74 * extended FPU state required by the Streaming SIMD Extensions. 79 * state required by the Streaming SIMD Extensions. There is no documented
75 * There is no documented standard to accomplish this at the moment. 80 * standard to accomplish this at the moment.
76 */ 81 */
77 82
78/* 10-byte legacy floating point register: */ 83/* 10-byte legacy floating point register: */
@@ -137,8 +142,8 @@ struct _fpstate_32 {
137 * 'struct _fpstate' so that you can always assume the _fpstate portion 142 * 'struct _fpstate' so that you can always assume the _fpstate portion
138 * exists so that you can check the magic value. 143 * exists so that you can check the magic value.
139 * 144 *
140 * Note2: Reserved fields may someday contain valuable data. Always save/restore 145 * Note2: Reserved fields may someday contain valuable data. Always
141 * them when you change signal frames. 146 * save/restore them when you change signal frames.
142 */ 147 */
143struct _fpstate_64 { 148struct _fpstate_64 {
144 __u16 cwd; 149 __u16 cwd;