Changeset f651e80 in mainline for kernel/arch/ia32/src


Ignore:
Timestamp:
2009-01-08T12:07:38Z (17 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7447572
Parents:
c571f42
Message:

Make newlines in panic messages consistent. Add periods at end of messages so that it is obvious whether they are printed entirely.

Location:
kernel/arch/ia32/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/drivers/vesa.c

    rc571f42 rf651e80  
    8484                break;
    8585        default:
    86                 panic("Unsupported bits per pixel");
     86                panic("Unsupported bits per pixel.");
    8787        }
    8888       
  • kernel/arch/ia32/src/interrupt.c

    rc571f42 rf651e80  
    9090                eoi_function();
    9191        else
    92                 panic("no eoi_function\n");
     92                panic("No eoi_function.");
    9393
    9494}
     
    9696static void null_interrupt(int n, istate_t *istate)
    9797{
    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);
    102102}
    103103
     
    123123                        return;
    124124                }
    125                 fault_if_from_uspace(istate, "General protection fault");
     125                fault_if_from_uspace(istate, "General protection fault.");
    126126        }
    127127
    128128        decode_istate(istate);
    129         panic("General protection fault\n");
     129        panic("General protection fault.");
    130130}
    131131
    132132static void ss_fault(int n __attribute__((unused)), istate_t *istate)
    133133{
    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.");
    138138}
    139139
     
    145145                : "=m" (mxcsr)
    146146        );
    147         fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx",
     147        fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx.",
    148148            (unative_t) mxcsr);
    149149
    150150        decode_istate(istate);
    151151        printf("MXCSR: %#lx\n", mxcsr);
    152         panic("SIMD FP exception(19)\n");
     152        panic("SIMD FP exception(19).");
    153153}
    154154
     
    158158        scheduler_fpu_lazy_request();
    159159#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.");
    162162#endif
    163163}
     
    234234                enable_irqs_function(irqmask);
    235235        else
    236                 panic("no enable_irqs_function\n");
     236                panic("No enable_irqs_function.");
    237237}
    238238
     
    242242                disable_irqs_function(irqmask);
    243243        else
    244                 panic("no disable_irqs_function\n");
     244                panic("No disable_irqs_function.");
    245245}
    246246
  • kernel/arch/ia32/src/mm/page.c

    rc571f42 rf651e80  
    8080{
    8181        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)
    8383       
    8484        uintptr_t virtaddr = PA2KA(last_frame);
     
    102102               
    103103        if (istate->error_word & PFERR_CODE_RSVD)
    104                 panic("Reserved bit set in page directory.\n");
     104                panic("Reserved bit set in page directory.");
    105105
    106106        if (istate->error_word & PFERR_CODE_RW)
     
    110110       
    111111        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);
    113113               
    114114                decode_istate(istate);
    115115                printf("page fault address: %#lx\n", page);
    116                 panic("page fault\n");
     116                panic("Page fault.");
    117117        }
    118118}
  • kernel/arch/ia32/src/pm.c

    rc571f42 rf651e80  
    199199                tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC);
    200200                if (!tss_p)
    201                         panic("could not allocate TSS\n");
     201                        panic("Cannot allocate TSS.");
    202202        }
    203203
  • kernel/arch/ia32/src/smp/smp.c

    rc571f42 rf651e80  
    7676            FRAME_ATOMIC | FRAME_KA);
    7777        if (!l_apic_address)
    78                 panic("cannot allocate address for l_apic\n");
     78                panic("Cannot allocate address for l_apic.");
    7979
    8080        io_apic_address = (uintptr_t) frame_alloc(ONE_FRAME,
    8181            FRAME_ATOMIC | FRAME_KA);
    8282        if (!io_apic_address)
    83                 panic("cannot allocate address for io_apic\n");
     83                panic("Cannot allocate address for io_apic.");
    8484
    8585        if (config.cpu_count > 1) {             
     
    158158                    sizeof(struct descriptor), FRAME_ATOMIC | FRAME_LOW_4_GiB);
    159159                if (!gdt_new)
    160                         panic("couldn't allocate memory for GDT\n");
     160                        panic("Cannot allocate memory for GDT.");
    161161
    162162                memcpy(gdt_new, gdt, GDT_ITEMS * sizeof(struct descriptor));
Note: See TracChangeset for help on using the changeset viewer.