1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Various register offset definitions for debuggers, core file 4 * examiners and whatnot. 5 * 6 * Copyright (C) 1995, 1999 by Ralf Baechle 7 * Copyright (C) 1995, 1999 Silicon Graphics 8 */ 9 #ifndef __ASM_MIPS_REG_H 10 #define __ASM_MIPS_REG_H 11 12 #if defined(CONFIG_32BIT) || defined(WANT_COMPAT_REG_H) 13 14 #define EF_R0 6 15 #define EF_R1 7 16 #define EF_R2 8 17 #define EF_R3 9 18 #define EF_R4 10 19 #define EF_R5 11 20 #define EF_R6 12 21 #define EF_R7 13 22 #define EF_R8 14 23 #define EF_R9 15 24 #define EF_R10 16 25 #define EF_R11 17 26 #define EF_R12 18 27 #define EF_R13 19 28 #define EF_R14 20 29 #define EF_R15 21 30 #define EF_R16 22 31 #define EF_R17 23 32 #define EF_R18 24 33 #define EF_R19 25 34 #define EF_R20 26 35 #define EF_R21 27 36 #define EF_R22 28 37 #define EF_R23 29 38 #define EF_R24 30 39 #define EF_R25 31 40 41 /* 42 * k0/k1 unsaved 43 */ 44 #define EF_R26 32 45 #define EF_R27 33 46 47 #define EF_R28 34 48 #define EF_R29 35 49 #define EF_R30 36 50 #define EF_R31 37 51 52 /* 53 * Saved special registers 54 */ 55 #define EF_LO 38 56 #define EF_HI 39 57 58 #define EF_CP0_EPC 40 59 #define EF_CP0_BADVADDR 41 60 #define EF_CP0_STATUS 42 61 #define EF_CP0_CAUSE 43 62 #define EF_UNUSED0 44 63 64 #define EF_SIZE 180 65 66 #endif 67 68 #ifdef CONFIG_64BIT 69 70 #define EF_R0 0 71 #define EF_R1 1 72 #define EF_R2 2 73 #define EF_R3 3 74 #define EF_R4 4 75 #define EF_R5 5 76 #define EF_R6 6 77 #define EF_R7 7 78 #define EF_R8 8 79 #define EF_R9 9 80 #define EF_R10 10 81 #define EF_R11 11 82 #define EF_R12 12 83 #define EF_R13 13 84 #define EF_R14 14 85 #define EF_R15 15 86 #define EF_R16 16 87 #define EF_R17 17 88 #define EF_R18 18 89 #define EF_R19 19 90 #define EF_R20 20 91 #define EF_R21 21 92 #define EF_R22 22 93 #define EF_R23 23 94 #define EF_R24 24 95 #define EF_R25 25 96 97 /* 98 * k0/k1 unsaved 99 */ 100 #define EF_R26 26 101 #define EF_R27 27 102 103 #define EF_R28 28 104 #define EF_R29 29 105 #define EF_R30 30 106 #define EF_R31 31 107 108 /* 109 * Saved special registers 110 */ 111 #define EF_LO 32 112 #define EF_HI 33 113 114 #define EF_CP0_EPC 34 115 #define EF_CP0_BADVADDR 35 116 #define EF_CP0_STATUS 36 117 #define EF_CP0_CAUSE 37 118 119 #define EF_SIZE 304 /* size in bytes */ 120 121 #endif /* CONFIG_64BIT */ 122 123 #endif /* __ASM_MIPS_REG_H */ 124