From: Franck Bui-Huu Date: Fri, 29 Sep 2006 09:08:59 +0000 (+0200) Subject: [MIPS] Let gcc align 'struct pt_regs' on 8 bytes boundary X-Git-Tag: v2.6.19-rc1~169^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0e90f49b112e4c91dee7d61eccc06bcd25b9c534;p=linux-2.6-omap-h63xx.git [MIPS] Let gcc align 'struct pt_regs' on 8 bytes boundary The stack pointer in MIPS/gcc should always 8 bytes aligned on entry to any routines. Therefore pt_regs structure must be aligned to 8-byte boundary too. Instead of creating dummy fields to achieve this alignment, this patch let gcc doing it. Therefore 'smtc_pad' field can be safely removed. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/ptrace.h b/include/asm-mips/ptrace.h index 4fb0fc43ffd..5f3a9075cd2 100644 --- a/include/asm-mips/ptrace.h +++ b/include/asm-mips/ptrace.h @@ -44,9 +44,8 @@ struct pt_regs { unsigned long cp0_epc; #ifdef CONFIG_MIPS_MT_SMTC unsigned long cp0_tcstatus; - unsigned long smtc_pad; #endif /* CONFIG_MIPS_MT_SMTC */ -}; +} __attribute__ ((aligned (8))); /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ #define PTRACE_GETREGS 12