1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 296433f6eSDavid Howells #ifndef __reg_h__ 396433f6eSDavid Howells #define __reg_h__ 496433f6eSDavid Howells 596433f6eSDavid Howells /* 696433f6eSDavid Howells * Exception frame offsets. 796433f6eSDavid Howells */ 896433f6eSDavid Howells #define EF_V0 0 996433f6eSDavid Howells #define EF_T0 1 1096433f6eSDavid Howells #define EF_T1 2 1196433f6eSDavid Howells #define EF_T2 3 1296433f6eSDavid Howells #define EF_T3 4 1396433f6eSDavid Howells #define EF_T4 5 1496433f6eSDavid Howells #define EF_T5 6 1596433f6eSDavid Howells #define EF_T6 7 1696433f6eSDavid Howells #define EF_T7 8 1796433f6eSDavid Howells #define EF_S0 9 1896433f6eSDavid Howells #define EF_S1 10 1996433f6eSDavid Howells #define EF_S2 11 2096433f6eSDavid Howells #define EF_S3 12 2196433f6eSDavid Howells #define EF_S4 13 2296433f6eSDavid Howells #define EF_S5 14 2396433f6eSDavid Howells #define EF_S6 15 2496433f6eSDavid Howells #define EF_A3 16 2596433f6eSDavid Howells #define EF_A4 17 2696433f6eSDavid Howells #define EF_A5 18 2796433f6eSDavid Howells #define EF_T8 19 2896433f6eSDavid Howells #define EF_T9 20 2996433f6eSDavid Howells #define EF_T10 21 3096433f6eSDavid Howells #define EF_T11 22 3196433f6eSDavid Howells #define EF_RA 23 3296433f6eSDavid Howells #define EF_T12 24 3396433f6eSDavid Howells #define EF_AT 25 3496433f6eSDavid Howells #define EF_SP 26 3596433f6eSDavid Howells #define EF_PS 27 3696433f6eSDavid Howells #define EF_PC 28 3796433f6eSDavid Howells #define EF_GP 29 3896433f6eSDavid Howells #define EF_A0 30 3996433f6eSDavid Howells #define EF_A1 31 4096433f6eSDavid Howells #define EF_A2 32 4196433f6eSDavid Howells 4296433f6eSDavid Howells #define EF_SIZE (33*8) 4396433f6eSDavid Howells #define HWEF_SIZE (6*8) /* size of PAL frame (PS-A2) */ 4496433f6eSDavid Howells 4596433f6eSDavid Howells #define EF_SSIZE (EF_SIZE - HWEF_SIZE) 4696433f6eSDavid Howells 4796433f6eSDavid Howells /* 4896433f6eSDavid Howells * Map register number into core file offset. 4996433f6eSDavid Howells */ 5096433f6eSDavid Howells #define CORE_REG(reg, ubase) \ 5196433f6eSDavid Howells (((unsigned long *)((unsigned long)(ubase)))[reg]) 5296433f6eSDavid Howells 5396433f6eSDavid Howells #endif /* __reg_h__ */ 54