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

Function platform_init_ap

freebsd/mips/cavium/octeon_mp.c:81–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void
82platform_init_ap(int cpuid)
83{
84 unsigned ciu_int_mask, clock_int_mask, ipi_int_mask;
85
86 /*
87 * Set the exception base.
88 */
89 mips_wr_ebase(0x80000000);
90
91 /*
92 * Clear any pending IPIs.
93 */
94 cvmx_write_csr(CVMX_CIU_MBOX_CLRX(cpuid), 0xffffffff);
95
96 /*
97 * Set up interrupts.
98 */
99 octeon_ciu_reset();
100
101 /*
102 * Unmask the clock, ipi and ciu interrupts.
103 */
104 ciu_int_mask = hard_int_mask(0);
105 clock_int_mask = hard_int_mask(5);
106 ipi_int_mask = hard_int_mask(platform_ipi_hardintr_num());
107 set_intr_mask(ciu_int_mask | clock_int_mask | ipi_int_mask);
108
109 mips_wbflush();
110}
111
112void
113platform_cpu_mask(cpuset_t *mask)

Callers

nothing calls this directly

Calls 6

cvmx_write_csrFunction · 0.85
CVMX_CIU_MBOX_CLRXFunction · 0.85
octeon_ciu_resetFunction · 0.85
set_intr_maskFunction · 0.85
mips_wbflushFunction · 0.85

Tested by

no test coverage detected