jdl@freescale.com | a37c887 | 2005-09-07 15:27:09 -0500 | [diff] [blame] | 1 | #ifndef _ASM_POWERPC_SIGINFO_H |
| 2 | #define _ASM_POWERPC_SIGINFO_H |
Jon Loeliger | 6b9269a | 2005-09-01 15:51:52 -0500 | [diff] [blame] | 3 | |
| 4 | /* |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License |
| 7 | * as published by the Free Software Foundation; either version |
| 8 | * 2 of the License, or (at your option) any later version. |
| 9 | */ |
| 10 | |
| 11 | #ifdef __powerpc64__ |
| 12 | # define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) |
| 13 | # define SI_PAD_SIZE32 ((SI_MAX_SIZE/sizeof(int)) - 3) |
| 14 | #endif |
| 15 | |
| 16 | #include <asm-generic/siginfo.h> |
| 17 | |
Anton Blanchard | a94d308 | 2005-09-10 16:01:10 +1000 | [diff] [blame] | 18 | /* |
| 19 | * SIGTRAP si_codes |
| 20 | */ |
| 21 | #define TRAP_BRANCH (__SI_FAULT|3) /* process taken branch trap */ |
| 22 | #define TRAP_HWBKPT (__SI_FAULT|4) /* hardware breakpoint or watchpoint */ |
| 23 | #undef NSIGTRAP |
| 24 | #define NSIGTRAP 4 |
| 25 | |
jdl@freescale.com | a37c887 | 2005-09-07 15:27:09 -0500 | [diff] [blame] | 26 | #endif /* _ASM_POWERPC_SIGINFO_H */ |