From f2b332fe0bf95beab5ef4ecbbdc506a1b7d0399c Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 4 Oct 2023 05:38:50 -0600 Subject: demo: fix AP halt after boot --- demo/smp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'demo/smp.c') 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) -- cgit v1.2.3