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

Function virt_start_ap

freebsd/arm/qemu/virt_mp.c:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50static int running_cpus;
51
52static boolean_t
53virt_start_ap(u_int id, phandle_t node, u_int addr_cells, pcell_t *reg)
54{
55 int err;
56
57 if (running_cpus >= mp_ncpus)
58 return (false);
59 running_cpus++;
60
61 err = psci_cpu_on(*reg, pmap_kextract((vm_offset_t)mpentry), id);
62
63 if (err != PSCI_RETVAL_SUCCESS)
64 return (false);
65
66 return (true);
67}
68
69void
70virt_mp_start_ap(platform_t plat)

Callers

nothing calls this directly

Calls 1

pmap_kextractFunction · 0.50

Tested by

no test coverage detected