Commit cab74470 authored by David Gibson's avatar David Gibson Committed by Linus Torvalds

[PATCH] ppc64: C99 initializers in INIT_THREAD

Fairly trivial PPC64 cleanup.  This patch makes the ppc64 INIT_THREAD
#define use C99 initializers, which will make it less likely to get broken
if we need to change thread_struct.
Signed-off-by: default avatarDavid Gibson <dwg@au1.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b83f8c40
...@@ -559,12 +559,12 @@ struct thread_struct { ...@@ -559,12 +559,12 @@ struct thread_struct {
#define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack) #define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack)
#define INIT_THREAD { \ #define INIT_THREAD { \
INIT_SP, /* ksp */ \ .ksp = INIT_SP, \
(struct pt_regs *)INIT_SP - 1, /* regs */ \ .regs = (struct pt_regs *)INIT_SP - 1, \
KERNEL_DS, /*fs*/ \ .fs = KERNEL_DS, \
{0}, /* fpr */ \ .fpr = {0}, \
0, /* fpscr */ \ .fpscr = 0, \
MSR_FE0|MSR_FE1, /* fpexc_mode */ \ .fpexc_mode = MSR_FE0|MSR_FE1, \
} }
/* /*
......
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