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

Function platform_init_ap

freebsd/mips/malta/malta_mp.c:188–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void
189platform_init_ap(int cpuid)
190{
191 uint32_t clock_int_mask;
192 uint32_t ipi_intr_mask;
193
194 /*
195 * Clear any pending IPIs.
196 */
197 platform_ipi_clear();
198
199 /*
200 * Unmask the clock and ipi interrupts.
201 */
202 ipi_intr_mask = soft_int_mask(platform_ipi_softintr_num());
203 clock_int_mask = hard_int_mask(5);
204 set_intr_mask(ipi_intr_mask | clock_int_mask);
205
206 mips_wbflush();
207}
208
209void
210platform_cpu_mask(cpuset_t *mask)

Callers

nothing calls this directly

Calls 4

set_intr_maskFunction · 0.85
mips_wbflushFunction · 0.85
platform_ipi_clearFunction · 0.70

Tested by

no test coverage detected