Changeset 3ee8a075 in mainline
- 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
- Location:
- kernel
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r44bec47 r3ee8a075 53 53 54 54 SUNCC_CFLAGS = -I$(INCLUDES) -xO$(OPTIMIZATION) \ 55 -xnolib -xc99=all -xregs=no%float \ 56 -D__FUNCTION__=__func__ -features=extensions \ 55 -xnolib -xc99=all -features=extensions \ 57 56 -erroff=E_ZERO_SIZED_STRUCT_UNION 58 57 -
kernel/arch/amd64/src/interrupt.c
r44bec47 r3ee8a075 70 70 symbol = ""; 71 71 72 printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n",n, __ FUNCTION__);72 printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n",n, __func__); 73 73 printf("%%rip: %#llx (%s)\n",istate->rip, symbol); 74 74 printf("ERROR_WORD=%#llx\n", istate->error_word); -
kernel/arch/ia32/src/smp/mps.c
r44bec47 r3ee8a075 193 193 if (fs->config_type == 0 && fs->configuration_table) { 194 194 if (fs->mpfib2 >> 7) { 195 printf("%s: PIC mode not supported\n", __ FUNCTION__);195 printf("%s: PIC mode not supported\n", __func__); 196 196 return; 197 197 } … … 212 212 213 213 if (ct->signature != CT_SIGNATURE) { 214 printf("%s: bad ct->signature\n", __ FUNCTION__);214 printf("%s: bad ct->signature\n", __func__); 215 215 return 1; 216 216 } 217 217 if (!mps_ct_check()) { 218 printf("%s: bad ct checksum\n", __ FUNCTION__);218 printf("%s: bad ct checksum\n", __func__); 219 219 return 1; 220 220 } 221 221 if (ct->oem_table) { 222 printf("%s: ct->oem_table not supported\n", __ FUNCTION__);222 printf("%s: ct->oem_table not supported\n", __func__); 223 223 return 1; 224 224 } … … 275 275 */ 276 276 277 printf("%s: ct badness\n", __ FUNCTION__);277 printf("%s: ct badness\n", __func__); 278 278 return 1; 279 279 } … … 292 292 * Not yet implemented. 293 293 */ 294 printf("%s: not supported\n", __ FUNCTION__);294 printf("%s: not supported\n", __func__); 295 295 return 1; 296 296 } -
kernel/arch/ia32xen/src/smp/mps.c
r44bec47 r3ee8a075 195 195 if (fs->config_type == 0 && fs->configuration_table) { 196 196 if (fs->mpfib2 >> 7) { 197 printf("%s: PIC mode not supported\n", __ FUNCTION__);197 printf("%s: PIC mode not supported\n", __func__); 198 198 return; 199 199 } … … 214 214 215 215 if (ct->signature != CT_SIGNATURE) { 216 printf("%s: bad ct->signature\n", __ FUNCTION__);216 printf("%s: bad ct->signature\n", __func__); 217 217 return 1; 218 218 } 219 219 if (!mps_ct_check()) { 220 printf("%s: bad ct checksum\n", __ FUNCTION__);220 printf("%s: bad ct checksum\n", __func__); 221 221 return 1; 222 222 } 223 223 if (ct->oem_table) { 224 printf("%s: ct->oem_table not supported\n", __ FUNCTION__);224 printf("%s: ct->oem_table not supported\n", __func__); 225 225 return 1; 226 226 } … … 277 277 */ 278 278 279 printf("%s: ct badness\n", __ FUNCTION__);279 printf("%s: ct badness\n", __func__); 280 280 return 1; 281 281 } … … 294 294 * Not yet implemented. 295 295 */ 296 printf("%s: not supported\n", __ FUNCTION__);296 printf("%s: not supported\n", __func__); 297 297 return 1; 298 298 } -
kernel/arch/ia64/src/mm/tlb.c
r44bec47 r3ee8a075 471 471 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 472 472 fault_if_from_uspace(istate,"Page fault at %p",va); 473 panic("%s: va=%p, rid=%d, iip=%p\n", __ FUNCTION__, va, rid, istate->cr_iip);473 panic("%s: va=%p, rid=%d, iip=%p\n", __func__, va, rid, istate->cr_iip); 474 474 } 475 475 } … … 518 518 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 519 519 fault_if_from_uspace(istate,"Page fault at %p",va); 520 panic("%s: va=%p, rid=%d, iip=%p\n", __ FUNCTION__, va, rid, istate->cr_iip);520 panic("%s: va=%p, rid=%d, iip=%p\n", __func__, va, rid, istate->cr_iip); 521 521 } 522 522 } … … 532 532 void data_nested_tlb_fault(uint64_t vector, istate_t *istate) 533 533 { 534 panic("%s\n", __ FUNCTION__);534 panic("%s\n", __func__); 535 535 } 536 536 … … 564 564 if (as_page_fault(va, PF_ACCESS_WRITE, istate) == AS_PF_FAULT) { 565 565 fault_if_from_uspace(istate,"Page fault at %p",va); 566 panic("%s: va=%p, rid=%d, iip=%p\n", __ FUNCTION__, va, rid, istate->cr_iip);566 panic("%s: va=%p, rid=%d, iip=%p\n", __func__, va, rid, istate->cr_iip); 567 567 t->d = true; 568 568 dtc_pte_copy(t); … … 601 601 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 602 602 fault_if_from_uspace(istate,"Page fault at %p",va); 603 panic("%s: va=%p, rid=%d, iip=%p\n", __ FUNCTION__, va, rid, istate->cr_iip);603 panic("%s: va=%p, rid=%d, iip=%p\n", __func__, va, rid, istate->cr_iip); 604 604 t->a = true; 605 605 itc_pte_copy(t); … … 638 638 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 639 639 fault_if_from_uspace(istate,"Page fault at %p",va); 640 panic("%s: va=%p, rid=%d, iip=%p\n", __ FUNCTION__, va, rid, istate->cr_iip);640 panic("%s: va=%p, rid=%d, iip=%p\n", __func__, va, rid, istate->cr_iip); 641 641 t->a = true; 642 642 itc_pte_copy(t); … … 680 680 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 681 681 fault_if_from_uspace(istate,"Page fault at %p",va); 682 panic("%s: va=%p, rid=%d\n", __ FUNCTION__, va, rid);682 panic("%s: va=%p, rid=%d\n", __func__, va, rid); 683 683 } 684 684 } -
kernel/arch/sparc64/Makefile.inc
r44bec47 r3ee8a075 37 37 38 38 GCC_CFLAGS += -m64 -mcpu=ultrasparc 39 SUNCC_CFLAGS += -m64 -xarch=sparc -xregs=appl 39 SUNCC_CFLAGS += -m64 -xarch=sparc -xregs=appl,no%float 40 40 41 41 LFLAGS += -no-check-sections -N -
kernel/arch/sparc64/src/mm/tlb.c
r44bec47 r3ee8a075 226 226 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 227 227 do_fast_instruction_access_mmu_miss_fault(istate, 228 __ FUNCTION__);228 __func__); 229 229 } 230 230 } … … 254 254 /* NULL access in kernel */ 255 255 do_fast_data_access_mmu_miss_fault(istate, tag, 256 __ FUNCTION__);256 __func__); 257 257 } 258 258 do_fast_data_access_mmu_miss_fault(istate, tag, "Unexpected " … … 281 281 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 282 282 do_fast_data_access_mmu_miss_fault(istate, tag, 283 __ FUNCTION__);283 __func__); 284 284 } 285 285 } … … 327 327 if (as_page_fault(va, PF_ACCESS_WRITE, istate) == AS_PF_FAULT) { 328 328 do_fast_data_access_protection_fault(istate, tag, 329 __ FUNCTION__);329 __func__); 330 330 } 331 331 } -
kernel/arch/sparc64/src/smp/smp.c
r44bec47 r3ee8a075 101 101 if (waitq_sleep_timeout(&ap_completion_wq, 1000000, SYNCH_FLAGS_NONE) == ESYNCH_TIMEOUT) 102 102 printf("%s: waiting for processor (mid = %d) timed out\n", 103 __ FUNCTION__, mid);103 __func__, mid); 104 104 } 105 105 } -
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 -
kernel/generic/include/panic.h
r44bec47 r3ee8a075 37 37 38 38 #ifdef CONFIG_DEBUG 39 # define panic(format, ...) panic_printf("Kernel panic in %s() at %s on line %d: " format, __ FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__);39 # define panic(format, ...) panic_printf("Kernel panic in %s() at %s on line %d: " format, __func__, __FILE__, __LINE__, ##__VA_ARGS__); 40 40 #else 41 41 # define panic(format, ...) panic_printf("Kernel panic: " format, ##__VA_ARGS__); -
kernel/generic/include/synch/spinlock.h
r44bec47 r3ee8a075 113 113 printf("Deadlock probe %s: exceeded threshold %d\n", \ 114 114 "cpu%d: function=%s, line=%d\n", \ 115 #pname, (value), CPU->id, __ FUNCTION__, __LINE__); \115 #pname, (value), CPU->id, __func__, __LINE__); \ 116 116 } 117 117 #else -
kernel/generic/src/console/kconsole.c
r44bec47 r3ee8a075 412 412 413 413 if (!stdin) { 414 printf("%s: no stdin\n", __ FUNCTION__);414 printf("%s: no stdin\n", __func__); 415 415 return; 416 416 }
Note:
See TracChangeset
for help on using the changeset viewer.