Changeset 7f1c620 in mainline for arch/mips32/src/mm/tlb.c


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/mm/tlb.c

    r991779c5 r7f1c620  
    5252static void tlb_modified_fail(istate_t *istate);
    5353
    54 static pte_t *find_mapping_and_check(__address badvaddr, int access, istate_t *istate, int *pfrc);
    55 
    56 static void prepare_entry_lo(entry_lo_t *lo, bool g, bool v, bool d, bool cacheable, __address pfn);
    57 static void prepare_entry_hi(entry_hi_t *hi, asid_t asid, __address addr);
     54static pte_t *find_mapping_and_check(uintptr_t badvaddr, int access, istate_t *istate, int *pfrc);
     55
     56static void prepare_entry_lo(entry_lo_t *lo, bool g, bool v, bool d, bool cacheable, uintptr_t pfn);
     57static void prepare_entry_hi(entry_hi_t *hi, asid_t asid, uintptr_t addr);
    5858
    5959/** Initialize TLB
     
    9797        entry_hi_t hi;
    9898        asid_t asid;
    99         __address badvaddr;
     99        uintptr_t badvaddr;
    100100        pte_t *pte;
    101101        int pfrc;
     
    167167{
    168168        tlb_index_t index;
    169         __address badvaddr;
     169        uintptr_t badvaddr;
    170170        entry_lo_t lo;
    171171        entry_hi_t hi;
     
    251251{
    252252        tlb_index_t index;
    253         __address badvaddr;
     253        uintptr_t badvaddr;
    254254        entry_lo_t lo;
    255255        entry_hi_t hi;
     
    384384 * @return PTE on success, NULL otherwise.
    385385 */
    386 pte_t *find_mapping_and_check(__address badvaddr, int access, istate_t *istate, int *pfrc)
     386pte_t *find_mapping_and_check(uintptr_t badvaddr, int access, istate_t *istate, int *pfrc)
    387387{
    388388        entry_hi_t hi;
     
    446446}
    447447
    448 void prepare_entry_lo(entry_lo_t *lo, bool g, bool v, bool d, bool cacheable, __address pfn)
     448void prepare_entry_lo(entry_lo_t *lo, bool g, bool v, bool d, bool cacheable, uintptr_t pfn)
    449449{
    450450        lo->value = 0;
     
    456456}
    457457
    458 void prepare_entry_hi(entry_hi_t *hi, asid_t asid, __address addr)
     458void prepare_entry_hi(entry_hi_t *hi, asid_t asid, uintptr_t addr)
    459459{
    460460        hi->value = ALIGN_DOWN(addr, PAGE_SIZE * 2);
     
    568568 * @param cnt Number of entries to invalidate.
    569569 */
    570 void tlb_invalidate_pages(asid_t asid, __address page, count_t cnt)
     570void tlb_invalidate_pages(asid_t asid, uintptr_t page, count_t cnt)
    571571{
    572572        int i;
Note: See TracChangeset for help on using the changeset viewer.