Changeset 208259c in mainline for arch/ia64/src/mm/tlb.c


Ignore:
Timestamp:
2006-06-09T12:51:12Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
92922e6
Parents:
22870b2
Message:

On ia64, purge DTR entry before overwriting it with new contents.

File:
1 edited

Legend:

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

    r22870b2 r208259c  
    190190}
    191191
    192 
    193192/** Insert data into data translation cache.
    194193 *
     
    342341/** Insert data into DTLB.
    343342 *
    344  * @param va Virtual page address.
    345  * @param asid Address space identifier.
    346  * @param entry The rest of TLB entry as required by TLB insertion format.
     343 * @param page Virtual page address including VRN bits.
     344 * @param frame Physical frame address.
    347345 * @param dtr If true, insert into data translation register, use data translation cache otherwise.
    348346 * @param tr Translation register if dtr is true, ignored otherwise.
     
    369367                dtc_mapping_insert(page, ASID_KERNEL, entry);
    370368}
     369
     370/** Purge kernel entries from DTR.
     371 *
     372 * Purge DTR entries used by the kernel.
     373 *
     374 * @param page Virtual page address including VRN bits.
     375 * @param width Width of the purge in bits.
     376 */
     377void dtr_purge(__address page, count_t width)
     378{
     379        __asm__ volatile ("ptr.d %0, %1\n" : : "r" (page), "r" (width<<2));
     380}
     381
    371382
    372383/** Copy content of PTE into data translation cache.
Note: See TracChangeset for help on using the changeset viewer.