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

Function dpcpu_init

freebsd/kern/subr_pcpu.c:101–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void
102dpcpu_init(void *dpcpu, int cpuid)
103{
104 struct pcpu *pcpu;
105
106 pcpu = pcpu_find(cpuid);
107 pcpu->pc_dynamic = (uintptr_t)dpcpu - DPCPU_START;
108
109 /*
110 * Initialize defaults from our linker section.
111 */
112 memcpy(dpcpu, (void *)DPCPU_START, DPCPU_BYTES);
113
114 /*
115 * Place it in the global pcpu offset array.
116 */
117 dpcpu_off[cpuid] = pcpu->pc_dynamic;
118}
119
120static void
121dpcpu_startup(void *dummy __unused)

Callers 10

init_secondaryFunction · 0.85
init386Function · 0.85
smp_init_secondaryFunction · 0.85
mips_proc0_initFunction · 0.85
init_secondaryFunction · 0.85
hammer_timeFunction · 0.85
pmap_bootstrapFunction · 0.85
start_cpuFunction · 0.85
init_secondaryFunction · 0.85
initarmFunction · 0.85

Calls 2

pcpu_findFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected