Changeset f651e80 in mainline for kernel/arch/amd64/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/amd64/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/interrupt.c

    rc571f42 rf651e80  
    9595                eoi_function();
    9696        else
    97                 panic("no eoi_function\n");
     97                panic("No eoi_function.");
    9898
    9999}
     
    101101static void null_interrupt(int n, istate_t *istate)
    102102{
    103         fault_if_from_uspace(istate, "Unserviced interrupt: %d", n);
     103        fault_if_from_uspace(istate, "Unserviced interrupt: %d.", n);
    104104        decode_istate(n, istate);
    105         panic("Unserviced interrupt\n");
     105        panic("Unserviced interrupt.");
    106106}
    107107
     
    127127                        return;
    128128                }
    129                 fault_if_from_uspace(istate, "General protection fault");
     129                fault_if_from_uspace(istate, "General protection fault.");
    130130        }
    131131
    132132        decode_istate(n, istate);
    133         panic("General protection fault\n");
     133        panic("General protection fault.");
    134134}
    135135
    136136static void ss_fault(int n, istate_t *istate)
    137137{
    138         fault_if_from_uspace(istate, "Stack fault");
     138        fault_if_from_uspace(istate, "Stack fault.");
    139139        decode_istate(n, istate);
    140         panic("Stack fault\n");
     140        panic("Stack fault.");
    141141}
    142142
     
    146146        scheduler_fpu_lazy_request();
    147147#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.");
    150150#endif
    151151}
     
    222222                enable_irqs_function(irqmask);
    223223        else
    224                 panic("no enable_irqs_function\n");
     224                panic("No enable_irqs_function.");
    225225}
    226226
     
    230230                disable_irqs_function(irqmask);
    231231        else
    232                 panic("no disable_irqs_function\n");
     232                panic("No disable_irqs_function.");
    233233}
    234234
  • kernel/arch/amd64/src/mm/page.c

    rc571f42 rf651e80  
    181181       
    182182        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.");
    184184       
    185185        if (istate->error_word & PFERR_CODE_RW)
     
    191191       
    192192        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);
    194194
    195195                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.");
    198198        }
    199199}
     
    203203{
    204204        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)
    206206       
    207207        uintptr_t virtaddr = PA2KA(last_frame);
  • kernel/arch/amd64/src/pm.c

    rc571f42 rf651e80  
    210210                tss_p = (struct tss *) malloc(sizeof(tss_t), FRAME_ATOMIC);
    211211                if (!tss_p)
    212                         panic("could not allocate TSS\n");
     212                        panic("Cannot allocate TSS.");
    213213        }
    214214
Note: See TracChangeset for help on using the changeset viewer.