Commit 0e2815de authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

x86/headers: Clean up too long lines

Signed-off-by: default avatarPeter 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.netSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent decb4c41
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
#define _UAPI_ASM_X86_SIGCONTEXT_H #define _UAPI_ASM_X86_SIGCONTEXT_H
/* /*
* Linux signal context definitions. The sigcontext includes a complex hierarchy of CPU * Linux signal context definitions. The sigcontext includes a complex
* and FPU state, available to user-space (on the stack) when a signal handler is * hierarchy of CPU and FPU state, available to user-space (on the stack) when
* executed. * a signal handler is executed.
* *
* As over the years this ABI grew from its very simple roots towards supporting more and * As over the years this ABI grew from its very simple roots towards
* more CPU state organically, some of the details (which were rather clever hacks back * supporting more and more CPU state organically, some of the details (which
* in the days) became a bit quirky by today. * were rather clever hacks back in the days) became a bit quirky by today.
* *
* The current ABI includes flexible provisions for future extensions, so we won't have * The current ABI includes flexible provisions for future extensions, so we
* to grow new quirks for quite some time. Promise! * won't have to grow new quirks for quite some time. Promise!
*/ */
#include <linux/compiler.h> #include <linux/compiler.h>
...@@ -23,27 +23,32 @@ ...@@ -23,27 +23,32 @@
/* /*
* Bytes 464..511 in the current 512-byte layout of the FXSAVE/FXRSTOR frame * Bytes 464..511 in the current 512-byte layout of the FXSAVE/FXRSTOR frame
* are reserved for SW usage. On CPUs supporting XSAVE/XRSTOR, these bytes * are reserved for SW usage. On CPUs supporting XSAVE/XRSTOR, these bytes are
* are used to extend the fpstate pointer in the sigcontext, which now * used to extend the fpstate pointer in the sigcontext, which now includes the
* includes the extended state information along with fpstate information. * extended state information along with fpstate information.
* *
* If sw_reserved.magic1 == FP_XSTATE_MAGIC1 then there's a sw_reserved.extended_size * If sw_reserved.magic1 == FP_XSTATE_MAGIC1 then there's a
* bytes large extended context area present. (The last 32-bit word of this extended * sw_reserved.extended_size bytes large extended context area present. (The
* area (at the fpstate+extended_size-FP_XSTATE_MAGIC2_SIZE address) is set to * last 32-bit word of this extended area (at the
* fpstate+extended_size-FP_XSTATE_MAGIC2_SIZE address) is set to
* FP_XSTATE_MAGIC2 so that you can sanity check your size calculations.) * FP_XSTATE_MAGIC2 so that you can sanity check your size calculations.)
* *
* This extended area typically grows with newer CPUs that have larger and larger * This extended area typically grows with newer CPUs that have larger and
* XSAVE areas. * larger XSAVE areas.
*/ */
struct _fpx_sw_bytes { struct _fpx_sw_bytes {
/* If set to FP_XSTATE_MAGIC1 then this is an xstate context. 0 if a legacy frame. */ /*
* If set to FP_XSTATE_MAGIC1 then this is an xstate context.
* 0 if a legacy frame.
*/
__u32 magic1; __u32 magic1;
/* /*
* Total size of the fpstate area: * Total size of the fpstate area:
* *
* - if magic1 == 0 then it's sizeof(struct _fpstate) * - if magic1 == 0 then it's sizeof(struct _fpstate)
* - if magic1 == FP_XSTATE_MAGIC1 then it's sizeof(struct _xstate) plus extensions (if any) * - if magic1 == FP_XSTATE_MAGIC1 then it's sizeof(struct _xstate)
* plus extensions (if any)
*/ */
__u32 extended_size; __u32 extended_size;
...@@ -66,13 +71,13 @@ struct _fpx_sw_bytes { ...@@ -66,13 +71,13 @@ struct _fpx_sw_bytes {
/* /*
* As documented in the iBCS2 standard: * As documented in the iBCS2 standard:
* *
* The first part of "struct _fpstate" is just the normal i387 * The first part of "struct _fpstate" is just the normal i387 hardware setup,
* hardware setup, the extra "status" word is used to save the * the extra "status" word is used to save the coprocessor status word before
* coprocessor status word before entering the handler. * entering the handler.
* *
* The FPU state data structure has had to grow to accommodate the * The FPU state data structure has had to grow to accommodate the extended FPU
* extended FPU state required by the Streaming SIMD Extensions. * state required by the Streaming SIMD Extensions. There is no documented
* There is no documented standard to accomplish this at the moment. * standard to accomplish this at the moment.
*/ */
/* 10-byte legacy floating point register: */ /* 10-byte legacy floating point register: */
...@@ -137,8 +142,8 @@ struct _fpstate_32 { ...@@ -137,8 +142,8 @@ struct _fpstate_32 {
* 'struct _fpstate' so that you can always assume the _fpstate portion * 'struct _fpstate' so that you can always assume the _fpstate portion
* exists so that you can check the magic value. * exists so that you can check the magic value.
* *
* Note2: Reserved fields may someday contain valuable data. Always save/restore * Note2: Reserved fields may someday contain valuable data. Always
* them when you change signal frames. * save/restore them when you change signal frames.
*/ */
struct _fpstate_64 { struct _fpstate_64 {
__u16 cwd; __u16 cwd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment