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

Function cpu_pcpu_init

freebsd/mips/mips/machdep.c:477–490  ·  view source on GitHub ↗

* Initialise a struct pcpu. */

Source from the content-addressed store, hash-verified

475 * Initialise a struct pcpu.
476 */
477void
478cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t size)
479{
480
481 pcpu->pc_next_asid = 1;
482 pcpu->pc_asid_generation = 1;
483 pcpu->pc_self = pcpu;
484#ifdef SMP
485 if ((vm_offset_t)pcpup >= VM_MIN_KERNEL_ADDRESS &&
486 (vm_offset_t)pcpup <= VM_MAX_KERNEL_ADDRESS) {
487 mips_pcpu_tlb_init(pcpu);
488 }
489#endif
490}
491
492int
493fill_dbregs(struct thread *td, struct dbreg *dbregs)

Callers

nothing calls this directly

Calls 1

mips_pcpu_tlb_initFunction · 0.85

Tested by

no test coverage detected