diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2006-09-29 05:08:59 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-10-03 12:59:17 -0400 |
commit | 0e90f49b112e4c91dee7d61eccc06bcd25b9c534 (patch) | |
tree | 13f1367842967033e83eeaef4e1830a0b37308c7 /include/asm-mips/ptrace.h | |
parent | 8ccb3dcd1f8e80e8702642e1de26541b52f6bb7c (diff) |
[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 <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/ptrace.h')
-rw-r--r-- | include/asm-mips/ptrace.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/asm-mips/ptrace.h b/include/asm-mips/ptrace.h index 4fb0fc43ffd7..5f3a9075cd28 100644 --- a/include/asm-mips/ptrace.h +++ b/include/asm-mips/ptrace.h | |||
@@ -44,9 +44,8 @@ struct pt_regs { | |||
44 | unsigned long cp0_epc; | 44 | unsigned long cp0_epc; |
45 | #ifdef CONFIG_MIPS_MT_SMTC | 45 | #ifdef CONFIG_MIPS_MT_SMTC |
46 | unsigned long cp0_tcstatus; | 46 | unsigned long cp0_tcstatus; |
47 | unsigned long smtc_pad; | ||
48 | #endif /* CONFIG_MIPS_MT_SMTC */ | 47 | #endif /* CONFIG_MIPS_MT_SMTC */ |
49 | }; | 48 | } __attribute__ ((aligned (8))); |
50 | 49 | ||
51 | /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ | 50 | /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ |
52 | #define PTRACE_GETREGS 12 | 51 | #define PTRACE_GETREGS 12 |