blob: 3e81306394e20fdb4630d08a9f25b575a5f64b9b [file] [log] [blame]
Robin Getz96f10502009-09-24 14:11:24 +00001/*
2 * Copyright 2004-2008 Analog Devices Inc.
3 *
4 * Licensed under the GPL-2 or later.
5 */
6
Bryan Wu1394f032007-05-06 14:50:22 -07007#ifndef _BFIN_SIGINFO_H
8#define _BFIN_SIGINFO_H
9
10#include <linux/types.h>
11#include <asm-generic/siginfo.h>
12
13#define UID16_SIGINFO_COMPAT_NEEDED
14
15#define si_uid16 _sifields._kill._uid
16
17#define ILL_ILLPARAOP (__SI_FAULT|2) /* illegal opcode combine ********** */
18#define ILL_ILLEXCPT (__SI_FAULT|4) /* unrecoverable exception ********** */
19#define ILL_CPLB_VI (__SI_FAULT|9) /* D/I CPLB protect violation ******** */
20#define ILL_CPLB_MISS (__SI_FAULT|10) /* D/I CPLB miss ******** */
21#define ILL_CPLB_MULHIT (__SI_FAULT|11) /* D/I CPLB multiple hit ******** */
22
23/*
24 * SIGBUS si_codes
25 */
26#define BUS_OPFETCH (__SI_FAULT|4) /* error from instruction fetch ******** */
27
28/*
29 * SIGTRAP si_codes
30 */
31#define TRAP_STEP (__SI_FAULT|1) /* single-step breakpoint************* */
32#define TRAP_TRACEFLOW (__SI_FAULT|2) /* trace buffer overflow ************* */
33#define TRAP_WATCHPT (__SI_FAULT|3) /* watchpoint match ************* */
34#define TRAP_ILLTRAP (__SI_FAULT|4) /* illegal trap ************* */
35
36/*
37 * SIGSEGV si_codes
38 */
39#define SEGV_STACKFLOW (__SI_FAULT|3) /* stack overflow */
40
41#endif