Changeset 98000fb in mainline for kernel/arch/sparc64/src/mm/tsb.c


Ignore:
Timestamp:
2009-06-03T19:34:45Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
301ff30
Parents:
69e68e3
Message:

remove redundant index_t and count_t types (which were always quite ambiguous and not actually needed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/mm/tsb.c

    r69e68e3 r98000fb  
    5151 * @param as Address space.
    5252 * @param page First page to invalidate in TSB.
    53  * @param pages Number of pages to invalidate. Value of (count_t) -1 means the
     53 * @param pages Number of pages to invalidate. Value of (size_t) -1 means the
    5454 *      whole TSB.
    5555 */
    56 void tsb_invalidate(as_t *as, uintptr_t page, count_t pages)
     56void tsb_invalidate(as_t *as, uintptr_t page, size_t pages)
    5757{
    58         index_t i0, i;
    59         count_t cnt;
     58        size_t i0;
     59        size_t i;
     60        size_t cnt;
    6061       
    6162        ASSERT(as->arch.itsb && as->arch.dtsb);
     
    6465        ASSERT(i0 < ITSB_ENTRY_COUNT && i0 < DTSB_ENTRY_COUNT);
    6566
    66         if (pages == (count_t) -1 || (pages * 2) > ITSB_ENTRY_COUNT)
     67        if (pages == (size_t) -1 || (pages * 2) > ITSB_ENTRY_COUNT)
    6768                cnt = ITSB_ENTRY_COUNT;
    6869        else
     
    8283 * @param index Zero if lower 8K-subpage, one if higher 8K subpage.
    8384 */
    84 void itsb_pte_copy(pte_t *t, index_t index)
     85void itsb_pte_copy(pte_t *t, size_t index)
    8586{
    8687        as_t *as;
    8788        tsb_entry_t *tsb;
    88         index_t entry;
     89        size_t entry;
    8990
    9091        ASSERT(index <= 1);
     
    128129 * @param ro    If true, the mapping is copied read-only.
    129130 */
    130 void dtsb_pte_copy(pte_t *t, index_t index, bool ro)
     131void dtsb_pte_copy(pte_t *t, size_t index, bool ro)
    131132{
    132133        as_t *as;
    133134        tsb_entry_t *tsb;
    134         index_t entry;
     135        size_t entry;
    135136       
    136137        ASSERT(index <= 1);
Note: See TracChangeset for help on using the changeset viewer.