Start Application Processor via platform specific function */
| 91 | |
| 92 | /* Start Application Processor via platform specific function */ |
| 93 | static int |
| 94 | check_ap(void) |
| 95 | { |
| 96 | uint32_t ms; |
| 97 | |
| 98 | for (ms = 0; ms < 2000; ++ms) { |
| 99 | if ((mp_naps + 1) == mp_ncpus) |
| 100 | return (0); /* success */ |
| 101 | else |
| 102 | DELAY(1000); |
| 103 | } |
| 104 | |
| 105 | return (-2); |
| 106 | } |
| 107 | |
| 108 | /* Initialize and fire up non-boot processors */ |
| 109 | void |