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

Function platform_init_ap

freebsd/mips/ingenic/jz4780_mp.c:92–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void
93platform_init_ap(int cpuid)
94{
95 unsigned reg;
96
97 /*
98 * Clear any pending IPIs.
99 */
100 mips_wr_xburst_core_sts(~(JZ_CORESTS_MIRQ0P << cpuid));
101
102 /* Allow IPI mbox for this core */
103 reg = mips_rd_xburst_reim();
104 reg |= (JZ_REIM_MIRQ0M << cpuid);
105 mips_wr_xburst_reim(reg);
106
107 /*
108 * Unmask the ipi interrupts.
109 */
110 reg = hard_int_mask(platform_ipi_hardintr_num());
111 set_intr_mask(reg);
112}
113
114void
115platform_cpu_mask(cpuset_t *mask)

Callers

nothing calls this directly

Calls 2

set_intr_maskFunction · 0.85

Tested by

no test coverage detected