diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-10-04 05:38:50 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-10-04 05:39:35 -0600 |
| commit | f2b332fe0bf95beab5ef4ecbbdc506a1b7d0399c (patch) | |
| tree | a99db4a0c93e244adc846552e1be82417a27f84c /demo/smp.c | |
| parent | f52299cf837951cbc1dc92fd0d084444ac3dc712 (diff) | |
demo: fix AP halt after boot
Diffstat (limited to 'demo/smp.c')
| -rw-r--r-- | demo/smp.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -3,11 +3,6 @@ #define SMP_CTRL_BASE 0x30140000 #define SMP_CTRL (*(volatile unsigned *)SMP_CTRL_BASE) -int cpus_ready(void) -{ - return SMP_CTRL == 0; -} - void run_cpu(unsigned num) { run_cpus(1 << num); @@ -32,7 +27,7 @@ void run_cpus(unsigned mask) void halt_cpu(unsigned num) { - halt_cpu(1 << num); + halt_cpus(1 << num); } void halt_cpus(unsigned mask) |
