| @@ -179,13 +179,24 @@ typedef struct siginfo { · 178 unmodified lines |
| 179 | 179 | * SIGILL si_codes |
| 180 | 180 | */ |
| 181 | 181 | #define ILL_ILLOPC 1 /* illegal opcode */ |
| 182 | +#ifdef __bfin__ |
| 183 | +# define ILL_ILLPARAOP 2 /* illegal opcode combine */ |
| 184 | +#endif |
| 182 | 185 | #define ILL_ILLOPN 2 /* illegal operand */ |
| 183 | 186 | #define ILL_ILLADR 3 /* illegal addressing mode */ |
| 184 | 187 | #define ILL_ILLTRP 4 /* illegal trap */ |
| 188 | +#ifdef __bfin__ |
| 189 | +# define ILL_ILLEXCPT 4 /* unrecoverable exception */ |
| 190 | +#endif |
| 185 | 191 | #define ILL_PRVOPC 5 /* privileged opcode */ |
| 186 | 192 | #define ILL_PRVREG 6 /* privileged register */ |
| 187 | 193 | #define ILL_COPROC 7 /* coprocessor error */ |
| 188 | 194 | #define ILL_BADSTK 8 /* internal stack error */ |
| 195 | +#ifdef __bfin__ |
| 196 | +# define ILL_CPLB_VI 9 /* D/I CPLB protect violation */ |
| 197 | +# define ILL_CPLB_MISS 10 /* D/I CPLB miss */ |
| 198 | +# define ILL_CPLB_MULHIT 11 /* D/I CPLB multiple hit */ |
| 199 | +#endif |
| 189 | 200 | #ifdef __tile__ |
| 190 | 201 | # define ILL_DBLFLT 9 /* double fault */ |
| 191 | 202 | # define ILL_HARDWALL 10 /* user networks hardwall violation */ |
| @@ -225,7 +236,11 @@ typedef struct siginfo { · 33 unmodified lines |
| 225 | 236 | */ |
| 226 | 237 | #define SEGV_MAPERR 1 /* address not mapped to object */ |
| 227 | 238 | #define SEGV_ACCERR 2 /* invalid permissions for mapped object */ |
| 228 | | −#define SEGV_BNDERR 3 /* failed address bound checks */ |
| 239 | +#ifdef __bfin__ |
| 240 | +# define SEGV_STACKFLOW 3 /* stack overflow */ |
| 241 | +#else |
| 242 | +# define SEGV_BNDERR 3 /* failed address bound checks */ |
| 243 | +#endif |
| 229 | 244 | #ifdef __ia64__ |
| 230 | 245 | # define __SEGV_PSTKOVF 4 /* paragraph stack overflow */ |
| 231 | 246 | #else |
| @@ -239,8 +254,12 @@ typedef struct siginfo { · 7 unmodified lines |
| 239 | 254 | #define BUS_ADRALN 1 /* invalid address alignment */ |
| 240 | 255 | #define BUS_ADRERR 2 /* non-existent physical address */ |
| 241 | 256 | #define BUS_OBJERR 3 /* object specific hardware error */ |
| 257 | +#ifdef __bfin__ |
| 258 | +# define BUS_OPFETCH 4 /* error from instruction fetch */ |
| 259 | +#else |
| 242 | 260 | /* hardware memory error consumed on a machine check: action required */ |
| 243 | | −#define BUS_MCEERR_AR 4 |
| 261 | +# define BUS_MCEERR_AR 4 |
| 262 | +#endif |
| 244 | 263 | /* hardware memory error detected in process but not consumed: action optional*/ |
| 245 | 264 | #define BUS_MCEERR_AO 5 |
| 246 | 265 | #define NSIGBUS 5 |
| @@ -252,6 +271,12 @@ typedef struct siginfo { · 5 unmodified lines |
| 252 | 271 | #define TRAP_TRACE 2 /* process trace trap */ |
| 253 | 272 | #define TRAP_BRANCH 3 /* process taken branch trap */ |
| 254 | 273 | #define TRAP_HWBKPT 4 /* hardware breakpoint/watchpoint */ |
| 274 | +#ifdef __bfin__ |
| 275 | +# define TRAP_STEP 1 /* single-step breakpoint */ |
| 276 | +# define TRAP_TRACEFLOW 2 /* trace buffer overflow */ |
| 277 | +# define TRAP_WATCHPT 3 /* watchpoint match */ |
| 278 | +# define TRAP_ILLTRAP 4 /* illegal trap */ |
| 279 | +#endif |
| 255 | 280 | #define NSIGTRAP 4 |
| 256 | 281 | |
| 257 | 282 | /* |