Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
traps.h File Reference
#include <linux/linkage.h>
#include <asm/ptrace.h>

Go to the source code of this file.

Data Structures

struct  frame
 

Macros

#define VEC_RESETSP   (0)
 
#define VEC_RESETPC   (1)
 
#define VEC_BUSERR   (2)
 
#define VEC_ADDRERR   (3)
 
#define VEC_ILLEGAL   (4)
 
#define VEC_ZERODIV   (5)
 
#define VEC_CHK   (6)
 
#define VEC_TRAP   (7)
 
#define VEC_PRIV   (8)
 
#define VEC_TRACE   (9)
 
#define VEC_LINE10   (10)
 
#define VEC_LINE11   (11)
 
#define VEC_RESV12   (12)
 
#define VEC_COPROC   (13)
 
#define VEC_FORMAT   (14)
 
#define VEC_UNINT   (15)
 
#define VEC_RESV16   (16)
 
#define VEC_RESV17   (17)
 
#define VEC_RESV18   (18)
 
#define VEC_RESV19   (19)
 
#define VEC_RESV20   (20)
 
#define VEC_RESV21   (21)
 
#define VEC_RESV22   (22)
 
#define VEC_RESV23   (23)
 
#define VEC_SPUR   (24)
 
#define VEC_INT1   (25)
 
#define VEC_INT2   (26)
 
#define VEC_INT3   (27)
 
#define VEC_INT4   (28)
 
#define VEC_INT5   (29)
 
#define VEC_INT6   (30)
 
#define VEC_INT7   (31)
 
#define VEC_SYS   (32)
 
#define VEC_TRAP1   (33)
 
#define VEC_TRAP2   (34)
 
#define VEC_TRAP3   (35)
 
#define VEC_TRAP4   (36)
 
#define VEC_TRAP5   (37)
 
#define VEC_TRAP6   (38)
 
#define VEC_TRAP7   (39)
 
#define VEC_TRAP8   (40)
 
#define VEC_TRAP9   (41)
 
#define VEC_TRAP10   (42)
 
#define VEC_TRAP11   (43)
 
#define VEC_TRAP12   (44)
 
#define VEC_TRAP13   (45)
 
#define VEC_TRAP14   (46)
 
#define VEC_TRAP15   (47)
 
#define VEC_FPBRUC   (48)
 
#define VEC_FPIR   (49)
 
#define VEC_FPDIVZ   (50)
 
#define VEC_FPUNDER   (51)
 
#define VEC_FPOE   (52)
 
#define VEC_FPOVER   (53)
 
#define VEC_FPNAN   (54)
 
#define VEC_FPUNSUP   (55)
 
#define VEC_MMUCFG   (56)
 
#define VEC_MMUILL   (57)
 
#define VEC_MMUACC   (58)
 
#define VEC_RESV59   (59)
 
#define VEC_UNIMPEA   (60)
 
#define VEC_UNIMPII   (61)
 
#define VEC_RESV62   (62)
 
#define VEC_RESV63   (63)
 
#define VEC_USER   (64)
 
#define VECOFF(vec)   ((vec)<<2)
 
#define PS_T   (0x8000)
 
#define PS_S   (0x2000)
 
#define PS_M   (0x1000)
 
#define PS_C   (0x0001)
 
#define FC   (0x8000)
 
#define FB   (0x4000)
 
#define RC   (0x2000)
 
#define RB   (0x1000)
 
#define DF   (0x0100)
 
#define RM   (0x0080)
 
#define RW   (0x0040)
 
#define SZ   (0x0030)
 
#define DFC   (0x0007)
 
#define MMU_B   (0x8000) /* bus error */
 
#define MMU_L   (0x4000) /* limit violation */
 
#define MMU_S   (0x2000) /* supervisor violation */
 
#define MMU_WP   (0x0800) /* write-protected */
 
#define MMU_I   (0x0400) /* invalid descriptor */
 
#define MMU_M   (0x0200) /* ATC entry modified */
 
#define MMU_T   (0x0040) /* transparent translation */
 
#define MMU_NUM   (0x0007) /* number of levels traversed */
 
#define CP_040   (0x8000)
 
#define CU_040   (0x4000)
 
#define CT_040   (0x2000)
 
#define CM_040   (0x1000)
 
#define MA_040   (0x0800)
 
#define ATC_040   (0x0400)
 
#define LK_040   (0x0200)
 
#define RW_040   (0x0100)
 
#define SIZ_040   (0x0060)
 
#define TT_040   (0x0018)
 
#define TM_040   (0x0007)
 
#define WBV_040   (0x80)
 
#define WBSIZ_040   (0x60)
 
#define WBBYT_040   (0x20)
 
#define WBWRD_040   (0x40)
 
#define WBLNG_040   (0x00)
 
#define WBTT_040   (0x18)
 
#define WBTM_040   (0x07)
 
#define BA_SIZE_BYTE   (0x20)
 
#define BA_SIZE_WORD   (0x40)
 
#define BA_SIZE_LONG   (0x00)
 
#define BA_SIZE_LINE   (0x60)
 
#define BA_TT_MOVE16   (0x08)
 
#define MMU_B_040   (0x0800)
 
#define MMU_G_040   (0x0400)
 
#define MMU_S_040   (0x0080)
 
#define MMU_CM_040   (0x0060)
 
#define MMU_M_040   (0x0010)
 
#define MMU_WP_040   (0x0004)
 
#define MMU_T_040   (0x0002)
 
#define MMU_R_040   (0x0001)
 
#define MMU060_MA   (0x08000000) /* misaligned */
 
#define MMU060_LK   (0x02000000) /* locked transfer */
 
#define MMU060_RW   (0x01800000) /* read/write */
 
#define MMU060_RW_W   (0x00800000) /* write */
 
#define MMU060_RW_R   (0x01000000) /* read */
 
#define MMU060_RW_RMW   (0x01800000) /* read/modify/write */
 
#define MMU060_W   (0x00800000) /* general write, includes rmw */
 
#define MMU060_SIZ   (0x00600000) /* transfer size */
 
#define MMU060_TT   (0x00180000) /* transfer type (TT) bits */
 
#define MMU060_TM   (0x00070000) /* transfer modifier (TM) bits */
 
#define MMU060_IO   (0x00008000) /* instruction or operand */
 
#define MMU060_PBE   (0x00004000) /* push buffer bus error */
 
#define MMU060_SBE   (0x00002000) /* store buffer bus error */
 
#define MMU060_PTA   (0x00001000) /* pointer A fault */
 
#define MMU060_PTB   (0x00000800) /* pointer B fault */
 
#define MMU060_IL   (0x00000400) /* double indirect descr fault */
 
#define MMU060_PF   (0x00000200) /* page fault (invalid descr) */
 
#define MMU060_SP   (0x00000100) /* supervisor protection */
 
#define MMU060_WP   (0x00000080) /* write protection */
 
#define MMU060_TWE   (0x00000040) /* bus error on table search */
 
#define MMU060_RE   (0x00000020) /* bus error on read */
 
#define MMU060_WE   (0x00000010) /* bus error on write */
 
#define MMU060_TTR   (0x00000008) /* error caused by TTR translation */
 
#define MMU060_BPE   (0x00000004) /* branch prediction error */
 
#define MMU060_SEE   (0x00000001) /* software emulated error */
 
#define MMU060_DESC_ERR
 
#define MMU060_ERR_BITS
 

Typedefs

typedef void(* e_vector )(void)
 

Functions

asmlinkage void auto_inthandler (void)
 
asmlinkage void user_inthandler (void)
 
asmlinkage void bad_inthandler (void)
 

Variables

e_vector vectors []
 
e_vector_ramvec
 

Macro Definition Documentation

#define ATC_040   (0x0400)

Definition at line 135 of file traps.h.

#define BA_SIZE_BYTE   (0x20)

Definition at line 152 of file traps.h.

#define BA_SIZE_LINE   (0x60)

Definition at line 155 of file traps.h.

#define BA_SIZE_LONG   (0x00)

Definition at line 154 of file traps.h.

#define BA_SIZE_WORD   (0x40)

Definition at line 153 of file traps.h.

#define BA_TT_MOVE16   (0x08)

Definition at line 158 of file traps.h.

#define CM_040   (0x1000)

Definition at line 133 of file traps.h.

#define CP_040   (0x8000)

Definition at line 130 of file traps.h.

#define CT_040   (0x2000)

Definition at line 132 of file traps.h.

#define CU_040   (0x4000)

Definition at line 131 of file traps.h.

#define DF   (0x0100)

Definition at line 111 of file traps.h.

#define DFC   (0x0007)

Definition at line 115 of file traps.h.

#define FB   (0x4000)

Definition at line 108 of file traps.h.

#define FC   (0x8000)

Definition at line 107 of file traps.h.

#define LK_040   (0x0200)

Definition at line 136 of file traps.h.

#define MA_040   (0x0800)

Definition at line 134 of file traps.h.

#define MMU060_BPE   (0x00000004) /* branch prediction error */

Definition at line 194 of file traps.h.

#define MMU060_DESC_ERR
Value:
MMU060_IL | MMU060_PF)

Definition at line 198 of file traps.h.

#define MMU060_ERR_BITS
Value:

Definition at line 201 of file traps.h.

#define MMU060_IL   (0x00000400) /* double indirect descr fault */

Definition at line 186 of file traps.h.

#define MMU060_IO   (0x00008000) /* instruction or operand */

Definition at line 181 of file traps.h.

#define MMU060_LK   (0x02000000) /* locked transfer */

Definition at line 172 of file traps.h.

#define MMU060_MA   (0x08000000) /* misaligned */

Definition at line 171 of file traps.h.

#define MMU060_PBE   (0x00004000) /* push buffer bus error */

Definition at line 182 of file traps.h.

#define MMU060_PF   (0x00000200) /* page fault (invalid descr) */

Definition at line 187 of file traps.h.

#define MMU060_PTA   (0x00001000) /* pointer A fault */

Definition at line 184 of file traps.h.

#define MMU060_PTB   (0x00000800) /* pointer B fault */

Definition at line 185 of file traps.h.

#define MMU060_RE   (0x00000020) /* bus error on read */

Definition at line 191 of file traps.h.

#define MMU060_RW   (0x01800000) /* read/write */

Definition at line 173 of file traps.h.

#define MMU060_RW_R   (0x01000000) /* read */

Definition at line 175 of file traps.h.

#define MMU060_RW_RMW   (0x01800000) /* read/modify/write */

Definition at line 176 of file traps.h.

#define MMU060_RW_W   (0x00800000) /* write */

Definition at line 174 of file traps.h.

#define MMU060_SBE   (0x00002000) /* store buffer bus error */

Definition at line 183 of file traps.h.

#define MMU060_SEE   (0x00000001) /* software emulated error */

Definition at line 195 of file traps.h.

#define MMU060_SIZ   (0x00600000) /* transfer size */

Definition at line 178 of file traps.h.

#define MMU060_SP   (0x00000100) /* supervisor protection */

Definition at line 188 of file traps.h.

#define MMU060_TM   (0x00070000) /* transfer modifier (TM) bits */

Definition at line 180 of file traps.h.

#define MMU060_TT   (0x00180000) /* transfer type (TT) bits */

Definition at line 179 of file traps.h.

#define MMU060_TTR   (0x00000008) /* error caused by TTR translation */

Definition at line 193 of file traps.h.

#define MMU060_TWE   (0x00000040) /* bus error on table search */

Definition at line 190 of file traps.h.

#define MMU060_W   (0x00800000) /* general write, includes rmw */

Definition at line 177 of file traps.h.

#define MMU060_WE   (0x00000010) /* bus error on write */

Definition at line 192 of file traps.h.

#define MMU060_WP   (0x00000080) /* write protection */

Definition at line 189 of file traps.h.

#define MMU_B   (0x8000) /* bus error */

Definition at line 119 of file traps.h.

#define MMU_B_040   (0x0800)

Definition at line 161 of file traps.h.

#define MMU_CM_040   (0x0060)

Definition at line 164 of file traps.h.

#define MMU_G_040   (0x0400)

Definition at line 162 of file traps.h.

#define MMU_I   (0x0400) /* invalid descriptor */

Definition at line 123 of file traps.h.

#define MMU_L   (0x4000) /* limit violation */

Definition at line 120 of file traps.h.

#define MMU_M   (0x0200) /* ATC entry modified */

Definition at line 124 of file traps.h.

#define MMU_M_040   (0x0010)

Definition at line 165 of file traps.h.

#define MMU_NUM   (0x0007) /* number of levels traversed */

Definition at line 126 of file traps.h.

#define MMU_R_040   (0x0001)

Definition at line 168 of file traps.h.

#define MMU_S   (0x2000) /* supervisor violation */

Definition at line 121 of file traps.h.

#define MMU_S_040   (0x0080)

Definition at line 163 of file traps.h.

#define MMU_T   (0x0040) /* transparent translation */

Definition at line 125 of file traps.h.

#define MMU_T_040   (0x0002)

Definition at line 167 of file traps.h.

#define MMU_WP   (0x0800) /* write-protected */

Definition at line 122 of file traps.h.

#define MMU_WP_040   (0x0004)

Definition at line 166 of file traps.h.

#define PS_C   (0x0001)

Definition at line 103 of file traps.h.

#define PS_M   (0x1000)

Definition at line 102 of file traps.h.

#define PS_S   (0x2000)

Definition at line 101 of file traps.h.

#define PS_T   (0x8000)

Definition at line 100 of file traps.h.

#define RB   (0x1000)

Definition at line 110 of file traps.h.

#define RC   (0x2000)

Definition at line 109 of file traps.h.

#define RM   (0x0080)

Definition at line 112 of file traps.h.

#define RW   (0x0040)

Definition at line 113 of file traps.h.

#define RW_040   (0x0100)

Definition at line 137 of file traps.h.

#define SIZ_040   (0x0060)

Definition at line 138 of file traps.h.

#define SZ   (0x0030)

Definition at line 114 of file traps.h.

#define TM_040   (0x0007)

Definition at line 140 of file traps.h.

#define TT_040   (0x0018)

Definition at line 139 of file traps.h.

#define VEC_ADDRERR   (3)

Definition at line 32 of file traps.h.

#define VEC_BUSERR   (2)

Definition at line 31 of file traps.h.

#define VEC_CHK   (6)

Definition at line 35 of file traps.h.

#define VEC_COPROC   (13)

Definition at line 42 of file traps.h.

#define VEC_FORMAT   (14)

Definition at line 43 of file traps.h.

#define VEC_FPBRUC   (48)

Definition at line 77 of file traps.h.

#define VEC_FPDIVZ   (50)

Definition at line 79 of file traps.h.

#define VEC_FPIR   (49)

Definition at line 78 of file traps.h.

#define VEC_FPNAN   (54)

Definition at line 83 of file traps.h.

#define VEC_FPOE   (52)

Definition at line 81 of file traps.h.

#define VEC_FPOVER   (53)

Definition at line 82 of file traps.h.

#define VEC_FPUNDER   (51)

Definition at line 80 of file traps.h.

#define VEC_FPUNSUP   (55)

Definition at line 84 of file traps.h.

#define VEC_ILLEGAL   (4)

Definition at line 33 of file traps.h.

#define VEC_INT1   (25)

Definition at line 54 of file traps.h.

#define VEC_INT2   (26)

Definition at line 55 of file traps.h.

#define VEC_INT3   (27)

Definition at line 56 of file traps.h.

#define VEC_INT4   (28)

Definition at line 57 of file traps.h.

#define VEC_INT5   (29)

Definition at line 58 of file traps.h.

#define VEC_INT6   (30)

Definition at line 59 of file traps.h.

#define VEC_INT7   (31)

Definition at line 60 of file traps.h.

#define VEC_LINE10   (10)

Definition at line 39 of file traps.h.

#define VEC_LINE11   (11)

Definition at line 40 of file traps.h.

#define VEC_MMUACC   (58)

Definition at line 87 of file traps.h.

#define VEC_MMUCFG   (56)

Definition at line 85 of file traps.h.

#define VEC_MMUILL   (57)

Definition at line 86 of file traps.h.

#define VEC_PRIV   (8)

Definition at line 37 of file traps.h.

#define VEC_RESETPC   (1)

Definition at line 30 of file traps.h.

#define VEC_RESETSP   (0)

Definition at line 29 of file traps.h.

#define VEC_RESV12   (12)

Definition at line 41 of file traps.h.

#define VEC_RESV16   (16)

Definition at line 45 of file traps.h.

#define VEC_RESV17   (17)

Definition at line 46 of file traps.h.

#define VEC_RESV18   (18)

Definition at line 47 of file traps.h.

#define VEC_RESV19   (19)

Definition at line 48 of file traps.h.

#define VEC_RESV20   (20)

Definition at line 49 of file traps.h.

#define VEC_RESV21   (21)

Definition at line 50 of file traps.h.

#define VEC_RESV22   (22)

Definition at line 51 of file traps.h.

#define VEC_RESV23   (23)

Definition at line 52 of file traps.h.

#define VEC_RESV59   (59)

Definition at line 88 of file traps.h.

#define VEC_RESV62   (62)

Definition at line 91 of file traps.h.

#define VEC_RESV63   (63)

Definition at line 92 of file traps.h.

#define VEC_SPUR   (24)

Definition at line 53 of file traps.h.

#define VEC_SYS   (32)

Definition at line 61 of file traps.h.

#define VEC_TRACE   (9)

Definition at line 38 of file traps.h.

#define VEC_TRAP   (7)

Definition at line 36 of file traps.h.

#define VEC_TRAP1   (33)

Definition at line 62 of file traps.h.

#define VEC_TRAP10   (42)

Definition at line 71 of file traps.h.

#define VEC_TRAP11   (43)

Definition at line 72 of file traps.h.

#define VEC_TRAP12   (44)

Definition at line 73 of file traps.h.

#define VEC_TRAP13   (45)

Definition at line 74 of file traps.h.

#define VEC_TRAP14   (46)

Definition at line 75 of file traps.h.

#define VEC_TRAP15   (47)

Definition at line 76 of file traps.h.

#define VEC_TRAP2   (34)

Definition at line 63 of file traps.h.

#define VEC_TRAP3   (35)

Definition at line 64 of file traps.h.

#define VEC_TRAP4   (36)

Definition at line 65 of file traps.h.

#define VEC_TRAP5   (37)

Definition at line 66 of file traps.h.

#define VEC_TRAP6   (38)

Definition at line 67 of file traps.h.

#define VEC_TRAP7   (39)

Definition at line 68 of file traps.h.

#define VEC_TRAP8   (40)

Definition at line 69 of file traps.h.

#define VEC_TRAP9   (41)

Definition at line 70 of file traps.h.

#define VEC_UNIMPEA   (60)

Definition at line 89 of file traps.h.

#define VEC_UNIMPII   (61)

Definition at line 90 of file traps.h.

#define VEC_UNINT   (15)

Definition at line 44 of file traps.h.

#define VEC_USER   (64)

Definition at line 93 of file traps.h.

#define VEC_ZERODIV   (5)

Definition at line 34 of file traps.h.

#define VECOFF (   vec)    ((vec)<<2)

Definition at line 95 of file traps.h.

#define WBBYT_040   (0x20)

Definition at line 145 of file traps.h.

#define WBLNG_040   (0x00)

Definition at line 147 of file traps.h.

#define WBSIZ_040   (0x60)

Definition at line 144 of file traps.h.

#define WBTM_040   (0x07)

Definition at line 149 of file traps.h.

#define WBTT_040   (0x18)

Definition at line 148 of file traps.h.

#define WBV_040   (0x80)

Definition at line 143 of file traps.h.

#define WBWRD_040   (0x40)

Definition at line 146 of file traps.h.

Typedef Documentation

typedef void(* e_vector)(void)

Definition at line 19 of file traps.h.

Function Documentation

asmlinkage void auto_inthandler ( void  )
asmlinkage void bad_inthandler ( void  )
asmlinkage void user_inthandler ( void  )

Variable Documentation

e_vector* _ramvec
static struct intc_vect vectors
Initial value:
= {
INTC_VECT(TMU0, 0x400), INTC_VECT(TMU1, 0x420),
INTC_VECT(TMU2, 0x440), INTC_VECT(RTC, 0x480),
INTC_VECT(RTC, 0x4a0), INTC_VECT(RTC, 0x4c0),
INTC_VECT(SIM, 0x4e0), INTC_VECT(SIM, 0x500),
INTC_VECT(SIM, 0x520), INTC_VECT(SIM, 0x540),
INTC_VECT(WDT, 0x560), INTC_VECT(REF_RCMI, 0x580),
INTC_VECT(USBF_SPD, 0x6e0), INTC_VECT(DMAC1, 0x800),
INTC_VECT(DMAC1, 0x820), INTC_VECT(DMAC1, 0x840),
INTC_VECT(DMAC1, 0x860), INTC_VECT(LCDC, 0x900),
INTC_VECT(USBFI, 0xa20), INTC_VECT(USBFI, 0xa40),
INTC_VECT(USBHI, 0xa60),
INTC_VECT(DMAC2, 0xb80), INTC_VECT(DMAC2, 0xba0),
INTC_VECT(ADC, 0xbe0), INTC_VECT(SCIF0, 0xc00),
INTC_VECT(SCIF1, 0xc20), INTC_VECT(PINT07, 0xc80),
INTC_VECT(PINT815, 0xca0), INTC_VECT(SIOF0, 0xd00),
INTC_VECT(SIOF1, 0xd20), INTC_VECT(TPU, 0xd80),
INTC_VECT(TPU, 0xda0), INTC_VECT(TPU, 0xdc0),
INTC_VECT(TPU, 0xde0), INTC_VECT(IIC, 0xe00),
INTC_VECT(MMC, 0xe80), INTC_VECT(MMC, 0xea0),
INTC_VECT(MMC, 0xec0), INTC_VECT(MMC, 0xee0),
INTC_VECT(CMT, 0xf00), INTC_VECT(PCC, 0xf60),
INTC_VECT(AFEIF, 0xfe0),
}

Definition at line 422 of file setup-sh7720.c.