| 265 | } |
| 266 | |
| 267 | void |
| 268 | a83t_mp_start_ap(platform_t plat) |
| 269 | { |
| 270 | bus_space_handle_t cpuscfg, cpuxcfg, prcm; |
| 271 | |
| 272 | if (bus_space_map(fdtbus_bs_tag, CPUCFG_BASE, CPUCFG_SIZE, |
| 273 | 0, &cpuscfg) != 0) |
| 274 | panic("Couldn't map the CPUCFG\n"); |
| 275 | if (bus_space_map(fdtbus_bs_tag, CPUXCFG_BASE, CPUXCFG_SIZE, |
| 276 | 0, &cpuxcfg) != 0) |
| 277 | panic("Couldn't map the CPUXCFG\n"); |
| 278 | if (bus_space_map(fdtbus_bs_tag, PRCM_BASE, PRCM_SIZE, 0, |
| 279 | &prcm) != 0) |
| 280 | panic("Couldn't map the PRCM\n"); |
| 281 | |
| 282 | aw_mc_mp_start_ap(cpuscfg, cpuxcfg, prcm); |
| 283 | dsb(); |
| 284 | sev(); |
| 285 | bus_space_unmap(fdtbus_bs_tag, cpuxcfg, CPUXCFG_SIZE); |
| 286 | bus_space_unmap(fdtbus_bs_tag, cpuscfg, CPUCFG_SIZE); |
| 287 | bus_space_unmap(fdtbus_bs_tag, prcm, PRCM_SIZE); |
| 288 | } |
nothing calls this directly
no test coverage detected