Ignore:
File:
1 edited

Legend:

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

    r0d1e976 racc7ce4  
    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("cs =%p\teip=%p\tefl=%p\terr=%p\n",
    68             istate->cs, istate->eip, istate->eflags, istate->error_word);
    69 
    70         printf("ds =%p\tes =%p\tfs =%p\tgs =%p\n",
     68        printf("cs =%#0" PRIx32 "\teip=%p\t"
     69            "efl=%#0" PRIx32 "\terr=%#0" PRIx32 "\n",
     70            istate->cs, (void *) istate->eip,
     71            istate->eflags, istate->error_word);
     72       
     73        printf("ds =%#0" PRIx32 "\tes =%#0" PRIx32 "\t"
     74            "fs =%#0" PRIx32 "\tgs =%#0" PRIx32 "\n",
    7175            istate->ds, istate->es, istate->fs, istate->gs);
     76       
    7277        if (istate_from_uspace(istate))
    73                 printf("ss =%p\n", istate->ss);
    74 
    75         printf("eax=%p\tebx=%p\tecx=%p\tedx=%p\n",
     78                printf("ss =%#0" PRIx32 "\n", istate->ss);
     79       
     80        printf("eax=%#0" PRIx32 "\tebx=%#0" PRIx32 "\t"
     81            "ecx=%#0" PRIx32 "\tedx=%#0" PRIx32 "\n",
    7682            istate->eax, istate->ebx, istate->ecx, istate->edx);
     83       
    7784        printf("esi=%p\tedi=%p\tebp=%p\tesp=%p\n",
    78             istate->esi, istate->edi, istate->ebp,
    79             istate_from_uspace(istate) ? istate->esp : (uintptr_t)&istate->esp);
     85            (void *) istate->esi, (void *) istate->edi,
     86            (void *) istate->ebp,
     87            istate_from_uspace(istate) ? ((void *) istate->esp) :
     88            &istate->esp);
    8089}
    8190
     
    139148        );
    140149       
    141         fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR=%#0.8x.",
    142             (unative_t) mxcsr);
    143         panic_badtrap(istate, n, "SIMD FP exception, MXCSR=%#0.8x");
     150        fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR=%#0" PRIx32 ".",
     151            mxcsr);
     152        panic_badtrap(istate, n, "SIMD FP exception");
    144153}
    145154
Note: See TracChangeset for help on using the changeset viewer.