Changeset fd3c9e5 in mainline


Ignore:
Timestamp:
2005-10-07T09:53:17Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
92e5431
Parents:
cc205f1
Message:

Small changes to mips32 mm.
Small changes in mm mapping test #1.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/mm/tlb.c

    rcc205f1 rfd3c9e5  
    8787        __address badvaddr;
    8888        pte_t *pte;
    89        
     89
     90// debug       
     91        entry_hi_t hi;
     92
    9093        badvaddr = cp0_badvaddr_read();
     94
     95// debug
     96        hi.value = cp0_entry_hi_read();
     97        printf("TLB Refill: hi.vnp2=%X\n", hi.vpn2);
    9198       
    9299        spinlock_lock(&VM->lock);               
  • arch/mips32/src/mm/vm.c

    rcc205f1 rfd3c9e5  
    4949        spinlock_lock(&vm->lock);
    5050        hi.asid = vm->asid;
    51         cp0_entry_hi_write(*((__u32 *) &hi));   
     51        cp0_entry_hi_write(hi.value);   
    5252        spinlock_lock(&vm->unlock);
    5353        cpu_priority_restore(pri);
  • test/mm/mapping1/test.c

    rcc205f1 rfd3c9e5  
    5353        *((__u32 *) frame1) = VALUE1;
    5454       
    55         printf("Mapping %X to %X.\n", PAGE0, KA2PA(frame0));
     55        printf("Mapping %P to %P.\n", PAGE0, KA2PA(frame0));
    5656        map_page_to_frame(PAGE0, KA2PA(frame0), PAGE_PRESENT, 0);
    57         printf("Mapping %X to %X.\n", PAGE1, KA2PA(frame1));   
     57        printf("Mapping %P to %P.\n", PAGE1, KA2PA(frame1));   
    5858        map_page_to_frame(PAGE1, KA2PA(frame1), PAGE_PRESENT, 0);
    5959       
    60         printf("Value at %X is %X.\n", PAGE0, v0 = *((__u32 *) PAGE0));
    61         printf("Value at %X is %X.\n", PAGE1, v1 = *((__u32 *) PAGE1));
     60        printf("Value at %P is %L.\n", PAGE0, v0 = *((__u32 *) PAGE0));
     61        printf("Value at %P is %L.\n", PAGE1, v1 = *((__u32 *) PAGE1));
    6262       
    6363        ASSERT(v0 == VALUE0);
    6464        ASSERT(v1 == VALUE1);
    6565
    66         printf("Writing 0 to %X.\n", PAGE0);
     66        printf("Writing 0 to %P.\n", PAGE0);
    6767        *((__u32 *) PAGE0) = 0;
    68         printf("Writing 0 to %X.\n", PAGE1);
     68        printf("Writing 0 to %P.\n", PAGE1);
    6969        *((__u32 *) PAGE1) = 0;
    7070       
    71         printf("Value at %X is %X.\n", PAGE0, v0 = *((__u32 *) PAGE0));
    72         printf("Value at %X is %X.\n", PAGE1, v1 = *((__u32 *) PAGE1));
     71        printf("Value at %P is %L.\n", PAGE0, v0 = *((__u32 *) PAGE0));
     72        printf("Value at %P is %L.\n", PAGE1, v1 = *((__u32 *) PAGE1));
    7373
    7474        ASSERT(v0 == 0);
Note: See TracChangeset for help on using the changeset viewer.