Changeset e41455d in mainline
- Timestamp:
- 2007-04-17T18:53:58Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2e915f2
- Parents:
- 9a7a970
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/tsb.c
r9a7a970 re41455d 62 62 63 63 i0 = (page >> MMU_PAGE_WIDTH) & TSB_INDEX_MASK; 64 ASSERT(i0 < ITSB_ENTRY_COUNT && i0 < DTSB_ENTRY_COUNT); 65 64 66 if (pages == (count_t) -1 || (pages * 2) > ITSB_ENTRY_COUNT) 65 67 cnt = ITSB_ENTRY_COUNT; … … 85 87 tsb_entry_t *tsb; 86 88 index_t entry; 89 90 ASSERT(index <= 1); 87 91 88 92 as = t->as; 89 93 entry = ((t->page >> MMU_PAGE_WIDTH) + index) & TSB_INDEX_MASK; 94 ASSERT(entry < ITSB_ENTRY_COUNT); 90 95 tsb = &as->arch.itsb[entry]; 91 96 … … 103 108 104 109 tsb->tag.context = as->asid; 105 tsb->tag.va_tag = (t->page + (index << MMU_PAGE_WIDTH)) >>106 110 /* the shift is bigger than PAGE_WIDTH, do not bother with index */ 111 tsb->tag.va_tag = t->page >> VA_TAG_PAGE_SHIFT; 107 112 tsb->data.value = 0; 108 113 tsb->data.size = PAGESIZE_8K; … … 129 134 index_t entry; 130 135 136 ASSERT(index <= 1); 137 131 138 as = t->as; 132 139 entry = ((t->page >> MMU_PAGE_WIDTH) + index) & TSB_INDEX_MASK; 140 ASSERT(entry < DTSB_ENTRY_COUNT); 133 141 tsb = &as->arch.dtsb[entry]; 134 142 … … 146 154 147 155 tsb->tag.context = as->asid; 148 tsb->tag.va_tag = (t->page + (index << MMU_PAGE_WIDTH)) >>149 156 /* the shift is bigger than PAGE_WIDTH, do not bother with index */ 157 tsb->tag.va_tag = t->page >> VA_TAG_PAGE_SHIFT; 150 158 tsb->data.value = 0; 151 159 tsb->data.size = PAGESIZE_8K;
Note:
See TracChangeset
for help on using the changeset viewer.