Changes in / [7b90778d:750636a] in mainline


Ignore:
Files:
7 edited

Legend:

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

    r7b90778d r750636a  
    6666void istate_decode(istate_t *istate)
    6767{
    68         printf("cs =%0#18" PRIx64 "\trip=%0#18" PRIx64 "\t"
    69             "rfl=%0#18" PRIx64 "\terr=%0#18" PRIx64 "\n",
    70             istate->cs, istate->rip, istate->rflags, istate->error_word);
     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);
    7172       
    7273        if (istate_from_uspace(istate))
    73                 printf("ss =%0#18" PRIx64 "\n", istate->ss);
    74        
    75         printf("rax=%0#18" PRIx64 "\trbx=%0#18" PRIx64 "\t"
    76             "rcx=%0#18" PRIx64 "\trdx=%0#18" PRIx64 "\n",
     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",
    7778            istate->rax, istate->rbx, istate->rcx, istate->rdx);
    7879       
    79         printf("rsi=%0#18" PRIx64 "\trdi=%0#18" PRIx64 "\t"
    80             "rbp=%0#18" PRIx64 "\trsp=%0#18" PRIx64 "\n",
    81             istate->rsi, istate->rdi, istate->rbp,
    82             istate_from_uspace(istate) ? istate->rsp :
    83             (uintptr_t) &istate->rsp);
    84        
    85         printf("r8 =%0#18" PRIx64 "\tr9 =%0#18" PRIx64 "\t"
    86             "r10=%0#18" PRIx64 "\tr11=%0#18" PRIx64 "\n",
     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",
    8788            istate->r8, istate->r9, istate->r10, istate->r11);
    8889       
    89         printf("r12=%0#18" PRIx64 "\tr13=%0#18" PRIx64 "\t"
    90             "r14=%0#18" PRIx64 "\tr15=%0#18" PRIx64 "\n",
     90        printf("r12=%#0" PRIx64 "\tr13=%#0" PRIx64 "\t"
     91            "r14=%#0" PRIx64 "\tr15=%#0" PRIx64 "\n",
    9192            istate->r12, istate->r13, istate->r14, istate->r15);
    9293}
  • kernel/arch/arm32/src/exception.c

    r7b90778d r750636a  
    174174void istate_decode(istate_t *istate)
    175175{
    176         printf("r0 =%0#10" PRIx32 "\tr1 =%0#10" PRIx32 "\t"
    177             "r2 =%0#10" PRIx32 "\tr3 =%0#10" PRIx32 "\n",
     176        printf("r0 =%#0" PRIx32 "\tr1 =%#0" PRIx32 "\t"
     177            "r2 =%#0" PRIx32 "\tr3 =%#0" PRIx32 "\n",
    178178            istate->r0, istate->r1, istate->r2, istate->r3);
    179         printf("r4 =%0#10" PRIx32 "\tr5 =%0#10" PRIx32 "\t"
    180             "r6 =%0#10" PRIx32 "\tr7 =%0#10" PRIx32 "\n",
     179        printf("r4 =%#" PRIx32 "\tr5 =%#0" PRIx32 "\t"
     180            "r6 =%#0" PRIx32 "\tr7 =%#0" PRIx32 "\n",
    181181            istate->r4, istate->r5, istate->r6, istate->r7);
    182         printf("r8 =%0#10" PRIx32 "\tr9 =%0#10" PRIx32 "\t"
    183             "r10=%0#10" PRIx32 "\tfp =%0#10" PRIx32 "\n",
    184             istate->r8, istate->r9, istate->r10, istate->fp);
    185         printf("r12=%0#10" PRIx32 "\tsp =%0#10" PRIx32 "\t"
    186             "lr =%0#10" PRIx32 "\tspsr=%0#10" PRIx32 "\n",
    187             istate->r12, istate->sp, istate->lr, istate->spsr);
     182        printf("r8 =%#0" PRIx32 "\tr9 =%#0" PRIx32 "\t"
     183            "r10=%#0" PRIx32 "\tfp =%p\n",
     184            istate->r8, istate->r9, istate->r10,
     185            (void *) istate->fp);
     186        printf("r12=%#0" PRIx32 "\tsp =%p\tlr =%p\tspsr=%p\n",
     187            istate->r12, (void *) istate->sp,
     188            (void *) istate->lr, (void *) istate->spsr);
    188189}
    189190
  • kernel/arch/ia32/Makefile.inc

    r7b90778d r750636a  
    3535ENDIANESS = LE
    3636
    37 CMN1 = -m32 -fno-omit-frame-pointer
     37CMN1 = -m32
    3838GCC_CFLAGS += $(CMN1)
    3939ICC_CFLAGS += $(CMN1)
  • kernel/arch/ia32/src/interrupt.c

    r7b90778d r750636a  
    6666void istate_decode(istate_t *istate)
    6767{
    68         printf("cs =%0#10" PRIx32 "\teip=%0#10" PRIx32 "\t"
    69             "efl=%0#10" PRIx32 "\terr=%0#10" PRIx32 "\n",
    70             istate->cs, istate->eip, istate->eflags, istate->error_word);
    71        
    72         printf("ds =%0#10" PRIx32 "\tes =%0#10" PRIx32 "\t"
    73             "fs =%0#10" PRIx32 "\tgs =%0#10" PRIx32 "\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",
    7475            istate->ds, istate->es, istate->fs, istate->gs);
    7576       
    7677        if (istate_from_uspace(istate))
    77                 printf("ss =%0#10" PRIx32 "\n", istate->ss);
    78        
    79         printf("eax=%0#10" PRIx32 "\tebx=%0#10" PRIx32 "\t"
    80             "ecx=%0#10" PRIx32 "\tedx=%0#10" PRIx32 "\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",
    8182            istate->eax, istate->ebx, istate->ecx, istate->edx);
    8283       
    83         printf("esi=%0#10" PRIx32 "\tedi=%0#10" PRIx32 "\t"
    84             "ebp=%0#10" PRIx32 "\tesp=%0#10" PRIx32 "\n",
    85             istate->esi, istate->edi, istate->ebp,
    86             istate_from_uspace(istate) ? istate->esp :
    87             (uintptr_t) &istate->esp);
     84        printf("esi=%p\tedi=%p\tebp=%p\tesp=%p\n",
     85            (void *) istate->esi, (void *) istate->edi,
     86            (void *) istate->ebp,
     87            istate_from_uspace(istate) ? ((void *) istate->esp) :
     88            &istate->esp);
    8889}
    8990
  • kernel/arch/mips32/src/exception.c

    r7b90778d r750636a  
    7474void istate_decode(istate_t *istate)
    7575{
    76         printf("epc=%#010" PRIx32 "\tsta=%#010" PRIx32 "\t"
     76        printf("epc=%p\tsta=%#010" PRIx32 "\t"
    7777            "lo =%#010" PRIx32 "\thi =%#010" PRIx32 "\n",
    78             istate->epc, istate->status, istate->lo, istate->hi);
     78            (void *) istate->epc, istate->status,
     79            istate->lo, istate->hi);
    7980       
    8081        printf("a0 =%#010" PRIx32 "\ta1 =%#010" PRIx32 "\t"
     
    106107            istate->s8, istate->at, istate->kt0, istate->kt1);
    107108       
    108         printf("sp =%#010" PRIx32 "\tra =%#010" PRIx32 "\t"
    109             "gp =%#010" PRIx32 "\n",
    110             istate->sp, istate->ra, istate->gp);
     109        printf("sp =%p\tra =%p\tgp =%p\n",
     110            (void *) istate->sp, (void *) istate->ra,
     111            (void *) istate->gp);
    111112}
    112113
  • kernel/arch/ppc32/src/interrupt.c

    r7b90778d r750636a  
    5454void istate_decode(istate_t *istate)
    5555{
    56         printf("r0 =%0#10" PRIx32 "\tr1 =%0#10" PRIx32 "\t"
    57             "r2 =%0#10" PRIx32 "\n", istate->r0, istate->sp, istate->r2);
     56        printf("r0 =%#0" PRIx32 "\tr1 =%p\tr2 =%#0" PRIx32 "\n",
     57            istate->r0, (void *) istate->sp, istate->r2);
    5858       
    59         printf("r3 =%0#10" PRIx32 "\tr4 =%0#10" PRIx32 "\t"
    60             "r5 =%0#10" PRIx32 "\n", istate->r3, istate->r4, istate->r5);
     59        printf("r3 =%#0" PRIx32 "\tr4 =%#0" PRIx32 "\tr5 =%#0" PRIx32 "\n",
     60            istate->r3, istate->r4, istate->r5);
    6161       
    62         printf("r6 =%0#10" PRIx32 "\tr7 =%0#10" PRIx32 "\t"
    63             "r8 =%0#10" PRIx32 "\n", istate->r6, istate->r7, istate->r8);
     62        printf("r6 =%#0" PRIx32 "\tr7 =%#0" PRIx32 "\tr8 =%#0" PRIx32 "\n",
     63            istate->r6, istate->r7, istate->r8);
    6464       
    65         printf("r9 =%0#10" PRIx32 "\tr10=%0#10" PRIx32 "\t"
    66             "r11=%0#10" PRIx32 "\n", istate->r9, istate->r10, istate->r11);
     65        printf("r9 =%#0" PRIx32 "\tr10=%#0" PRIx32 "\tr11=%#0" PRIx32 "\n",
     66            istate->r9, istate->r10, istate->r11);
    6767       
    68         printf("r12=%0#10" PRIx32 "\tr13=%0#10" PRIx32 "\t"
    69             "r14=%0#10" PRIx32 "\n", istate->r12, istate->r13, istate->r14);
     68        printf("r12=%#0" PRIx32 "\tr13=%#0" PRIx32 "\tr14=%#0" PRIx32 "\n",
     69            istate->r12, istate->r13, istate->r14);
    7070       
    71         printf("r15=%0#10" PRIx32 "\tr16=%0#10" PRIx32 "\t"
    72             "r17=%0#10" PRIx32 "\n", istate->r15, istate->r16, istate->r17);
     71        printf("r15=%#0" PRIx32 "\tr16=%#0" PRIx32 "\tr17=%#0" PRIx32 "\n",
     72            istate->r15, istate->r16, istate->r17);
    7373       
    74         printf("r18=%0#10" PRIx32 "\tr19=%0#10" PRIx32 "\t"
    75             "r20=%0#10" PRIx32 "\n", istate->r18, istate->r19, istate->r20);
     74        printf("r18=%#0" PRIx32 "\tr19=%#0" PRIx32 "\tr20=%#0" PRIx32 "\n",
     75            istate->r18, istate->r19, istate->r20);
    7676       
    77         printf("r21=%0#10" PRIx32 "\tr22=%0#10" PRIx32 "\t"
    78             "r23=%0#10" PRIx32 "\n", istate->r21, istate->r22, istate->r23);
     77        printf("r21=%#0" PRIx32 "\tr22=%#0" PRIx32 "\tr23=%#0" PRIx32 "\n",
     78            istate->r21, istate->r22, istate->r23);
    7979       
    80         printf("r24=%0#10" PRIx32 "\tr25=%0#10" PRIx32 "\t"
    81             "r26=%0#10" PRIx32 "\n", istate->r24, istate->r25, istate->r26);
     80        printf("r24=%#0" PRIx32 "\tr25=%#0" PRIx32 "\tr26=%#0" PRIx32 "\n",
     81            istate->r24, istate->r25, istate->r26);
    8282       
    83         printf("r27=%0#10" PRIx32 "\tr28=%0#10" PRIx32 "\t"
    84             "r29=%0#10" PRIx32 "\n", istate->r27, istate->r28, istate->r29);
     83        printf("r27=%#0" PRIx32 "\tr28=%#0" PRIx32 "\tr29=%#0" PRIx32 "\n",
     84            istate->r27, istate->r28, istate->r29);
    8585       
    86         printf("r30=%0#10" PRIx32 "\tr31=%0#10" PRIx32 "\n",
     86        printf("r30=%#0" PRIx32 "\tr31=%#0" PRIx32 "\n",
    8787            istate->r30, istate->r31);
    8888       
    89         printf("cr =%0#10" PRIx32 "\tpc =%0#10" PRIx32 "\t"
    90             "lr =%0#10" PRIx32 "\n", istate->cr, istate->pc, istate->lr);
     89        printf("cr =%#0" PRIx32 "\tpc =%p\tlr =%p\n",
     90            istate->cr, (void *) istate->pc, (void *) istate->lr);
    9191       
    92         printf("ctr=%0#10" PRIx32 "\txer=%0#10" PRIx32 "\t"
    93             "dar=%0#10" PRIx32 "\n", istate->ctr, istate->xer, istate->dar);
     92        printf("ctr=%#0" PRIx32 "\txer=%#0" PRIx32 "\tdar=%#0" PRIx32 "\n",
     93            istate->ctr, istate->xer, istate->dar);
    9494       
    95         printf("srr1=%0#10" PRIx32 "\n", istate->srr1);
     95        printf("srr1=%p\n", (void *) istate->srr1);
    9696}
    9797
  • uspace/lib/c/arch/ia32/Makefile.common

    r7b90778d r750636a  
    2828
    2929CLANG_ARCH = i386
    30 GCC_CFLAGS += -march=pentium -fno-omit-frame-pointer
     30GCC_CFLAGS += -march=pentium
    3131
    3232ENDIANESS = LE
Note: See TracChangeset for help on using the changeset viewer.