MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tlb_invalidate_address

Function tlb_invalidate_address

freebsd/mips/mips/tlb.c:117–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void
118tlb_invalidate_address(struct pmap *pmap, vm_offset_t va)
119{
120 register_t asid;
121 register_t s;
122 int i;
123
124 va &= ~PAGE_MASK;
125
126 s = intr_disable();
127 asid = mips_rd_entryhi() & TLBHI_ASID_MASK;
128
129 mips_wr_pagemask(0);
130 mips_wr_entryhi(TLBHI_ENTRY(va, pmap_asid(pmap)));
131 tlb_probe();
132 i = mips_rd_index();
133 if (i >= 0)
134 tlb_invalidate_one(i);
135
136 mips_wr_entryhi(asid);
137 intr_restore(s);
138}
139
140void
141tlb_invalidate_all(void)

Callers 3

pmap_lmem_unmapFunction · 0.85
pmap_quick_remove_pageFunction · 0.85

Calls 4

tlb_probeFunction · 0.85
tlb_invalidate_oneFunction · 0.85
intr_disableFunction · 0.50
intr_restoreFunction · 0.50

Tested by

no test coverage detected