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

Function mips_pcpu_tlb_init

freebsd/mips/mips/machdep.c:456–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454
455#ifdef SMP
456void
457mips_pcpu_tlb_init(struct pcpu *pcpu)
458{
459 vm_paddr_t pa;
460 pt_entry_t pte;
461
462 /*
463 * Map the pcpu structure at the virtual address 'pcpup'.
464 * We use a wired tlb index to do this one-time mapping.
465 */
466 pa = vtophys(pcpu);
467 pte = PTE_D | PTE_V | PTE_G | PTE_C_CACHE;
468 tlb_insert_wired(PCPU_TLB_ENTRY, (vm_offset_t)pcpup,
469 TLBLO_PA_TO_PFN(pa) | pte,
470 TLBLO_PA_TO_PFN(pa + PAGE_SIZE) | pte);
471}
472#endif
473
474/*

Callers 2

pmap_bootstrapFunction · 0.85
cpu_pcpu_initFunction · 0.85

Calls 1

tlb_insert_wiredFunction · 0.85

Tested by

no test coverage detected