Changeset c9eb31c2 in mainline


Ignore:
Timestamp:
2010-06-29T21:03:01Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9a683150
Parents:
6473d41
Message:

Print all potentially interesting information about an ia32 trap frame in
istate_decode(). This includes all the GPRs and some other registers.

File:
1 edited

Legend:

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

    r6473d41 rc9eb31c2  
    6565void istate_decode(istate_t *istate)
    6666{
    67         printf("error_word=%#lx\n", istate->error_word);
    68         printf("cs =%#0.8lx\teflags=%#0.8lx\n", istate->cs, istate->eflags);
    69         printf("eax=%#0.8lx\tecx=%#0.8lx\tedx=%#0.8lx\n",
    70             istate->eax, istate->ecx, istate->edx);
     67        printf("error_word=%p\n", istate->error_word);
     68        printf("eflags=%p\n", istate->eflags);
     69
     70        printf("cs =%p\tds =%p\tes =%p\n", istate->cs, istate->ds, istate->es);
     71        printf("fs =%p\tgs =%p", istate->fs, istate->gs);
     72        if (istate_from_uspace(istate))
     73                printf("\tss =%p\n", istate->ss);
     74        else
     75                printf("\n");
     76
     77        printf("eax=%p\tebx=%p\tecx=%p\n", istate->eax, istate->ebx,
     78            istate->ecx);
     79        printf("edx=%p\tedi=%p\tesi=%p\n", istate->edx, istate->edi,
     80            istate->esi);
     81        printf("ebp=%p\tesp=%p\teip=%p\n", istate->ebp,
     82            istate_from_uspace(istate) ? istate->esp : (uintptr_t) &istate->esp,
     83            istate->eip);
    7184}
    7285
Note: See TracChangeset for help on using the changeset viewer.