1*96433f6eSDavid Howells #ifndef __reg_h__ 2*96433f6eSDavid Howells #define __reg_h__ 3*96433f6eSDavid Howells 4*96433f6eSDavid Howells /* 5*96433f6eSDavid Howells * Exception frame offsets. 6*96433f6eSDavid Howells */ 7*96433f6eSDavid Howells #define EF_V0 0 8*96433f6eSDavid Howells #define EF_T0 1 9*96433f6eSDavid Howells #define EF_T1 2 10*96433f6eSDavid Howells #define EF_T2 3 11*96433f6eSDavid Howells #define EF_T3 4 12*96433f6eSDavid Howells #define EF_T4 5 13*96433f6eSDavid Howells #define EF_T5 6 14*96433f6eSDavid Howells #define EF_T6 7 15*96433f6eSDavid Howells #define EF_T7 8 16*96433f6eSDavid Howells #define EF_S0 9 17*96433f6eSDavid Howells #define EF_S1 10 18*96433f6eSDavid Howells #define EF_S2 11 19*96433f6eSDavid Howells #define EF_S3 12 20*96433f6eSDavid Howells #define EF_S4 13 21*96433f6eSDavid Howells #define EF_S5 14 22*96433f6eSDavid Howells #define EF_S6 15 23*96433f6eSDavid Howells #define EF_A3 16 24*96433f6eSDavid Howells #define EF_A4 17 25*96433f6eSDavid Howells #define EF_A5 18 26*96433f6eSDavid Howells #define EF_T8 19 27*96433f6eSDavid Howells #define EF_T9 20 28*96433f6eSDavid Howells #define EF_T10 21 29*96433f6eSDavid Howells #define EF_T11 22 30*96433f6eSDavid Howells #define EF_RA 23 31*96433f6eSDavid Howells #define EF_T12 24 32*96433f6eSDavid Howells #define EF_AT 25 33*96433f6eSDavid Howells #define EF_SP 26 34*96433f6eSDavid Howells #define EF_PS 27 35*96433f6eSDavid Howells #define EF_PC 28 36*96433f6eSDavid Howells #define EF_GP 29 37*96433f6eSDavid Howells #define EF_A0 30 38*96433f6eSDavid Howells #define EF_A1 31 39*96433f6eSDavid Howells #define EF_A2 32 40*96433f6eSDavid Howells 41*96433f6eSDavid Howells #define EF_SIZE (33*8) 42*96433f6eSDavid Howells #define HWEF_SIZE (6*8) /* size of PAL frame (PS-A2) */ 43*96433f6eSDavid Howells 44*96433f6eSDavid Howells #define EF_SSIZE (EF_SIZE - HWEF_SIZE) 45*96433f6eSDavid Howells 46*96433f6eSDavid Howells /* 47*96433f6eSDavid Howells * Map register number into core file offset. 48*96433f6eSDavid Howells */ 49*96433f6eSDavid Howells #define CORE_REG(reg, ubase) \ 50*96433f6eSDavid Howells (((unsigned long *)((unsigned long)(ubase)))[reg]) 51*96433f6eSDavid Howells 52*96433f6eSDavid Howells #endif /* __reg_h__ */ 53