Changeset fd3c9e5 in mainline
- Timestamp:
- 2005-10-07T09:53:17Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 92e5431
- Parents:
- cc205f1
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/mm/tlb.c
rcc205f1 rfd3c9e5 87 87 __address badvaddr; 88 88 pte_t *pte; 89 89 90 // debug 91 entry_hi_t hi; 92 90 93 badvaddr = cp0_badvaddr_read(); 94 95 // debug 96 hi.value = cp0_entry_hi_read(); 97 printf("TLB Refill: hi.vnp2=%X\n", hi.vpn2); 91 98 92 99 spinlock_lock(&VM->lock); -
arch/mips32/src/mm/vm.c
rcc205f1 rfd3c9e5 49 49 spinlock_lock(&vm->lock); 50 50 hi.asid = vm->asid; 51 cp0_entry_hi_write( *((__u32 *) &hi));51 cp0_entry_hi_write(hi.value); 52 52 spinlock_lock(&vm->unlock); 53 53 cpu_priority_restore(pri); -
test/mm/mapping1/test.c
rcc205f1 rfd3c9e5 53 53 *((__u32 *) frame1) = VALUE1; 54 54 55 printf("Mapping % X to %X.\n", PAGE0, KA2PA(frame0));55 printf("Mapping %P to %P.\n", PAGE0, KA2PA(frame0)); 56 56 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)); 58 58 map_page_to_frame(PAGE1, KA2PA(frame1), PAGE_PRESENT, 0); 59 59 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)); 62 62 63 63 ASSERT(v0 == VALUE0); 64 64 ASSERT(v1 == VALUE1); 65 65 66 printf("Writing 0 to % X.\n", PAGE0);66 printf("Writing 0 to %P.\n", PAGE0); 67 67 *((__u32 *) PAGE0) = 0; 68 printf("Writing 0 to % X.\n", PAGE1);68 printf("Writing 0 to %P.\n", PAGE1); 69 69 *((__u32 *) PAGE1) = 0; 70 70 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)); 73 73 74 74 ASSERT(v0 == 0);
Note:
See TracChangeset
for help on using the changeset viewer.