162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef __ASM_TLBEX_H 362306a36Sopenharmony_ci#define __ASM_TLBEX_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <asm/uasm.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci/* 862306a36Sopenharmony_ci * Write random or indexed TLB entry, and care about the hazards from 962306a36Sopenharmony_ci * the preceding mtc0 and for the following eret. 1062306a36Sopenharmony_ci */ 1162306a36Sopenharmony_cienum tlb_write_entry { 1262306a36Sopenharmony_ci tlb_random, 1362306a36Sopenharmony_ci tlb_indexed 1462306a36Sopenharmony_ci}; 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ciextern int pgd_reg; 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_civoid build_get_pmde64(u32 **p, struct uasm_label **l, struct uasm_reloc **r, 1962306a36Sopenharmony_ci unsigned int tmp, unsigned int ptr); 2062306a36Sopenharmony_civoid build_get_pgde32(u32 **p, unsigned int tmp, unsigned int ptr); 2162306a36Sopenharmony_civoid build_get_ptep(u32 **p, unsigned int tmp, unsigned int ptr); 2262306a36Sopenharmony_civoid build_update_entries(u32 **p, unsigned int tmp, unsigned int ptep); 2362306a36Sopenharmony_civoid build_tlb_write_entry(u32 **p, struct uasm_label **l, 2462306a36Sopenharmony_ci struct uasm_reloc **r, 2562306a36Sopenharmony_ci enum tlb_write_entry wmode); 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ciextern void handle_tlbl(void); 2862306a36Sopenharmony_ciextern char handle_tlbl_end[]; 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ciextern void handle_tlbs(void); 3162306a36Sopenharmony_ciextern char handle_tlbs_end[]; 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ciextern void handle_tlbm(void); 3462306a36Sopenharmony_ciextern char handle_tlbm_end[]; 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci#endif /* __ASM_TLBEX_H */ 37