summaryrefslogtreecommitdiff
path: root/demo/smp.c
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-10-04 05:38:50 -0600
committerAlejandro Soto <alejandro@34project.org>2023-10-04 05:39:35 -0600
commitf2b332fe0bf95beab5ef4ecbbdc506a1b7d0399c (patch)
treea99db4a0c93e244adc846552e1be82417a27f84c /demo/smp.c
parentf52299cf837951cbc1dc92fd0d084444ac3dc712 (diff)
demo: fix AP halt after boot
Diffstat (limited to 'demo/smp.c')
-rw-r--r--demo/smp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/demo/smp.c b/demo/smp.c
index 6f8e54a..4357d35 100644
--- a/demo/smp.c
+++ b/demo/smp.c
@@ -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)