Changeset 410ed0d in mainline
- Timestamp:
- 2006-10-27T20:39:59Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e35fd7
- Parents:
- ec04b20
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/tsb.c
rec04b20 r410ed0d 52 52 * @param as Address space. 53 53 * @param page First page to invalidate in TSB. 54 * @param pages Number of pages to invalidate. Value of (count_t) -1 means the whole TSB. 54 * @param pages Number of pages to invalidate. 55 * Value of (count_t) -1 means the whole TSB. 55 56 */ 56 57 void tsb_invalidate(as_t *as, uintptr_t page, count_t pages) … … 65 66 66 67 for (i = 0; i < cnt; i++) { 67 as->arch.itsb[(i0 + i) & (ITSB_ENTRY_COUNT-1)].tag.invalid = 0;68 as->arch.dtsb[(i0 + i) & (DTSB_ENTRY_COUNT-1)].tag.invalid = 0;68 as->arch.itsb[(i0 + i) & (ITSB_ENTRY_COUNT-1)].tag.invalid = true; 69 as->arch.dtsb[(i0 + i) & (DTSB_ENTRY_COUNT-1)].tag.invalid = true; 69 70 } 70 71 } … … 88 89 */ 89 90 90 tsb->tag.invalid = 1; /* invalidate the entry (tag target has this set to 0) */ 91 tsb->tag.invalid = true; /* invalidate the entry 92 * (tag target has this 93 * set to 0) */ 91 94 92 95 write_barrier(); … … 99 102 tsb->data.cp = t->c; 100 103 tsb->data.cv = t->c; 101 tsb->data.p = t->k; /* p as privileged */104 tsb->data.p = t->k; /* p as privileged */ 102 105 tsb->data.v = t->p; 103 106 104 107 write_barrier(); 105 108 106 tsb->tag.invalid = 0; /* mark the entry as valid */109 tsb->tag.invalid = false; /* mark the entry as valid */ 107 110 } 108 111 … … 126 129 */ 127 130 128 tsb->tag.invalid = 1; /* invalidate the entry (tag target has this set to 0) */ 131 tsb->tag.invalid = true; /* invalidate the entry 132 * (tag target has this 133 * set to 0) */ 129 134 130 135 write_barrier(); … … 137 142 tsb->data.cp = t->c; 138 143 tsb->data.cv = t->c; 139 tsb->data.p = t->k; /* p as privileged */144 tsb->data.p = t->k; /* p as privileged */ 140 145 tsb->data.w = ro ? false : t->w; 141 146 tsb->data.v = t->p; … … 143 148 write_barrier(); 144 149 145 tsb->tag.invalid = 0; /* mark the entry as valid */150 tsb->tag.invalid = true; /* mark the entry as valid */ 146 151 } 147 152
Note:
See TracChangeset
for help on using the changeset viewer.