Changeset f651e80 in mainline for kernel/arch/ia32xen


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/ia32xen/src
Files:
4 edited

Legend:

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

    rc571f42 rf651e80  
    8989                eoi_function();
    9090        else
    91                 panic("no eoi_function\n");
     91                panic("No eoi_function.");
    9292
    9393}
     
    9595static void null_interrupt(int n, istate_t *istate)
    9696{
    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);
    101101}
    102102
     
    122122                        return;
    123123                }
    124                 fault_if_from_uspace(istate, "General protection fault");
     124                fault_if_from_uspace(istate, "General protection fault.");
    125125        }
    126126
    127127        decode_istate(istate);
    128         panic("General protection fault\n");
     128        panic("General protection fault.");
    129129}
    130130
    131131static void ss_fault(int n, istate_t *istate)
    132132{
    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.");
    137137}
    138138
     
    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: %#zx\n",(unative_t)(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/ia32xen/src/mm/page.c

    rc571f42 rf651e80  
    6767       
    6868        if (istate->error_word & PFERR_CODE_RSVD)
    69                 panic("Reserved bit set in page directory.\n");
     69                panic("Reserved bit set in page directory.");
    7070       
    7171        if (istate->error_word & PFERR_CODE_RW)
     
    7575       
    7676        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);
    7878               
    7979                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.");
    8282        }
    8383}
  • kernel/arch/ia32xen/src/pm.c

    rc571f42 rf651e80  
    169169                tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC);
    170170                if (!tss_p)
    171                         panic("could not allocate TSS\n");
     171                        panic("Cannot allocate TSS.");
    172172        }
    173173
  • kernel/arch/ia32xen/src/smp/smp.c

    rc571f42 rf651e80  
    7373        l_apic_address = (uintptr_t) frame_alloc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA);
    7474        if (!l_apic_address)
    75                 panic("cannot allocate address for l_apic\n");
     75                panic("Cannot allocate address for l_apic.");
    7676
    7777        io_apic_address = (uintptr_t) frame_alloc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA);
    7878        if (!io_apic_address)
    79                 panic("cannot allocate address for io_apic\n");
     79                panic("Cannot allocate address for io_apic.");
    8080
    8181        if (config.cpu_count > 1) {             
     
    144144                 */
    145145                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.");
    147147
    148148                memcpy(gdt_new, gdt, GDT_ITEMS * sizeof(struct descriptor));
Note: See TracChangeset for help on using the changeset viewer.