Changeset 89f61be in mainline
- Timestamp:
- 2013-03-22T07:26:33Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8fe2c9bd
- Parents:
- ddfd158
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/mm/tlb.c
rddfd158 r89f61be 48 48 #include <symtab.h> 49 49 50 #define VPN_SHIFT 12 50 #define PFN_SHIFT 12 51 #define VPN_SHIFT 12 51 52 #define ADDR2VPN(a) ((a) >> VPN_SHIFT) 52 53 #define ADDR2VPN2(a) (ADDR2VPN((a)) >> 1) 53 54 #define VPN2ADDR(vpn) ((vpn) << VPN_SHIFT) 54 55 #define VPN22ADDR(vpn2) (VPN2ADDR(vpn2) << 1) 56 #define PFN2ADDR(pfn) ((pfn) << PFN_SHIFT) 55 57 56 58 #define BANK_SELECT_BIT(a) (((a) >> PAGE_WIDTH) & 1) … … 294 296 printf("%-4u %-6u %0#10x %-#6x %1u%1u%1u%1u %0#10x\n", 295 297 i, hi.asid, VPN22ADDR(hi.vpn2), mask.mask, 296 lo0.g, lo0.v, lo0.d, lo0.c, lo0.pfn << FRAME_WIDTH);298 lo0.g, lo0.v, lo0.d, lo0.c, PFN2ADDR(lo0.pfn)); 297 299 printf(" %1u%1u%1u%1u %0#10x\n", 298 lo1.g, lo1.v, lo1.d, lo1.c, lo1.pfn << FRAME_WIDTH);300 lo1.g, lo1.v, lo1.d, lo1.c, PFN2ADDR(lo1.pfn)); 299 301 } 300 302
Note:
See TracChangeset
for help on using the changeset viewer.