Changeset 2829b354 in mainline for kernel/arch/amd64/src/interrupt.c


Ignore:
Timestamp:
2007-11-15T16:24:20Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e686744c
Parents:
bcfd586
Message:

Fix register names in exception dump and cstyle.

File:
1 edited

Legend:

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

    rbcfd586 r2829b354  
    6767/*      uint64_t *x = &istate->stack[0]; */
    6868
    69         if (!(symbol=get_symtab_entry(istate->rip)))
     69        if (!(symbol = get_symtab_entry(istate->rip)))
    7070                symbol = "";
    7171
    72         printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n",n, __func__);
    73         printf("%%rip: %#llx (%s)\n",istate->rip, symbol);
     72        printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n", n, __func__);
     73        printf("%%rip: %#llx (%s)\n", istate->rip, symbol);
    7474        printf("ERROR_WORD=%#llx\n", istate->error_word);
    75         printf("%%rcs=%#llx, flags=%#llx, %%cr0=%#llx\n", istate->cs, istate->rflags, read_cr0());
    76         printf("%%rax=%#llx, %%rcx=%#llx, %%rdx=%#llx\n", istate->rax, istate->rcx, istate->rdx);
    77         printf("%%rsi=%#llx, %%rdi=%#llx, %%r8 =%#llx\n", istate->rsi, istate->rdi, istate->r8);
    78         printf("%%r9 =%#llx, %%r10 =%#llx, %%r11=%#llx\n", istate->r9, istate->r10, istate->r11);
     75        printf("%%cs=%#llx, rflags=%#llx, %%cr0=%#llx\n", istate->cs,
     76            istate->rflags, read_cr0());
     77        printf("%%rax=%#llx, %%rcx=%#llx, %%rdx=%#llx\n", istate->rax,
     78            istate->rcx, istate->rdx);
     79        printf("%%rsi=%#llx, %%rdi=%#llx, %%r8=%#llx\n", istate->rsi,
     80            istate->rdi, istate->r8);
     81        printf("%%r9=%#llx, %%r10=%#llx, %%r11=%#llx\n", istate->r9,
     82            istate->r10, istate->r11);
    7983#ifdef CONFIG_DEBUG_ALLREGS     
    80         printf("%%r12=%#llx, %%r13=%#llx, %%r14=%#llx\n", istate->r12, istate->r13, istate->r14);
    81         printf("%%r15=%#llx, %%rbx=%#llx, %%rbp=%#llx\n", istate->r15, istate->rbx, &istate->rbp);
     84        printf("%%r12=%#llx, %%r13=%#llx, %%r14=%#llx\n", istate->r12,
     85            istate->r13, istate->r14);
     86        printf("%%r15=%#llx, %%rbx=%#llx, %%rbp=%#llx\n", istate->r15,
     87            istate->rbx, &istate->rbp);
    8288#endif
    8389        printf("%%rsp=%#llx\n", &istate->stack[0]);
     
    196202        for (i = 0; i < IRQ_COUNT; i++) {
    197203                if ((i != IRQ_PIC_SPUR) && (i != IRQ_PIC1))
    198                         exc_register(IVT_IRQBASE + i, "irq", (iroutine) irq_interrupt);
     204                        exc_register(IVT_IRQBASE + i, "irq",
     205                            (iroutine) irq_interrupt);
    199206        }
    200207       
     
    205212       
    206213#ifdef CONFIG_SMP
    207         exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", (iroutine) tlb_shootdown_ipi);
     214        exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown",
     215            (iroutine) tlb_shootdown_ipi);
    208216#endif
    209217}
Note: See TracChangeset for help on using the changeset viewer.