Fork us on GitHub Follow us on Facebook Follow us on Twitter

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


Ignore:
Timestamp:
2009-06-03T19:34:45Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
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/tlb.c

    r69e68e3 r98000fb  
    5555#endif
    5656
    57 static void dtlb_pte_copy(pte_t *, index_t, bool);
    58 static void itlb_pte_copy(pte_t *, index_t);
     57static void dtlb_pte_copy(pte_t *, size_t, bool);
     58static void itlb_pte_copy(pte_t *, size_t);
    5959static void do_fast_instruction_access_mmu_miss_fault(istate_t *, const char *);
    6060static void do_fast_data_access_mmu_miss_fault(istate_t *, tlb_tag_access_reg_t,
     
    131131 *                      of its w field.
    132132 */
    133 void dtlb_pte_copy(pte_t *t, index_t index, bool ro)
     133void dtlb_pte_copy(pte_t *t, size_t index, bool ro)
    134134{
    135135        tlb_tag_access_reg_t tag;
     
    168168 * @param index         Zero if lower 8K-subpage, one if higher 8K-subpage.
    169169 */
    170 void itlb_pte_copy(pte_t *t, index_t index)
     170void itlb_pte_copy(pte_t *t, size_t index)
    171171{
    172172        tlb_tag_access_reg_t tag;
     
    201201{
    202202        uintptr_t page_16k = ALIGN_DOWN(istate->tpc, PAGE_SIZE);
    203         index_t index = (istate->tpc >> MMU_PAGE_WIDTH) % MMU_PAGES_PER_PAGE;
     203        size_t index = (istate->tpc >> MMU_PAGE_WIDTH) % MMU_PAGES_PER_PAGE;
    204204        pte_t *t;
    205205
     
    246246        uintptr_t page_8k;
    247247        uintptr_t page_16k;
    248         index_t index;
     248        size_t index;
    249249        pte_t *t;
    250250
     
    310310{
    311311        uintptr_t page_16k;
    312         index_t index;
     312        size_t index;
    313313        pte_t *t;
    314314
     
    580580 * @param cnt           Number of ITLB and DTLB entries to invalidate.
    581581 */
    582 void tlb_invalidate_pages(asid_t asid, uintptr_t page, count_t cnt)
     582void tlb_invalidate_pages(asid_t asid, uintptr_t page, size_t cnt)
    583583{
    584584        unsigned int i;
Note: See TracChangeset for help on using the changeset viewer.