| 90 | } |
| 91 | |
| 92 | void |
| 93 | platform_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 | |
| 114 | void |
| 115 | platform_cpu_mask(cpuset_t *mask) |
nothing calls this directly
no test coverage detected