Changeset 280a27e in mainline for arch/mips32


Ignore:
Timestamp:
2006-04-16T13:16:44Z (20 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.

Location:
arch/mips32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/Makefile.inc

    rc624b96 r280a27e  
    107107endif
    108108
     109## Compile with support for software integer division.
     110#
     111
     112CONFIG_SOFTINT = y
     113
    109114
    110115ARCH_SOURCES = \
  • arch/mips32/src/debugger.c

    rc624b96 r280a27e  
    243243                if (breakpoints[i].address) {
    244244                        symbol = get_symtab_entry(breakpoints[i].address);
    245                         printf("%d. 0x%p in %s\n",i,
     245                        printf("%d. %p in %s\n",i,
    246246                               breakpoints[i].address, symbol);
    247247                        printf("     Count(%d) ", breakpoints[i].counter);
     
    329329               
    330330                if (!(cur->flags & BKPOINT_FUNCCALL))
    331                         printf("***Breakpoint %d: 0x%p in %s.\n", i,
     331                        printf("***Breakpoint %d: %p in %s.\n", i,
    332332                               fireaddr, get_symtab_entry(istate->epc));
    333333
     
    342342                cur->flags |= BKPOINT_INPROG;
    343343        } else {
    344                 printf("***Breakpoint 0x%p in %s.\n", fireaddr,
     344                printf("***Breakpoint %p in %s.\n", fireaddr,
    345345                       get_symtab_entry(fireaddr));
    346346                /* Move on to next instruction */
  • arch/mips32/src/exception.c

    rc624b96 r280a27e  
    7474                rasymbol = s;
    7575       
    76         printf("PC: %X(%s) RA: %X(%s), SP(%P)\n",istate->epc,pcsymbol,
     76        printf("PC: %#X(%s) RA: %#X(%s), SP(%P)\n",istate->epc,pcsymbol,
    7777               istate->ra,rasymbol, istate->sp);
    7878}
  • arch/mips32/src/mm/tlb.c

    rc624b96 r280a27e  
    410410                lo1.value = cp0_entry_lo1_read();
    411411               
    412                 printf("%d: asid=%d, vpn2=%d, mask=%d\tg[0]=%d, v[0]=%d, d[0]=%d, c[0]=%B, pfn[0]=%d\n"
    413                        "\t\t\t\tg[1]=%d, v[1]=%d, d[1]=%d, c[1]=%B, pfn[1]=%d\n",
     412                printf("%d: asid=%d, vpn2=%d, mask=%d\tg[0]=%d, v[0]=%d, d[0]=%d, c[0]=%hhd, pfn[0]=%d\n"
     413                       "\t\t\t\tg[1]=%d, v[1]=%d, d[1]=%d, c[1]=%hhd, pfn[1]=%d\n",
    414414                       i, hi.asid, hi.vpn2, mask.mask, lo0.g, lo0.v, lo0.d, lo0.c, lo0.pfn,
    415415                       lo1.g, lo1.v, lo1.d, lo1.c, lo1.pfn);
Note: See TracChangeset for help on using the changeset viewer.