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

Function platform_init_secondary

freebsd/mips/beri/beri_mp.c:156–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void
157platform_init_secondary(int cpuid)
158{
159 device_t ic;
160 int ipi;
161
162 ipi = platform_ipi_hardintr_num();
163
164 ic = devclass_get_device(devclass_find("beripic"), cpuid);
165 picmap[cpuid] = ic;
166 beripic_setup_ipi(ic, cpuid, ipi);
167
168 /* Unmask the interrupt */
169 if (cpuid != 0) {
170 mips_wr_status(mips_rd_status() | (((1 << ipi) << 8) << 2));
171 }
172}
173
174void
175platform_ipi_send(int cpuid)

Callers 2

smp_init_secondaryFunction · 0.85
release_apsFunction · 0.85

Calls 4

devclass_get_deviceFunction · 0.85
devclass_findFunction · 0.85
beripic_setup_ipiFunction · 0.85

Tested by

no test coverage detected