Changeset 3ee8a075 in mainline for kernel/arch/sparc64/src/trap/exception.c
- Timestamp:
- 2007-06-06T20:25:51Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b781c0
- Parents:
- 44bec47
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/trap/exception.c
r44bec47 r3ee8a075 54 54 void instruction_access_exception(int n, istate_t *istate) 55 55 { 56 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);57 dump_istate(istate); 58 panic("%s\n", __ FUNCTION__);56 fault_if_from_uspace(istate, "%s\n", __func__); 57 dump_istate(istate); 58 panic("%s\n", __func__); 59 59 } 60 60 … … 62 62 void instruction_access_error(int n, istate_t *istate) 63 63 { 64 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);65 dump_istate(istate); 66 panic("%s\n", __ FUNCTION__);64 fault_if_from_uspace(istate, "%s\n", __func__); 65 dump_istate(istate); 66 panic("%s\n", __func__); 67 67 } 68 68 … … 70 70 void illegal_instruction(int n, istate_t *istate) 71 71 { 72 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);73 dump_istate(istate); 74 panic("%s\n", __ FUNCTION__);72 fault_if_from_uspace(istate, "%s\n", __func__); 73 dump_istate(istate); 74 panic("%s\n", __func__); 75 75 } 76 76 … … 78 78 void privileged_opcode(int n, istate_t *istate) 79 79 { 80 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);81 dump_istate(istate); 82 panic("%s\n", __ FUNCTION__);80 fault_if_from_uspace(istate, "%s\n", __func__); 81 dump_istate(istate); 82 panic("%s\n", __func__); 83 83 } 84 84 … … 86 86 void unimplemented_LDD(int n, istate_t *istate) 87 87 { 88 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);89 dump_istate(istate); 90 panic("%s\n", __ FUNCTION__);88 fault_if_from_uspace(istate, "%s\n", __func__); 89 dump_istate(istate); 90 panic("%s\n", __func__); 91 91 } 92 92 … … 94 94 void unimplemented_STD(int n, istate_t *istate) 95 95 { 96 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);97 dump_istate(istate); 98 panic("%s\n", __ FUNCTION__);96 fault_if_from_uspace(istate, "%s\n", __func__); 97 dump_istate(istate); 98 panic("%s\n", __func__); 99 99 } 100 100 … … 114 114 scheduler_fpu_lazy_request(); 115 115 #else 116 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);117 dump_istate(istate); 118 panic("%s\n", __ FUNCTION__);116 fault_if_from_uspace(istate, "%s\n", __func__); 117 dump_istate(istate); 118 panic("%s\n", __func__); 119 119 #endif 120 120 } … … 123 123 void fp_exception_ieee_754(int n, istate_t *istate) 124 124 { 125 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);126 dump_istate(istate); 127 panic("%s\n", __ FUNCTION__);125 fault_if_from_uspace(istate, "%s\n", __func__); 126 dump_istate(istate); 127 panic("%s\n", __func__); 128 128 } 129 129 … … 131 131 void fp_exception_other(int n, istate_t *istate) 132 132 { 133 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);134 dump_istate(istate); 135 panic("%s\n", __ FUNCTION__);133 fault_if_from_uspace(istate, "%s\n", __func__); 134 dump_istate(istate); 135 panic("%s\n", __func__); 136 136 } 137 137 … … 139 139 void tag_overflow(int n, istate_t *istate) 140 140 { 141 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);142 dump_istate(istate); 143 panic("%s\n", __ FUNCTION__);141 fault_if_from_uspace(istate, "%s\n", __func__); 142 dump_istate(istate); 143 panic("%s\n", __func__); 144 144 } 145 145 … … 147 147 void division_by_zero(int n, istate_t *istate) 148 148 { 149 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);150 dump_istate(istate); 151 panic("%s\n", __ FUNCTION__);149 fault_if_from_uspace(istate, "%s\n", __func__); 150 dump_istate(istate); 151 panic("%s\n", __func__); 152 152 } 153 153 … … 155 155 void data_access_exception(int n, istate_t *istate) 156 156 { 157 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);157 fault_if_from_uspace(istate, "%s\n", __func__); 158 158 dump_istate(istate); 159 159 dump_sfsr_and_sfar(); 160 panic("%s\n", __ FUNCTION__);160 panic("%s\n", __func__); 161 161 } 162 162 … … 164 164 void data_access_error(int n, istate_t *istate) 165 165 { 166 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);167 dump_istate(istate); 168 panic("%s\n", __ FUNCTION__);166 fault_if_from_uspace(istate, "%s\n", __func__); 167 dump_istate(istate); 168 panic("%s\n", __func__); 169 169 } 170 170 … … 172 172 void mem_address_not_aligned(int n, istate_t *istate) 173 173 { 174 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);175 dump_istate(istate); 176 panic("%s\n", __ FUNCTION__);174 fault_if_from_uspace(istate, "%s\n", __func__); 175 dump_istate(istate); 176 panic("%s\n", __func__); 177 177 } 178 178 … … 180 180 void LDDF_mem_address_not_aligned(int n, istate_t *istate) 181 181 { 182 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);183 dump_istate(istate); 184 panic("%s\n", __ FUNCTION__);182 fault_if_from_uspace(istate, "%s\n", __func__); 183 dump_istate(istate); 184 panic("%s\n", __func__); 185 185 } 186 186 … … 188 188 void STDF_mem_address_not_aligned(int n, istate_t *istate) 189 189 { 190 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);191 dump_istate(istate); 192 panic("%s\n", __ FUNCTION__);190 fault_if_from_uspace(istate, "%s\n", __func__); 191 dump_istate(istate); 192 panic("%s\n", __func__); 193 193 } 194 194 … … 196 196 void privileged_action(int n, istate_t *istate) 197 197 { 198 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);199 dump_istate(istate); 200 panic("%s\n", __ FUNCTION__);198 fault_if_from_uspace(istate, "%s\n", __func__); 199 dump_istate(istate); 200 panic("%s\n", __func__); 201 201 } 202 202 … … 204 204 void LDQF_mem_address_not_aligned(int n, istate_t *istate) 205 205 { 206 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);207 dump_istate(istate); 208 panic("%s\n", __ FUNCTION__);206 fault_if_from_uspace(istate, "%s\n", __func__); 207 dump_istate(istate); 208 panic("%s\n", __func__); 209 209 } 210 210 … … 212 212 void STQF_mem_address_not_aligned(int n, istate_t *istate) 213 213 { 214 fault_if_from_uspace(istate, "%s\n", __ FUNCTION__);215 dump_istate(istate); 216 panic("%s\n", __ FUNCTION__);214 fault_if_from_uspace(istate, "%s\n", __func__); 215 dump_istate(istate); 216 panic("%s\n", __func__); 217 217 } 218 218
Note:
See TracChangeset
for help on using the changeset viewer.