Changeset f651e80 in mainline
- Timestamp:
- 2009-01-08T12:07:38Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7447572
- Parents:
- c571f42
- Location:
- kernel
- Files:
-
- 61 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/interrupt.c
rc571f42 rf651e80 95 95 eoi_function(); 96 96 else 97 panic(" no eoi_function\n");97 panic("No eoi_function."); 98 98 99 99 } … … 101 101 static void null_interrupt(int n, istate_t *istate) 102 102 { 103 fault_if_from_uspace(istate, "Unserviced interrupt: %d ", n);103 fault_if_from_uspace(istate, "Unserviced interrupt: %d.", n); 104 104 decode_istate(n, istate); 105 panic("Unserviced interrupt \n");105 panic("Unserviced interrupt."); 106 106 } 107 107 … … 127 127 return; 128 128 } 129 fault_if_from_uspace(istate, "General protection fault ");129 fault_if_from_uspace(istate, "General protection fault."); 130 130 } 131 131 132 132 decode_istate(n, istate); 133 panic("General protection fault \n");133 panic("General protection fault."); 134 134 } 135 135 136 136 static void ss_fault(int n, istate_t *istate) 137 137 { 138 fault_if_from_uspace(istate, "Stack fault ");138 fault_if_from_uspace(istate, "Stack fault."); 139 139 decode_istate(n, istate); 140 panic("Stack fault \n");140 panic("Stack fault."); 141 141 } 142 142 … … 146 146 scheduler_fpu_lazy_request(); 147 147 #else 148 fault_if_from_uspace(istate, "FPU fault ");149 panic("FPU fault ");148 fault_if_from_uspace(istate, "FPU fault."); 149 panic("FPU fault."); 150 150 #endif 151 151 } … … 222 222 enable_irqs_function(irqmask); 223 223 else 224 panic(" no enable_irqs_function\n");224 panic("No enable_irqs_function."); 225 225 } 226 226 … … 230 230 disable_irqs_function(irqmask); 231 231 else 232 panic(" no disable_irqs_function\n");232 panic("No disable_irqs_function."); 233 233 } 234 234 -
kernel/arch/amd64/src/mm/page.c
rc571f42 rf651e80 181 181 182 182 if (istate->error_word & PFERR_CODE_RSVD) 183 panic("Reserved bit set in page table entry. \n");183 panic("Reserved bit set in page table entry."); 184 184 185 185 if (istate->error_word & PFERR_CODE_RW) … … 191 191 192 192 if (as_page_fault(page, access, istate) == AS_PF_FAULT) { 193 fault_if_from_uspace(istate, "Page fault: %#x ", page);193 fault_if_from_uspace(istate, "Page fault: %#x.", page); 194 194 195 195 decode_istate(n, istate); 196 printf("Page fault address: %llx \n", page);197 panic("Page fault \n");196 printf("Page fault address: %llx.\n", page); 197 panic("Page fault."); 198 198 } 199 199 } … … 203 203 { 204 204 if (last_frame + ALIGN_UP(size, PAGE_SIZE) > KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) 205 panic("Unable to map physical memory %p (%d bytes) ", physaddr, size)205 panic("Unable to map physical memory %p (%d bytes).", physaddr, size) 206 206 207 207 uintptr_t virtaddr = PA2KA(last_frame); -
kernel/arch/amd64/src/pm.c
rc571f42 rf651e80 210 210 tss_p = (struct tss *) malloc(sizeof(tss_t), FRAME_ATOMIC); 211 211 if (!tss_p) 212 panic(" could not allocate TSS\n");212 panic("Cannot allocate TSS."); 213 213 } 214 214 -
kernel/arch/arm32/src/mm/page.c
rc571f42 rf651e80 91 91 if (last_frame + ALIGN_UP(size, PAGE_SIZE) > 92 92 KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) { 93 panic("Unable to map physical memory %p (%d bytes) ",93 panic("Unable to map physical memory %p (%d bytes).", 94 94 physaddr, size) 95 95 } -
kernel/arch/arm32/src/mm/page_fault.c
rc571f42 rf651e80 143 143 /* undefined instructions */ 144 144 if (instr.condition == 0xf) { 145 panic("page_fault - instruction does n't access memory "146 "(instr_code: %x, badvaddr:%x) ", instr, badvaddr);145 panic("page_fault - instruction does not access memory " 146 "(instr_code: %x, badvaddr:%x).", instr, badvaddr); 147 147 return PF_ACCESS_EXEC; 148 148 } … … 163 163 164 164 panic("page_fault - instruction doesn't access memory " 165 "(instr_code: %x, badvaddr:%x) ", instr, badvaddr);165 "(instr_code: %x, badvaddr:%x).", instr, badvaddr); 166 166 167 167 return PF_ACCESS_EXEC; … … 189 189 access); 190 190 191 fault_if_from_uspace(istate, "Page fault: %#x ", badvaddr);192 panic("Page fault \n");191 fault_if_from_uspace(istate, "Page fault: %#x.", badvaddr); 192 panic("Page fault."); 193 193 } 194 194 } … … 206 206 dprintf("prefetch_abort\n"); 207 207 print_istate(istate); 208 panic("page fault - prefetch_abort at address: %x \n",208 panic("page fault - prefetch_abort at address: %x.", 209 209 istate->pc); 210 210 } -
kernel/arch/ia32/src/drivers/vesa.c
rc571f42 rf651e80 84 84 break; 85 85 default: 86 panic("Unsupported bits per pixel ");86 panic("Unsupported bits per pixel."); 87 87 } 88 88 -
kernel/arch/ia32/src/interrupt.c
rc571f42 rf651e80 90 90 eoi_function(); 91 91 else 92 panic(" no eoi_function\n");92 panic("No eoi_function."); 93 93 94 94 } … … 96 96 static void null_interrupt(int n, istate_t *istate) 97 97 { 98 fault_if_from_uspace(istate, "Unserviced interrupt: %d ", n);99 100 decode_istate(istate); 101 panic("Unserviced interrupt: %d \n", n);98 fault_if_from_uspace(istate, "Unserviced interrupt: %d.", n); 99 100 decode_istate(istate); 101 panic("Unserviced interrupt: %d.", n); 102 102 } 103 103 … … 123 123 return; 124 124 } 125 fault_if_from_uspace(istate, "General protection fault ");125 fault_if_from_uspace(istate, "General protection fault."); 126 126 } 127 127 128 128 decode_istate(istate); 129 panic("General protection fault \n");129 panic("General protection fault."); 130 130 } 131 131 132 132 static void ss_fault(int n __attribute__((unused)), istate_t *istate) 133 133 { 134 fault_if_from_uspace(istate, "Stack fault ");135 136 decode_istate(istate); 137 panic("Stack fault \n");134 fault_if_from_uspace(istate, "Stack fault."); 135 136 decode_istate(istate); 137 panic("Stack fault."); 138 138 } 139 139 … … 145 145 : "=m" (mxcsr) 146 146 ); 147 fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx ",147 fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx.", 148 148 (unative_t) mxcsr); 149 149 150 150 decode_istate(istate); 151 151 printf("MXCSR: %#lx\n", mxcsr); 152 panic("SIMD FP exception(19) \n");152 panic("SIMD FP exception(19)."); 153 153 } 154 154 … … 158 158 scheduler_fpu_lazy_request(); 159 159 #else 160 fault_if_from_uspace(istate, "FPU fault ");161 panic("FPU fault ");160 fault_if_from_uspace(istate, "FPU fault."); 161 panic("FPU fault."); 162 162 #endif 163 163 } … … 234 234 enable_irqs_function(irqmask); 235 235 else 236 panic(" no enable_irqs_function\n");236 panic("No enable_irqs_function."); 237 237 } 238 238 … … 242 242 disable_irqs_function(irqmask); 243 243 else 244 panic(" no disable_irqs_function\n");244 panic("No disable_irqs_function."); 245 245 } 246 246 -
kernel/arch/ia32/src/mm/page.c
rc571f42 rf651e80 80 80 { 81 81 if (last_frame + ALIGN_UP(size, PAGE_SIZE) > KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) 82 panic("Unable to map physical memory %p (%d bytes) ", physaddr, size)82 panic("Unable to map physical memory %p (%d bytes).", physaddr, size) 83 83 84 84 uintptr_t virtaddr = PA2KA(last_frame); … … 102 102 103 103 if (istate->error_word & PFERR_CODE_RSVD) 104 panic("Reserved bit set in page directory. \n");104 panic("Reserved bit set in page directory."); 105 105 106 106 if (istate->error_word & PFERR_CODE_RW) … … 110 110 111 111 if (as_page_fault(page, access, istate) == AS_PF_FAULT) { 112 fault_if_from_uspace(istate, "Page fault: %#x ", page);112 fault_if_from_uspace(istate, "Page fault: %#x.", page); 113 113 114 114 decode_istate(istate); 115 115 printf("page fault address: %#lx\n", page); 116 panic(" page fault\n");116 panic("Page fault."); 117 117 } 118 118 } -
kernel/arch/ia32/src/pm.c
rc571f42 rf651e80 199 199 tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC); 200 200 if (!tss_p) 201 panic(" could not allocate TSS\n");201 panic("Cannot allocate TSS."); 202 202 } 203 203 -
kernel/arch/ia32/src/smp/smp.c
rc571f42 rf651e80 76 76 FRAME_ATOMIC | FRAME_KA); 77 77 if (!l_apic_address) 78 panic(" cannot allocate address for l_apic\n");78 panic("Cannot allocate address for l_apic."); 79 79 80 80 io_apic_address = (uintptr_t) frame_alloc(ONE_FRAME, 81 81 FRAME_ATOMIC | FRAME_KA); 82 82 if (!io_apic_address) 83 panic(" cannot allocate address for io_apic\n");83 panic("Cannot allocate address for io_apic."); 84 84 85 85 if (config.cpu_count > 1) { … … 158 158 sizeof(struct descriptor), FRAME_ATOMIC | FRAME_LOW_4_GiB); 159 159 if (!gdt_new) 160 panic(" couldn't allocate memory for GDT\n");160 panic("Cannot allocate memory for GDT."); 161 161 162 162 memcpy(gdt_new, gdt, GDT_ITEMS * sizeof(struct descriptor)); -
kernel/arch/ia32xen/src/interrupt.c
rc571f42 rf651e80 89 89 eoi_function(); 90 90 else 91 panic(" no eoi_function\n");91 panic("No eoi_function."); 92 92 93 93 } … … 95 95 static void null_interrupt(int n, istate_t *istate) 96 96 { 97 fault_if_from_uspace(istate, "Unserviced interrupt: %d ", n);98 99 decode_istate(istate); 100 panic("Unserviced interrupt: %d \n", n);97 fault_if_from_uspace(istate, "Unserviced interrupt: %d.", n); 98 99 decode_istate(istate); 100 panic("Unserviced interrupt: %d.", n); 101 101 } 102 102 … … 122 122 return; 123 123 } 124 fault_if_from_uspace(istate, "General protection fault ");124 fault_if_from_uspace(istate, "General protection fault."); 125 125 } 126 126 127 127 decode_istate(istate); 128 panic("General protection fault \n");128 panic("General protection fault."); 129 129 } 130 130 131 131 static void ss_fault(int n, istate_t *istate) 132 132 { 133 fault_if_from_uspace(istate, "Stack fault ");134 135 decode_istate(istate); 136 panic("Stack fault \n");133 fault_if_from_uspace(istate, "Stack fault."); 134 135 decode_istate(istate); 136 panic("Stack fault."); 137 137 } 138 138 … … 145 145 :"=m"(mxcsr) 146 146 ); 147 fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx ",147 fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx.", 148 148 (unative_t)mxcsr); 149 149 150 150 decode_istate(istate); 151 151 printf("MXCSR: %#zx\n",(unative_t)(mxcsr)); 152 panic("SIMD FP exception(19) \n");152 panic("SIMD FP exception(19)."); 153 153 } 154 154 … … 158 158 scheduler_fpu_lazy_request(); 159 159 #else 160 fault_if_from_uspace(istate, "FPU fault ");161 panic("FPU fault ");160 fault_if_from_uspace(istate, "FPU fault."); 161 panic("FPU fault."); 162 162 #endif 163 163 } … … 234 234 enable_irqs_function(irqmask); 235 235 else 236 panic(" no enable_irqs_function\n");236 panic("No enable_irqs_function."); 237 237 } 238 238 … … 242 242 disable_irqs_function(irqmask); 243 243 else 244 panic(" no disable_irqs_function\n");244 panic("No disable_irqs_function."); 245 245 } 246 246 -
kernel/arch/ia32xen/src/mm/page.c
rc571f42 rf651e80 67 67 68 68 if (istate->error_word & PFERR_CODE_RSVD) 69 panic("Reserved bit set in page directory. \n");69 panic("Reserved bit set in page directory."); 70 70 71 71 if (istate->error_word & PFERR_CODE_RW) … … 75 75 76 76 if (as_page_fault(page, access, istate) == AS_PF_FAULT) { 77 fault_if_from_uspace(istate, "Page fault: %#x ", page);77 fault_if_from_uspace(istate, "Page fault: %#x.", page); 78 78 79 79 decode_istate(istate); 80 printf("Page fault address: %#x \n", page);81 panic("Page fault \n");80 printf("Page fault address: %#x.\n", page); 81 panic("Page fault."); 82 82 } 83 83 } -
kernel/arch/ia32xen/src/pm.c
rc571f42 rf651e80 169 169 tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC); 170 170 if (!tss_p) 171 panic(" could not allocate TSS\n");171 panic("Cannot allocate TSS."); 172 172 } 173 173 -
kernel/arch/ia32xen/src/smp/smp.c
rc571f42 rf651e80 73 73 l_apic_address = (uintptr_t) frame_alloc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA); 74 74 if (!l_apic_address) 75 panic(" cannot allocate address for l_apic\n");75 panic("Cannot allocate address for l_apic."); 76 76 77 77 io_apic_address = (uintptr_t) frame_alloc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA); 78 78 if (!io_apic_address) 79 panic(" cannot allocate address for io_apic\n");79 panic("Cannot allocate address for io_apic."); 80 80 81 81 if (config.cpu_count > 1) { … … 144 144 */ 145 145 if (!(gdt_new = (struct descriptor *) malloc(GDT_ITEMS * sizeof(struct descriptor), FRAME_ATOMIC))) 146 panic(" couldn't allocate memory for GDT\n");146 panic("Cannot allocate memory for GDT."); 147 147 148 148 memcpy(gdt_new, gdt, GDT_ITEMS * sizeof(struct descriptor)); -
kernel/arch/ia64/src/ia64.c
rc571f42 rf651e80 180 180 t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", true); 181 181 if (!t) 182 panic(" cannot create kkbdpoll\n");182 panic("Cannot create kkbdpoll."); 183 183 thread_ready(t); 184 184 #endif … … 195 195 t = thread_create(i8042_kkbdpoll, NULL, TASK, 0, "kkbdpoll", true); 196 196 if (!t) 197 panic(" cannot create kkbdpoll\n");197 panic("Cannot create kkbdpoll."); 198 198 thread_ready(t); 199 199 #endif -
kernel/arch/ia64/src/interrupt.c
rc571f42 rf651e80 187 187 } 188 188 189 fault_if_from_uspace(istate, "General Exception (%s) ", desc);189 fault_if_from_uspace(istate, "General Exception (%s).", desc); 190 190 191 191 dump_interrupted_context(istate); 192 panic("General Exception (%s) \n", desc);192 panic("General Exception (%s).", desc); 193 193 } 194 194 … … 198 198 scheduler_fpu_lazy_request(); 199 199 #else 200 fault_if_from_uspace(istate, "Interruption: %#hx (%s) ",200 fault_if_from_uspace(istate, "Interruption: %#hx (%s).", 201 201 (uint16_t) vector, vector_to_string(vector)); 202 202 dump_interrupted_context(istate); 203 panic("Interruption: %#hx (%s) \n", (uint16_t) vector,203 panic("Interruption: %#hx (%s).", (uint16_t) vector, 204 204 vector_to_string(vector)); 205 205 #endif … … 229 229 void universal_handler(uint64_t vector, istate_t *istate) 230 230 { 231 fault_if_from_uspace(istate, "Interruption: %#hx (%s) ",231 fault_if_from_uspace(istate, "Interruption: %#hx (%s).", 232 232 (uint16_t) vector, vector_to_string(vector)); 233 233 dump_interrupted_context(istate); 234 panic("Interruption: %#hx (%s) \n", (uint16_t) vector,234 panic("Interruption: %#hx (%s).", (uint16_t) vector, 235 235 vector_to_string(vector)); 236 236 } … … 270 270 spinlock_unlock(&irq->lock); 271 271 } else { 272 panic(" \nUnhandled Internal Timer Interrupt (%d)\n",272 panic("Unhandled Internal Timer Interrupt (%d).", 273 273 ivr.vector); 274 274 } -
kernel/arch/ia64/src/mm/tlb.c
rc571f42 rf651e80 473 473 page_table_unlock(AS, true); 474 474 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 475 fault_if_from_uspace(istate,"Page fault at %p ",va);476 panic("%s: va=%p, rid=%d, iip=%p \n", __func__, va, rid,475 fault_if_from_uspace(istate,"Page fault at %p.",va); 476 panic("%s: va=%p, rid=%d, iip=%p.", __func__, va, rid, 477 477 istate->cr_iip); 478 478 } … … 532 532 } else { 533 533 fault_if_from_uspace(istate, 534 "IO access fault at %p ", va);534 "IO access fault at %p.", va); 535 535 } 536 536 } … … 584 584 */ 585 585 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 586 fault_if_from_uspace(istate,"Page fault at %p ",va);587 panic("%s: va=%p, rid=%d, iip=%p \n", __func__, va, rid,586 fault_if_from_uspace(istate,"Page fault at %p.",va); 587 panic("%s: va=%p, rid=%d, iip=%p.", __func__, va, rid, 588 588 istate->cr_iip); 589 589 } … … 600 600 void data_nested_tlb_fault(uint64_t vector, istate_t *istate) 601 601 { 602 panic("%s \n", __func__);602 panic("%s.", __func__); 603 603 } 604 604 … … 631 631 } else { 632 632 if (as_page_fault(va, PF_ACCESS_WRITE, istate) == AS_PF_FAULT) { 633 fault_if_from_uspace(istate,"Page fault at %p ",va);634 panic("%s: va=%p, rid=%d, iip=%p \n", __func__, va, rid,633 fault_if_from_uspace(istate,"Page fault at %p.",va); 634 panic("%s: va=%p, rid=%d, iip=%p.", __func__, va, rid, 635 635 istate->cr_iip); 636 636 } … … 667 667 } else { 668 668 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 669 fault_if_from_uspace(istate, "Page fault at %p ", va);670 panic("%s: va=%p, rid=%d, iip=%p \n", __func__, va, rid,669 fault_if_from_uspace(istate, "Page fault at %p.", va); 670 panic("%s: va=%p, rid=%d, iip=%p.", __func__, va, rid, 671 671 istate->cr_iip); 672 672 } … … 703 703 } else { 704 704 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 705 fault_if_from_uspace(istate, "Page fault at %p ", va);706 panic("%s: va=%p, rid=%d, iip=%p \n", __func__, va, rid,705 fault_if_from_uspace(istate, "Page fault at %p.", va); 706 panic("%s: va=%p, rid=%d, iip=%p.", __func__, va, rid, 707 707 istate->cr_iip); 708 708 } … … 744 744 page_table_unlock(AS, true); 745 745 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 746 fault_if_from_uspace(istate, "Page fault at %p ", va);747 panic("%s: va=%p, rid=%d \n", __func__, va, rid);746 fault_if_from_uspace(istate, "Page fault at %p.", va); 747 panic("%s: va=%p, rid=%d.", __func__, va, rid); 748 748 } 749 749 } -
kernel/arch/mips32/src/cache.c
rc571f42 rf651e80 39 39 void cache_error(istate_t *istate) 40 40 { 41 panic("cache_error exception (epc=%p) \n", istate->epc);41 panic("cache_error exception (epc=%p).", istate->epc); 42 42 } 43 43 -
kernel/arch/mips32/src/debugger.c
rc571f42 rf651e80 317 317 /* test branch delay slot */ 318 318 if (cp0_cause_read() & 0x80000000) 319 panic("Breakpoint in branch delay slot not supported. \n");319 panic("Breakpoint in branch delay slot not supported."); 320 320 321 321 spinlock_lock(&bkpoint_lock); -
kernel/arch/mips32/src/exception.c
rc571f42 rf651e80 89 89 static void unhandled_exception(int n, istate_t *istate) 90 90 { 91 fault_if_from_uspace(istate, "Unhandled exception %s ", exctable[n]);91 fault_if_from_uspace(istate, "Unhandled exception %s.", exctable[n]); 92 92 93 93 print_regdump(istate); 94 panic("Unhandled exception %s. \n", exctable[n]);94 panic("Unhandled exception %s.", exctable[n]); 95 95 } 96 96 … … 133 133 scheduler_fpu_lazy_request(); 134 134 else { 135 fault_if_from_uspace(istate, "Unhandled Coprocessor Unusable Exception ");136 panic("Unhandled Coprocessor Unusable Exception. \n");135 fault_if_from_uspace(istate, "Unhandled Coprocessor Unusable Exception."); 136 panic("Unhandled Coprocessor Unusable Exception."); 137 137 } 138 138 } … … 171 171 static void syscall_exception(int n, istate_t *istate) 172 172 { 173 panic("Syscall is handled through shortcut ");173 panic("Syscall is handled through shortcut."); 174 174 } 175 175 -
kernel/arch/mips32/src/mm/tlb.c
rc571f42 rf651e80 116 116 return; 117 117 default: 118 panic(" unexpected pfrc (%d)\n", pfrc);118 panic("Unexpected pfrc (%d).", pfrc); 119 119 } 120 120 } … … 200 200 return; 201 201 default: 202 panic(" unexpected pfrc (%d)\n", pfrc);202 panic("Unexpected pfrc (%d).", pfrc); 203 203 } 204 204 } … … 283 283 return; 284 284 default: 285 panic(" unexpected pfrc (%d)\n", pfrc);285 panic("Unexpected pfrc (%d).", pfrc); 286 286 } 287 287 } … … 331 331 sym2 = s; 332 332 333 fault_if_from_uspace(istate, "TLB Refill Exception on %p ",333 fault_if_from_uspace(istate, "TLB Refill Exception on %p.", 334 334 cp0_badvaddr_read()); 335 panic("%x: TLB Refill Exception at %x(%s<-%s). \n", cp0_badvaddr_read(),335 panic("%x: TLB Refill Exception at %x(%s<-%s).", cp0_badvaddr_read(), 336 336 istate->epc, symbol, sym2); 337 337 } … … 345 345 if (s) 346 346 symbol = s; 347 fault_if_from_uspace(istate, "TLB Invalid Exception on %p ",347 fault_if_from_uspace(istate, "TLB Invalid Exception on %p.", 348 348 cp0_badvaddr_read()); 349 panic("%x: TLB Invalid Exception at %x(%s). \n", cp0_badvaddr_read(),349 panic("%x: TLB Invalid Exception at %x(%s).", cp0_badvaddr_read(), 350 350 istate->epc, symbol); 351 351 } … … 358 358 if (s) 359 359 symbol = s; 360 fault_if_from_uspace(istate, "TLB Modified Exception on %p ",360 fault_if_from_uspace(istate, "TLB Modified Exception on %p.", 361 361 cp0_badvaddr_read()); 362 panic("%x: TLB Modified Exception at %x(%s). \n", cp0_badvaddr_read(),362 panic("%x: TLB Modified Exception at %x(%s).", cp0_badvaddr_read(), 363 363 istate->epc, symbol); 364 364 } … … 434 434 break; 435 435 default: 436 panic(" unexpected rc (%d)\n", rc);436 panic("Unexpected rc (%d).", rc); 437 437 } 438 438 -
kernel/arch/ppc32/src/mm/page.c
rc571f42 rf651e80 50 50 if (last_frame + ALIGN_UP(size, PAGE_SIZE) > 51 51 KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) 52 panic("Unable to map physical memory %p (%" PRIs " bytes) ",52 panic("Unable to map physical memory %p (%" PRIs " bytes).", 53 53 physaddr, size) 54 54 -
kernel/arch/ppc32/src/mm/tlb.c
rc571f42 rf651e80 101 101 return NULL; 102 102 default: 103 panic(" unexpected rc (%d)\n", rc);103 panic("Unexpected rc (%d).", rc); 104 104 } 105 105 } … … 120 120 121 121 fault_if_from_uspace(istate, 122 "%p: PHT Refill Exception at %p (%s<-%s) ", badvaddr,122 "%p: PHT Refill Exception at %p (%s<-%s).", badvaddr, 123 123 istate->pc, symbol, sym2); 124 panic("%p: PHT Refill Exception at %p (%s<-%s) \n", badvaddr,124 panic("%p: PHT Refill Exception at %p (%s<-%s).", badvaddr, 125 125 istate->pc, symbol, sym2); 126 126 } … … 315 315 return; 316 316 default: 317 panic("Unexpected pfrc (%d) \n", pfrc);317 panic("Unexpected pfrc (%d).", pfrc); 318 318 } 319 319 } -
kernel/arch/ppc32/src/ppc32.c
rc571f42 rf651e80 93 93 break; 94 94 default: 95 panic("Unsupported bits per pixel ");95 panic("Unsupported bits per pixel."); 96 96 } 97 97 fb_properties_t prop = { -
kernel/arch/ppc64/include/exception.h
rc571f42 rf651e80 88 88 static inline int istate_from_uspace(istate_t *istate) 89 89 { 90 panic("istate_from_uspace not yet implemented ");90 panic("istate_from_uspace not yet implemented."); 91 91 return 0; 92 92 } -
kernel/arch/ppc64/src/mm/page.c
rc571f42 rf651e80 107 107 return NULL; 108 108 default: 109 panic(" unexpected rc (%d)\n", rc);109 panic("Unexpected rc (%d).", rc); 110 110 } 111 111 } … … 124 124 if (s) 125 125 sym2 = s; 126 panic("%p: PHT Refill Exception at %p (%s<-%s) \n", badvaddr, istate->pc, symbol, sym2);126 panic("%p: PHT Refill Exception at %p (%s<-%s).", badvaddr, istate->pc, symbol, sym2); 127 127 } 128 128 … … 234 234 return; 235 235 default: 236 panic("Unexpected pfrc (%d) \n", pfrc);236 panic("Unexpected pfrc (%d).", pfrc); 237 237 } 238 238 } … … 289 289 { 290 290 if (last_frame + ALIGN_UP(size, PAGE_SIZE) > KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) 291 panic("Unable to map physical memory %p (%" PRIs " bytes) ", physaddr, size)291 panic("Unable to map physical memory %p (%" PRIs " bytes).", physaddr, size) 292 292 293 293 uintptr_t virtaddr = PA2KA(last_frame); -
kernel/arch/ppc64/src/ppc64.c
rc571f42 rf651e80 86 86 break; 87 87 default: 88 panic("Unsupported bits per pixel ");88 panic("Unsupported bits per pixel."); 89 89 } 90 90 fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.scanline, visual); -
kernel/arch/sparc64/src/console.c
rc571f42 rf651e80 78 78 prop = ofw_tree_getprop(aliases, "screen"); 79 79 if (!prop) 80 panic("Can 't find property \"screen\".\n");80 panic("Cannot find property 'screen'."); 81 81 if (!prop->value) 82 panic("Can 't find screen alias.\n");82 panic("Cannot find screen alias."); 83 83 screen = ofw_tree_lookup(prop->value); 84 84 if (!screen) 85 panic("Can 't find %s\n", prop->value);85 panic("Cannot find %s.", prop->value); 86 86 87 87 scr_init(screen); … … 89 89 prop = ofw_tree_getprop(aliases, "keyboard"); 90 90 if (!prop) 91 panic("Can 't find property \"keyboard\".\n");91 panic("Cannot find property 'keyboard'."); 92 92 if (!prop->value) 93 panic("Can 't find keyboard alias.\n");93 panic("Cannot find keyboard alias."); 94 94 keyboard = ofw_tree_lookup(prop->value); 95 95 if (!keyboard) 96 panic("Can 't find %s\n", prop->value);96 panic("Cannot find %s.", prop->value); 97 97 98 98 kbd_init(keyboard); … … 116 116 aliases = ofw_tree_lookup("/aliases"); 117 117 if (!aliases) 118 panic("Can 't find /aliases.\n");118 panic("Cannot find '/aliases'."); 119 119 120 120 /* "def-cn" = "default console" */ -
kernel/arch/sparc64/src/drivers/fhc.c
rc571f42 rf651e80 97 97 break; 98 98 default: 99 panic("Unexpected INR (%d) \n", inr);99 panic("Unexpected INR (%d).", inr); 100 100 break; 101 101 } … … 112 112 break; 113 113 default: 114 panic("Unexpected INR (%d) \n", inr);114 panic("Unexpected INR (%d).", inr); 115 115 break; 116 116 } -
kernel/arch/sparc64/src/drivers/kbd.c
rc571f42 rf651e80 88 88 prop = ofw_tree_getprop(node, "interrupts"); 89 89 if ((!prop) || (!prop->value)) 90 panic("Can 't find \"interrupts\" property.\n");90 panic("Cannot find 'interrupt' property."); 91 91 interrupts = *((uint32_t *) prop->value); 92 92 … … 96 96 prop = ofw_tree_getprop(node, "reg"); 97 97 if ((!prop) || (!prop->value)) 98 panic("Can 't find \"reg\" property.\n");98 panic("Cannot find 'reg' property."); 99 99 100 100 uintptr_t pa; … … 134 134 135 135 default: 136 panic("Unexpected keyboard type. \n");136 panic("Unexpected keyboard type."); 137 137 } 138 138 -
kernel/arch/sparc64/src/drivers/scr.c
rc571f42 rf651e80 105 105 prop = ofw_tree_getprop(node, "reg"); 106 106 if (!prop) 107 panic("Can 't find \"reg\" property.\n");107 panic("Cannot find 'reg' property."); 108 108 109 109 switch (scr_type) { … … 224 224 break; 225 225 default: 226 panic("Unexpected type. \n");226 panic("Unexpected type."); 227 227 } 228 228 -
kernel/arch/sparc64/src/drivers/sgcn.c
rc571f42 rf651e80 200 200 chosen = ofw_tree_lookup("/chosen"); 201 201 if (!chosen) 202 panic("Can 't find /chosen.\n");202 panic("Cannot find '/chosen'."); 203 203 204 204 iosram_toc = ofw_tree_getprop(chosen, "iosram-toc"); 205 205 if (!iosram_toc) 206 panic("Can 't find property \"iosram-toc\".\n");206 panic("Cannot find property 'iosram-toc'."); 207 207 if (!iosram_toc->value) 208 panic("Can 't find SRAM TOC.\n");208 panic("Cannot find SRAM TOC."); 209 209 210 210 sram_begin_physical = SBBC_START + SBBC_SRAM_OFFSET … … 329 329 static void sgcn_irq_handler(irq_t *irq, void *arg, ...) 330 330 { 331 panic("Not yet implemented, SGCN works in polled mode. \n");331 panic("Not yet implemented, SGCN works in polled mode."); 332 332 } 333 333 -
kernel/arch/sparc64/src/mm/tlb.c
rc571f42 rf651e80 425 425 const char *str) 426 426 { 427 fault_if_from_uspace(istate, "%s ", str);427 fault_if_from_uspace(istate, "%s.", str); 428 428 dump_istate(istate); 429 panic("%s \n", str);429 panic("%s.", str); 430 430 } 431 431 … … 437 437 va = tag.vpn << MMU_PAGE_WIDTH; 438 438 if (tag.context) { 439 fault_if_from_uspace(istate, "%s, Page=%p (ASID=%d) ", str, va,439 fault_if_from_uspace(istate, "%s, Page=%p (ASID=%d).", str, va, 440 440 tag.context); 441 441 } 442 442 dump_istate(istate); 443 printf("Faulting page: %p, ASID=%d \n", va, tag.context);444 panic("%s \n", str);443 printf("Faulting page: %p, ASID=%d.\n", va, tag.context); 444 panic("%s.", str); 445 445 } 446 446 … … 453 453 454 454 if (tag.context) { 455 fault_if_from_uspace(istate, "%s, Page=%p (ASID=%d) ", str, va,455 fault_if_from_uspace(istate, "%s, Page=%p (ASID=%d).", str, va, 456 456 tag.context); 457 457 } 458 458 printf("Faulting page: %p, ASID=%d\n", va, tag.context); 459 459 dump_istate(istate); 460 panic("%s \n", str);460 panic("%s.", str); 461 461 } 462 462 -
kernel/arch/sparc64/src/smp/ipi.c
rc571f42 rf651e80 99 99 status = asi_u64_read(ASI_INTR_DISPATCH_STATUS, 0); 100 100 if (status & INTR_DISPATCH_STATUS_BUSY) 101 panic("Interrupt Dispatch Status busy bit set \n");101 panic("Interrupt Dispatch Status busy bit set."); 102 102 103 103 ASSERT(!(pstate_read() & PSTATE_IE_BIT)); … … 152 152 break; 153 153 default: 154 panic("Unknown IPI (%d). \n", ipi);154 panic("Unknown IPI (%d).", ipi); 155 155 break; 156 156 } -
kernel/arch/sparc64/src/sparc64.c
rc571f42 rf651e80 111 111 t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", true); 112 112 if (!t) 113 panic(" cannot create kkbdpoll\n");113 panic("Cannot create kkbdpoll."); 114 114 thread_ready(t); 115 115 } -
kernel/arch/sparc64/src/trap/exception.c
rc571f42 rf651e80 54 54 void instruction_access_exception(int n, istate_t *istate) 55 55 { 56 fault_if_from_uspace(istate, "%s ", __func__);57 dump_istate(istate); 58 panic("%s \n", __func__);56 fault_if_from_uspace(istate, "%s.", __func__); 57 dump_istate(istate); 58 panic("%s.", __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 ", __func__);65 dump_istate(istate); 66 panic("%s \n", __func__);64 fault_if_from_uspace(istate, "%s.", __func__); 65 dump_istate(istate); 66 panic("%s.", __func__); 67 67 } 68 68 … … 70 70 void illegal_instruction(int n, istate_t *istate) 71 71 { 72 fault_if_from_uspace(istate, "%s ", __func__);73 dump_istate(istate); 74 panic("%s \n", __func__);72 fault_if_from_uspace(istate, "%s.", __func__); 73 dump_istate(istate); 74 panic("%s.", __func__); 75 75 } 76 76 … … 78 78 void privileged_opcode(int n, istate_t *istate) 79 79 { 80 fault_if_from_uspace(istate, "%s ", __func__);81 dump_istate(istate); 82 panic("%s \n", __func__);80 fault_if_from_uspace(istate, "%s.", __func__); 81 dump_istate(istate); 82 panic("%s.", __func__); 83 83 } 84 84 … … 86 86 void unimplemented_LDD(int n, istate_t *istate) 87 87 { 88 fault_if_from_uspace(istate, "%s ", __func__);89 dump_istate(istate); 90 panic("%s \n", __func__);88 fault_if_from_uspace(istate, "%s.", __func__); 89 dump_istate(istate); 90 panic("%s.", __func__); 91 91 } 92 92 … … 94 94 void unimplemented_STD(int n, istate_t *istate) 95 95 { 96 fault_if_from_uspace(istate, "%s ", __func__);97 dump_istate(istate); 98 panic("%s \n", __func__);96 fault_if_from_uspace(istate, "%s.", __func__); 97 dump_istate(istate); 98 panic("%s.", __func__); 99 99 } 100 100 … … 114 114 scheduler_fpu_lazy_request(); 115 115 #else 116 fault_if_from_uspace(istate, "%s ", __func__);117 dump_istate(istate); 118 panic("%s \n", __func__);116 fault_if_from_uspace(istate, "%s.", __func__); 117 dump_istate(istate); 118 panic("%s.", __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 ", __func__);126 dump_istate(istate); 127 panic("%s \n", __func__);125 fault_if_from_uspace(istate, "%s.", __func__); 126 dump_istate(istate); 127 panic("%s.", __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 ", __func__);134 dump_istate(istate); 135 panic("%s \n", __func__);133 fault_if_from_uspace(istate, "%s.", __func__); 134 dump_istate(istate); 135 panic("%s.", __func__); 136 136 } 137 137 … … 139 139 void tag_overflow(int n, istate_t *istate) 140 140 { 141 fault_if_from_uspace(istate, "%s ", __func__);142 dump_istate(istate); 143 panic("%s \n", __func__);141 fault_if_from_uspace(istate, "%s.", __func__); 142 dump_istate(istate); 143 panic("%s.", __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 ", __func__);150 dump_istate(istate); 151 panic("%s \n", __func__);149 fault_if_from_uspace(istate, "%s.", __func__); 150 dump_istate(istate); 151 panic("%s.", __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 ", __func__);157 fault_if_from_uspace(istate, "%s.", __func__); 158 158 dump_istate(istate); 159 159 dump_sfsr_and_sfar(); 160 panic("%s \n", __func__);160 panic("%s.", __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 ", __func__);167 dump_istate(istate); 168 panic("%s \n", __func__);166 fault_if_from_uspace(istate, "%s.", __func__); 167 dump_istate(istate); 168 panic("%s.", __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 ", __func__);175 dump_istate(istate); 176 panic("%s \n", __func__);174 fault_if_from_uspace(istate, "%s.", __func__); 175 dump_istate(istate); 176 panic("%s.", __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 ", __func__);183 dump_istate(istate); 184 panic("%s \n", __func__);182 fault_if_from_uspace(istate, "%s.", __func__); 183 dump_istate(istate); 184 panic("%s.", __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 ", __func__);191 dump_istate(istate); 192 panic("%s \n", __func__);190 fault_if_from_uspace(istate, "%s.", __func__); 191 dump_istate(istate); 192 panic("%s.", __func__); 193 193 } 194 194 … … 196 196 void privileged_action(int n, istate_t *istate) 197 197 { 198 fault_if_from_uspace(istate, "%s ", __func__);199 dump_istate(istate); 200 panic("%s \n", __func__);198 fault_if_from_uspace(istate, "%s.", __func__); 199 dump_istate(istate); 200 panic("%s.", __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 ", __func__);207 dump_istate(istate); 208 panic("%s \n", __func__);206 fault_if_from_uspace(istate, "%s.", __func__); 207 dump_istate(istate); 208 panic("%s.", __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 ", __func__);215 dump_istate(istate); 216 panic("%s \n", __func__);214 fault_if_from_uspace(istate, "%s.", __func__); 215 dump_istate(istate); 216 panic("%s.", __func__); 217 217 } 218 218 -
kernel/arch/sparc64/src/trap/interrupt.c
rc571f42 rf651e80 73 73 status = asi_u64_read(ASI_INTR_DISPATCH_STATUS, 0); 74 74 if (status & (!INTR_DISPATCH_STATUS_BUSY)) 75 panic("Interrupt Dispatch Status busy bit not set \n");75 panic("Interrupt Dispatch Status busy bit not set."); 76 76 77 77 intrcv = asi_u64_read(ASI_INTR_RECEIVE, 0); -
kernel/genarch/src/drivers/ega/ega.c
rc571f42 rf651e80 79 79 backbuf = (uint8_t *) malloc(SCREEN * 2, 0); 80 80 if (!backbuf) 81 panic("Unable to allocate backbuffer. \n");81 panic("Unable to allocate backbuffer."); 82 82 83 83 videoram = (uint8_t *) hw_map(videoram_phys, SCREEN * 2); -
kernel/genarch/src/fb/fb.c
rc571f42 rf651e80 457 457 break; 458 458 default: 459 panic("Unsupported visual. \n");459 panic("Unsupported visual."); 460 460 } 461 461 … … 489 489 backbuf = (uint8_t *) malloc(bbsize, 0); 490 490 if (!backbuf) 491 panic("Unable to allocate backbuffer. \n");491 panic("Unable to allocate backbuffer."); 492 492 493 493 glyphs = (uint8_t *) malloc(glyphsize, 0); 494 494 if (!glyphs) 495 panic("Unable to allocate glyphs. \n");495 panic("Unable to allocate glyphs."); 496 496 497 497 bgscan = malloc(bgscanbytes, 0); 498 498 if (!bgscan) 499 panic("Unable to allocate background pixel. \n");499 panic("Unable to allocate background pixel."); 500 500 501 501 memsetb(backbuf, bbsize, 0); -
kernel/genarch/src/ofw/fhc.c
rc571f42 rf651e80 68 68 } 69 69 if (strcmp(ofw_tree_node_name(node->parent), "central") != 0) 70 panic("Unexpected parent node: %s. \n", ofw_tree_node_name(node->parent));70 panic("Unexpected parent node: %s.", ofw_tree_node_name(node->parent)); 71 71 72 72 ofw_central_reg_t central_reg; … … 85 85 { 86 86 if (node->parent->parent) 87 panic("Unexpected parent node: %s. \n", ofw_tree_node_name(node->parent));87 panic("Unexpected parent node: %s.", ofw_tree_node_name(node->parent)); 88 88 89 89 ofw_tree_property_t *prop; -
kernel/genarch/src/ofw/ofw_tree.c
rc571f42 rf651e80 86 86 prop = ofw_tree_getprop(node, "name"); 87 87 if (!prop) 88 panic("Node without name property. \n");88 panic("Node without name property."); 89 89 90 90 if (prop->size < 2) 91 panic("Invalid name property. \n");91 panic("Invalid name property."); 92 92 93 93 return prop->value; -
kernel/genarch/src/ofw/pci.c
rc571f42 rf651e80 102 102 prop = ofw_tree_getprop(node, "assigned-addresses"); 103 103 if (!prop) 104 panic("Can 't find \"assigned-addresses\" property.\n");104 panic("Cannot find 'assigned-addresses' property."); 105 105 106 106 assigned_addresses = prop->size / sizeof(ofw_pci_reg_t); -
kernel/generic/include/debug.h
rc571f42 rf651e80 58 58 # define ASSERT(expr) \ 59 59 if (!(expr)) { \ 60 panic(" assertion failed (%s), caller=%p\n", #expr, CALLER); \60 panic("Assertion failed (%s), caller=%p.", #expr, CALLER); \ 61 61 } 62 62 #else -
kernel/generic/include/panic.h
rc571f42 rf651e80 38 38 #ifdef CONFIG_DEBUG 39 39 # define panic(format, ...) \ 40 panic_printf("Kernel panic in %s() at %s:%u: " format , __func__, \41 __ FILE__, __LINE__, ##__VA_ARGS__);40 panic_printf("Kernel panic in %s() at %s:%u: " format "\n", \ 41 __func__, __FILE__, __LINE__, ##__VA_ARGS__); 42 42 #else 43 43 # define panic(format, ...) \ 44 panic_printf("Kernel panic: " format , ##__VA_ARGS__);44 panic_printf("Kernel panic: " format "\n", ##__VA_ARGS__); 45 45 #endif 46 46 -
kernel/generic/src/adt/btree.c
rc571f42 rf651e80 125 125 if (!lnode) { 126 126 if (btree_search(t, key, &lnode)) { 127 panic("B-tree %p already contains key %" PRIu64 " \n", t, key);127 panic("B-tree %p already contains key %" PRIu64 ".", t, key); 128 128 } 129 129 } … … 225 225 if (!lnode) { 226 226 if (!btree_search(t, key, &lnode)) { 227 panic("B-tree %p does not contain key %" PRIu64 " \n", t, key);227 panic("B-tree %p does not contain key %" PRIu64 ".", t, key); 228 228 } 229 229 } … … 525 525 } 526 526 } 527 panic(" node %p does not contain key %" PRIu64 "\n", node, key);527 panic("Node %p does not contain key %" PRIu64 ".", node, key); 528 528 } 529 529 … … 552 552 } 553 553 } 554 panic(" node %p does not contain key %" PRIu64 "\n", node, key);554 panic("Node %p does not contain key %" PRIu64 ".", node, key); 555 555 } 556 556 … … 694 694 return i - (int) (right != false); 695 695 } 696 panic(" node %p does not contain subtree %p\n", node, subtree);696 panic("Node %p does not contain subtree %p.", node, subtree); 697 697 } 698 698 -
kernel/generic/src/adt/hash_table.c
rc571f42 rf651e80 62 62 h->entry = (link_t *) malloc(m * sizeof(link_t), 0); 63 63 if (!h->entry) { 64 panic(" cannot allocate memory for hash table\n");64 panic("Cannot allocate memory for hash table."); 65 65 } 66 66 memsetb(h->entry, m * sizeof(link_t), 0); -
kernel/generic/src/cpu/cpu.c
rc571f42 rf651e80 65 65 FRAME_ATOMIC); 66 66 if (!cpus) 67 panic(" malloc/cpus");67 panic("Cannot allocate CPU structures."); 68 68 69 69 /* initialize everything */ -
kernel/generic/src/interrupt/interrupt.c
rc571f42 rf651e80 106 106 static void exc_undef(int n, istate_t *istate) 107 107 { 108 fault_if_from_uspace(istate, "Unhandled exception %d ", n);109 panic("Unhandled exception %d ", n);108 fault_if_from_uspace(istate, "Unhandled exception %d.", n); 109 panic("Unhandled exception %d.", n); 110 110 } 111 111 -
kernel/generic/src/main/kinit.c
rc571f42 rf651e80 111 111 thread_ready(thread); 112 112 } else 113 panic("Unable to create kmp thread \n");113 panic("Unable to create kmp thread."); 114 114 thread_join(thread); 115 115 thread_detach(thread); -
kernel/generic/src/main/main.c
rc571f42 rf651e80 270 270 task_t *kernel = task_create(AS_KERNEL, "kernel"); 271 271 if (!kernel) 272 panic("Can 't create kernel task\n");272 panic("Cannot create kernel task."); 273 273 274 274 /* … … 278 278 = thread_create(kinit, NULL, kernel, 0, "kinit", true); 279 279 if (!kinit_thread) 280 panic("Can 't create kinit thread\n");280 panic("Cannot create kinit thread."); 281 281 LOG_EXEC(thread_ready(kinit_thread)); 282 282 -
kernel/generic/src/mm/as.c
rc571f42 rf651e80 147 147 AS_KERNEL = as_create(FLAG_AS_KERNEL); 148 148 if (!AS_KERNEL) 149 panic("Cannot create kernel address space \n");149 panic("Cannot create kernel address space."); 150 150 151 151 /* Make sure the kernel address space … … 445 445 if (!used_space_remove(area, start_free, 446 446 c - i)) 447 panic("C ouldnot remove used "448 "space. \n");447 panic("Cannot remove used " 448 "space."); 449 449 } else { 450 450 /* … … 453 453 */ 454 454 if (!used_space_remove(area, b, c)) 455 panic("C ouldnot remove used "456 "space. \n");455 panic("Cannot remove used " 456 "space."); 457 457 } 458 458 … … 1667 1667 1668 1668 panic("Inconsistency detected while adding %" PRIc " pages of used " 1669 "space at %p. \n", count, page);1669 "space at %p.", count, page); 1670 1670 } 1671 1671 … … 1846 1846 error: 1847 1847 panic("Inconsistency detected while removing %" PRIc " pages of used " 1848 "space from %p. \n", count, page);1848 "space from %p.", count, page); 1849 1849 } 1850 1850 -
kernel/generic/src/mm/backend_anon.c
rc571f42 rf651e80 153 153 page_mapping_insert(AS, addr, frame, as_area_get_flags(area)); 154 154 if (!used_space_insert(area, ALIGN_DOWN(addr, PAGE_SIZE), 1)) 155 panic("C ould not insert used space.\n");155 panic("Cannot insert used space."); 156 156 157 157 return AS_PF_OK; -
kernel/generic/src/mm/backend_elf.c
rc571f42 rf651e80 130 130 as_area_get_flags(area)); 131 131 if (!used_space_insert(area, page, 1)) 132 panic("C ould not insert used space.\n");132 panic("Cannot insert used space."); 133 133 mutex_unlock(&area->sh_info->lock); 134 134 return AS_PF_OK; … … 215 215 page_mapping_insert(AS, addr, frame, as_area_get_flags(area)); 216 216 if (!used_space_insert(area, page, 1)) 217 panic("C ould not insert used space.\n");217 panic("Cannot insert used space."); 218 218 219 219 return AS_PF_OK; -
kernel/generic/src/mm/backend_phys.c
rc571f42 rf651e80 78 78 as_area_get_flags(area)); 79 79 if (!used_space_insert(area, ALIGN_DOWN(addr, PAGE_SIZE), 1)) 80 panic("C ould not insert used space.\n");80 panic("Cannot insert used space."); 81 81 82 82 return AS_PF_OK; -
kernel/generic/src/mm/tlb.c
rc571f42 rf651e80 174 174 break; 175 175 default: 176 panic(" unknown type (%d)\n", type);176 panic("Unknown type (%d).", type); 177 177 break; 178 178 } -
kernel/generic/src/proc/scheduler.c
rc571f42 rf651e80 452 452 * Entering state is unexpected. 453 453 */ 454 panic("tid%" PRIu64 ": unexpected state %s \n",454 panic("tid%" PRIu64 ": unexpected state %s.", 455 455 THREAD->tid, thread_states[THREAD->state]); 456 456 break; -
kernel/generic/src/proc/tasklet.c
rc571f42 rf651e80 52 52 tasklet_list = malloc(sizeof(tasklet_descriptor_t *) * config.cpu_count, 0); 53 53 if (!tasklet_list) 54 panic("Error initializing tasklets ");54 panic("Error initializing tasklets."); 55 55 56 56 for (i = 0; i < config.cpu_count; i++) -
kernel/generic/src/synch/rwlock.c
rc571f42 rf651e80 232 232 break; 233 233 case ESYNCH_OK_ATOMIC: 234 panic("_mutex_lock_timeout() == ESYNCH_OK_ATOMIC \n");234 panic("_mutex_lock_timeout() == ESYNCH_OK_ATOMIC."); 235 235 break; 236 236 default: 237 panic(" invalid ESYNCH\n");237 panic("Invalid ESYNCH."); 238 238 break; 239 239 } -
kernel/generic/src/sysinfo/sysinfo.c
rc571f42 rf651e80 164 164 } 165 165 } 166 panic("Not reached\n"); 166 167 panic("Not reached."); 167 168 return NULL; 168 169 } -
kernel/generic/src/time/clock.c
rc571f42 rf651e80 80 80 faddr = frame_alloc(ONE_FRAME, FRAME_ATOMIC); 81 81 if (!faddr) 82 panic("Cannot allocate page for clock ");82 panic("Cannot allocate page for clock."); 83 83 84 84 uptime = (uptime_t *) PA2KA(faddr); -
kernel/generic/src/time/timeout.c
rc571f42 rf651e80 114 114 115 115 if (t->cpu) 116 panic(" t->cpu != 0");116 panic("Unexpected: t->cpu != 0."); 117 117 118 118 t->cpu = CPU;
Note:
See TracChangeset
for help on using the changeset viewer.