Changeset 98000fb in mainline for kernel/arch/sparc64/src/mm/tsb.c
- Timestamp:
- 2009-06-03T19:34:45Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/tsb.c
r69e68e3 r98000fb 51 51 * @param as Address space. 52 52 * @param page First page to invalidate in TSB. 53 * @param pages Number of pages to invalidate. Value of ( count_t) -1 means the53 * @param pages Number of pages to invalidate. Value of (size_t) -1 means the 54 54 * whole TSB. 55 55 */ 56 void tsb_invalidate(as_t *as, uintptr_t page, count_t pages)56 void tsb_invalidate(as_t *as, uintptr_t page, size_t pages) 57 57 { 58 index_t i0, i; 59 count_t cnt; 58 size_t i0; 59 size_t i; 60 size_t cnt; 60 61 61 62 ASSERT(as->arch.itsb && as->arch.dtsb); … … 64 65 ASSERT(i0 < ITSB_ENTRY_COUNT && i0 < DTSB_ENTRY_COUNT); 65 66 66 if (pages == ( count_t) -1 || (pages * 2) > ITSB_ENTRY_COUNT)67 if (pages == (size_t) -1 || (pages * 2) > ITSB_ENTRY_COUNT) 67 68 cnt = ITSB_ENTRY_COUNT; 68 69 else … … 82 83 * @param index Zero if lower 8K-subpage, one if higher 8K subpage. 83 84 */ 84 void itsb_pte_copy(pte_t *t, index_t index)85 void itsb_pte_copy(pte_t *t, size_t index) 85 86 { 86 87 as_t *as; 87 88 tsb_entry_t *tsb; 88 index_t entry;89 size_t entry; 89 90 90 91 ASSERT(index <= 1); … … 128 129 * @param ro If true, the mapping is copied read-only. 129 130 */ 130 void dtsb_pte_copy(pte_t *t, index_t index, bool ro)131 void dtsb_pte_copy(pte_t *t, size_t index, bool ro) 131 132 { 132 133 as_t *as; 133 134 tsb_entry_t *tsb; 134 index_t entry;135 size_t entry; 135 136 136 137 ASSERT(index <= 1);
Note:
See TracChangeset
for help on using the changeset viewer.