Changeset 280a27e in mainline for arch/ia32/src/interrupt.c


Ignore:
Timestamp:
2006-04-16T13:16:44Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
50de918
Parents:
c624b96
Message:

Printf ported back from uspace to kernel.
Printf calls changed to match new conventions.

File:
1 edited

Legend:

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

    rc624b96 r280a27e  
    6262                printf("----------------EXCEPTION OCCURED----------------\n");
    6363               
    64         printf("%%eip: %X (%s)\n",istate->eip,symbol);
    65         printf("ERROR_WORD=%X\n", istate->error_word);
    66         printf("%%cs=%X,flags=%X\n", istate->cs, istate->eflags);
    67         printf("%%eax=%X, %%ecx=%X, %%edx=%X, %%esp=%X\n",  istate->eax,istate->ecx,istate->edx,&istate->stack[0]);
     64        printf("%%eip: %#X (%s)\n",istate->eip,symbol);
     65        printf("ERROR_WORD=%#X\n", istate->error_word);
     66        printf("%%cs=%#X,flags=%#X\n", istate->cs, istate->eflags);
     67        printf("%%eax=%#X, %%ecx=%#X, %%edx=%#X, %%esp=%#X\n",  istate->eax,istate->ecx,istate->edx,&istate->stack[0]);
    6868#ifdef CONFIG_DEBUG_ALLREGS
    69         printf("%%esi=%X, %%edi=%X, %%ebp=%X, %%ebx=%X\n",  istate->esi,istate->edi,istate->ebp,istate->ebx);
     69        printf("%%esi=%#X, %%edi=%#X, %%ebp=%#X, %%ebx=%#X\n",  istate->esi,istate->edi,istate->ebp,istate->ebx);
    7070#endif
    71         printf("stack: %X, %X, %X, %X\n", istate->stack[0], istate->stack[1], istate->stack[2], istate->stack[3]);
    72         printf("       %X, %X, %X, %X\n", istate->stack[4], istate->stack[5], istate->stack[6], istate->stack[7]);
     71        printf("stack: %#X, %#X, %#X, %#X\n", istate->stack[0], istate->stack[1], istate->stack[2], istate->stack[3]);
     72        printf("       %#X, %#X, %#X, %#X\n", istate->stack[4], istate->stack[5], istate->stack[6], istate->stack[7]);
    7373}
    7474
     
    101101                :"=m"(mxcsr)
    102102        );
    103         printf("MXCSR: %X\n",(__native)(mxcsr));
     103        printf("MXCSR: %#zX\n",(__native)(mxcsr));
    104104        panic("SIMD FP exception(19)\n");
    105105}
     
    121121        if (!as_page_fault(page)) {
    122122                PRINT_INFO_ERRCODE(istate);
    123                 printf("page fault address: %X\n", page);
     123                printf("page fault address: %#X\n", page);
    124124                panic("page fault\n");
    125125        }
Note: See TracChangeset for help on using the changeset viewer.