Ignore:
Timestamp:
2019-02-11T22:31:04Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
aaf9789c
Parents:
e3272101 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merging with upstream/master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/arch/mm/sun4u/tlb.h

    re3272101 rd5a89a3  
    243243 * Determine the number of entries in the DMMU's small TLB.
    244244 */
    245 NO_TRACE static inline uint16_t tlb_dsmall_size(void)
     245_NO_TRACE static inline uint16_t tlb_dsmall_size(void)
    246246{
    247247        return 16;
     
    251251 * Determine the number of entries in each DMMU's big TLB.
    252252 */
    253 NO_TRACE static inline uint16_t tlb_dbig_size(void)
     253_NO_TRACE static inline uint16_t tlb_dbig_size(void)
    254254{
    255255        return 512;
     
    259259 * Determine the number of entries in the IMMU's small TLB.
    260260 */
    261 NO_TRACE static inline uint16_t tlb_ismall_size(void)
     261_NO_TRACE static inline uint16_t tlb_ismall_size(void)
    262262{
    263263        return 16;
     
    267267 * Determine the number of entries in the IMMU's big TLB.
    268268 */
    269 NO_TRACE static inline uint16_t tlb_ibig_size(void)
     269_NO_TRACE static inline uint16_t tlb_ibig_size(void)
    270270{
    271271        if (((ver_reg_t) ver_read()).impl == IMPL_ULTRASPARCIV_PLUS)
     
    281281 * @return              Current value of Primary Context Register.
    282282 */
    283 NO_TRACE static inline uint64_t mmu_primary_context_read(void)
     283_NO_TRACE static inline uint64_t mmu_primary_context_read(void)
    284284{
    285285        return asi_u64_read(ASI_DMMU, VA_PRIMARY_CONTEXT_REG);
     
    290290 * @param v             New value of Primary Context Register.
    291291 */
    292 NO_TRACE static inline void mmu_primary_context_write(uint64_t v)
     292_NO_TRACE static inline void mmu_primary_context_write(uint64_t v)
    293293{
    294294        asi_u64_write(ASI_DMMU, VA_PRIMARY_CONTEXT_REG, v);
     
    300300 * @return              Current value of Secondary Context Register.
    301301 */
    302 NO_TRACE static inline uint64_t mmu_secondary_context_read(void)
     302_NO_TRACE static inline uint64_t mmu_secondary_context_read(void)
    303303{
    304304        return asi_u64_read(ASI_DMMU, VA_SECONDARY_CONTEXT_REG);
     
    309309 * @param v             New value of Primary Context Register.
    310310 */
    311 NO_TRACE static inline void mmu_secondary_context_write(uint64_t v)
     311_NO_TRACE static inline void mmu_secondary_context_write(uint64_t v)
    312312{
    313313        asi_u64_write(ASI_DMMU, VA_SECONDARY_CONTEXT_REG, v);
     
    324324 *                      Register.
    325325 */
    326 NO_TRACE static inline uint64_t itlb_data_access_read(size_t entry)
     326_NO_TRACE static inline uint64_t itlb_data_access_read(size_t entry)
    327327{
    328328        itlb_data_access_addr_t reg;
     
    338338 * @param value         Value to be written.
    339339 */
    340 NO_TRACE static inline void itlb_data_access_write(size_t entry, uint64_t value)
     340_NO_TRACE static inline void itlb_data_access_write(size_t entry, uint64_t value)
    341341{
    342342        itlb_data_access_addr_t reg;
     
    355355 *                      Register.
    356356 */
    357 NO_TRACE static inline uint64_t dtlb_data_access_read(size_t entry)
     357_NO_TRACE static inline uint64_t dtlb_data_access_read(size_t entry)
    358358{
    359359        dtlb_data_access_addr_t reg;
     
    369369 * @param value         Value to be written.
    370370 */
    371 NO_TRACE static inline void dtlb_data_access_write(size_t entry, uint64_t value)
     371_NO_TRACE static inline void dtlb_data_access_write(size_t entry, uint64_t value)
    372372{
    373373        dtlb_data_access_addr_t reg;
     
    385385 * @return              Current value of specified IMMU TLB Tag Read Register.
    386386 */
    387 NO_TRACE static inline uint64_t itlb_tag_read_read(size_t entry)
     387_NO_TRACE static inline uint64_t itlb_tag_read_read(size_t entry)
    388388{
    389389        itlb_tag_read_addr_t tag;
     
    400400 * @return              Current value of specified DMMU TLB Tag Read Register.
    401401 */
    402 NO_TRACE static inline uint64_t dtlb_tag_read_read(size_t entry)
     402_NO_TRACE static inline uint64_t dtlb_tag_read_read(size_t entry)
    403403{
    404404        dtlb_tag_read_addr_t tag;
     
    419419 *                      Register.
    420420 */
    421 NO_TRACE static inline uint64_t itlb_data_access_read(int tlb, size_t entry)
     421_NO_TRACE static inline uint64_t itlb_data_access_read(int tlb, size_t entry)
    422422{
    423423        itlb_data_access_addr_t reg;
     
    434434 * @param value         Value to be written.
    435435 */
    436 NO_TRACE static inline void itlb_data_access_write(int tlb, size_t entry,
     436_NO_TRACE static inline void itlb_data_access_write(int tlb, size_t entry,
    437437    uint64_t value)
    438438{
     
    454454 *                      Register.
    455455 */
    456 NO_TRACE static inline uint64_t dtlb_data_access_read(int tlb, size_t entry)
     456_NO_TRACE static inline uint64_t dtlb_data_access_read(int tlb, size_t entry)
    457457{
    458458        dtlb_data_access_addr_t reg;
     
    470470 * @param value         Value to be written.
    471471 */
    472 NO_TRACE static inline void dtlb_data_access_write(int tlb, size_t entry,
     472_NO_TRACE static inline void dtlb_data_access_write(int tlb, size_t entry,
    473473    uint64_t value)
    474474{
     
    489489 * @return              Current value of specified IMMU TLB Tag Read Register.
    490490 */
    491 NO_TRACE static inline uint64_t itlb_tag_read_read(int tlb, size_t entry)
     491_NO_TRACE static inline uint64_t itlb_tag_read_read(int tlb, size_t entry)
    492492{
    493493        itlb_tag_read_addr_t tag;
     
    506506 * @return              Current value of specified DMMU TLB Tag Read Register.
    507507 */
    508 NO_TRACE static inline uint64_t dtlb_tag_read_read(int tlb, size_t entry)
     508_NO_TRACE static inline uint64_t dtlb_tag_read_read(int tlb, size_t entry)
    509509{
    510510        dtlb_tag_read_addr_t tag;
     
    522522 * @param v             Value to be written.
    523523 */
    524 NO_TRACE static inline void itlb_tag_access_write(uint64_t v)
     524_NO_TRACE static inline void itlb_tag_access_write(uint64_t v)
    525525{
    526526        asi_u64_write(ASI_IMMU, VA_IMMU_TAG_ACCESS, v);
     
    532532 * @return              Current value of IMMU TLB Tag Access Register.
    533533 */
    534 NO_TRACE static inline uint64_t itlb_tag_access_read(void)
     534_NO_TRACE static inline uint64_t itlb_tag_access_read(void)
    535535{
    536536        return asi_u64_read(ASI_IMMU, VA_IMMU_TAG_ACCESS);
     
    541541 * @param v             Value to be written.
    542542 */
    543 NO_TRACE static inline void dtlb_tag_access_write(uint64_t v)
     543_NO_TRACE static inline void dtlb_tag_access_write(uint64_t v)
    544544{
    545545        asi_u64_write(ASI_DMMU, VA_DMMU_TAG_ACCESS, v);
     
    551551 * @return              Current value of DMMU TLB Tag Access Register.
    552552 */
    553 NO_TRACE static inline uint64_t dtlb_tag_access_read(void)
     553_NO_TRACE static inline uint64_t dtlb_tag_access_read(void)
    554554{
    555555        return asi_u64_read(ASI_DMMU, VA_DMMU_TAG_ACCESS);
     
    560560 * @param v             Value to be written.
    561561 */
    562 NO_TRACE static inline void itlb_data_in_write(uint64_t v)
     562_NO_TRACE static inline void itlb_data_in_write(uint64_t v)
    563563{
    564564        asi_u64_write(ASI_ITLB_DATA_IN_REG, 0, v);
     
    570570 * @param v             Value to be written.
    571571 */
    572 NO_TRACE static inline void dtlb_data_in_write(uint64_t v)
     572_NO_TRACE static inline void dtlb_data_in_write(uint64_t v)
    573573{
    574574        asi_u64_write(ASI_DTLB_DATA_IN_REG, 0, v);
     
    580580 * @return              Current content of I-SFSR register.
    581581 */
    582 NO_TRACE static inline uint64_t itlb_sfsr_read(void)
     582_NO_TRACE static inline uint64_t itlb_sfsr_read(void)
    583583{
    584584        return asi_u64_read(ASI_IMMU, VA_IMMU_SFSR);
     
    589589 * @param v             New value of I-SFSR register.
    590590 */
    591 NO_TRACE static inline void itlb_sfsr_write(uint64_t v)
     591_NO_TRACE static inline void itlb_sfsr_write(uint64_t v)
    592592{
    593593        asi_u64_write(ASI_IMMU, VA_IMMU_SFSR, v);
     
    599599 * @return              Current content of D-SFSR register.
    600600 */
    601 NO_TRACE static inline uint64_t dtlb_sfsr_read(void)
     601_NO_TRACE static inline uint64_t dtlb_sfsr_read(void)
    602602{
    603603        return asi_u64_read(ASI_DMMU, VA_DMMU_SFSR);
     
    608608 * @param v             New value of D-SFSR register.
    609609 */
    610 NO_TRACE static inline void dtlb_sfsr_write(uint64_t v)
     610_NO_TRACE static inline void dtlb_sfsr_write(uint64_t v)
    611611{
    612612        asi_u64_write(ASI_DMMU, VA_DMMU_SFSR, v);
     
    618618 * @return              Current content of D-SFAR register.
    619619 */
    620 NO_TRACE static inline uint64_t dtlb_sfar_read(void)
     620_NO_TRACE static inline uint64_t dtlb_sfar_read(void)
    621621{
    622622        return asi_u64_read(ASI_DMMU, VA_DMMU_SFAR);
     
    631631 * @param page          Address which is on the page to be demapped.
    632632 */
    633 NO_TRACE static inline void itlb_demap(int type, int context_encoding, uintptr_t page)
     633_NO_TRACE static inline void itlb_demap(int type, int context_encoding, uintptr_t page)
    634634{
    635635        tlb_demap_addr_t da;
     
    657657 * @param page          Address which is on the page to be demapped.
    658658 */
    659 NO_TRACE static inline void dtlb_demap(int type, int context_encoding, uintptr_t page)
     659_NO_TRACE static inline void dtlb_demap(int type, int context_encoding, uintptr_t page)
    660660{
    661661        tlb_demap_addr_t da;
Note: See TracChangeset for help on using the changeset viewer.