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

Function tlb_save

freebsd/mips/mips/tlb.c:268–288  ·  view source on GitHub ↗

XXX Only if DDB? */

Source from the content-addressed store, hash-verified

266
267/* XXX Only if DDB? */
268void
269tlb_save(void)
270{
271 unsigned ntlb, i, cpu;
272
273 cpu = PCPU_GET(cpuid);
274 if (num_tlbentries > MIPS_MAX_TLB_ENTRIES)
275 ntlb = MIPS_MAX_TLB_ENTRIES;
276 else
277 ntlb = num_tlbentries;
278 tlb_state[cpu].wired = mips_rd_wired();
279 for (i = 0; i < ntlb; i++) {
280 mips_wr_index(i);
281 tlb_read();
282
283 tlb_state[cpu].entry[i].entryhi = mips_rd_entryhi();
284 tlb_state[cpu].entry[i].pagemask = mips_rd_pagemask();
285 tlb_state[cpu].entry[i].entrylo0 = mips_rd_entrylo0();
286 tlb_state[cpu].entry[i].entrylo1 = mips_rd_entrylo1();
287 }
288}
289
290void
291tlb_update(struct pmap *pmap, vm_offset_t va, pt_entry_t pte)

Callers 2

mips_ipi_handlerFunction · 0.85
tlb.cFile · 0.85

Calls 1

tlb_readFunction · 0.85

Tested by

no test coverage detected