Changeset 89c57b6 in mainline for kernel/arch/amd64/src/interrupt.c


Ignore:
Timestamp:
2011-04-13T14:45:41Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88634420
Parents:
cefb126 (diff), 17279ead (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    rcefb126 r89c57b6  
    6262void (* enable_irqs_function)(uint16_t irqmask) = NULL;
    6363void (* eoi_function)(void) = NULL;
     64const char *irqs_info = NULL;
    6465
    6566void istate_decode(istate_t *istate)
    6667{
    67         printf("error_word=%#llx\n", istate->error_word);
    68         printf("cs =%#0.16llx\trflags=%#0.16llx\n", istate->cs,
    69             istate->rflags);
    70         printf("rax=%#0.16llx\trbx=%#0.16llx\trcx=%#0.16llx\n", istate->rax,
    71             istate->rcx, istate->rdx);
    72         printf("rsi=%#0.16llx\trdi=%#0.16llx\tr8 =%#0.16llx\n", istate->rsi,
    73             istate->rdi, istate->r8);
    74         printf("r9 =%#0.16llx\tr10=%#0.16llx\tr11=%#0.16llx\n", istate->r9,
    75             istate->r10, istate->r11);
     68        printf("cs =%#0" PRIx64 "\trip=%p\t"
     69            "rfl=%#0" PRIx64 "\terr=%#0" PRIx64 "\n",
     70            istate->cs, (void *) istate->rip,
     71            istate->rflags, istate->error_word);
     72       
     73        if (istate_from_uspace(istate))
     74                printf("ss =%#0" PRIx64 "\n", istate->ss);
     75       
     76        printf("rax=%#0" PRIx64 "\trbx=%#0" PRIx64 "\t"
     77            "rcx=%#0" PRIx64 "\trdx=%#0" PRIx64 "\n",
     78            istate->rax, istate->rbx, istate->rcx, istate->rdx);
     79       
     80        printf("rsi=%p\trdi=%p\trbp=%p\trsp=%p\n",
     81            (void *) istate->rsi, (void *) istate->rdi,
     82            (void *) istate->rbp,
     83            istate_from_uspace(istate) ? ((void *) istate->rsp) :
     84            &istate->rsp);
     85       
     86        printf("r8 =%#0" PRIx64 "\tr9 =%#0" PRIx64 "\t"
     87            "r10=%#0" PRIx64 "\tr11=%#0" PRIx64 "\n",
     88            istate->r8, istate->r9, istate->r10, istate->r11);
     89       
     90        printf("r12=%#0" PRIx64 "\tr13=%#0" PRIx64 "\t"
     91            "r14=%#0" PRIx64 "\tr15=%#0" PRIx64 "\n",
     92            istate->r12, istate->r13, istate->r14, istate->r15);
    7693}
    7794
Note: See TracChangeset for help on using the changeset viewer.