From 807c4153c18d84e822c574e7b147c5b38dff1514 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 13 Feb 2022 20:25:58 +0000 Subject: [PATCH] Add tracing for AP startup. Also comment out tracing of memory window starts to reduce verbosity. --- app/main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/main.c b/app/main.c index eaa421e..6854b18 100644 --- a/app/main.c +++ b/app/main.c @@ -361,7 +361,7 @@ static void test_all_windows(int my_cpu) } if (i_am_master) { - trace(my_cpu, "start window %i", window_num); + //trace(my_cpu, "start window %i", window_num); switch (window_num) { case 0: window_start = 0; @@ -457,6 +457,7 @@ void main(void) my_cpu = smp_my_cpu_num(); } if (init_state < 2 && my_cpu > 0) { + trace(my_cpu, "AP started"); cpu_state[my_cpu] = CPU_STATE_RUNNING; while (init_state < 2) { usleep(100); @@ -583,6 +584,10 @@ void main(void) start_run = true; dummy_run = false; if (init_state < 2) { + if (enable_trace && num_available_cpus > 1) { + set_scroll_lock(false); + trace(0, "starting other CPUs"); + } barrier_init(start_barrier, num_enabled_cpus); int failed = smp_start(cpu_state); if (failed) { @@ -591,6 +596,10 @@ void main(void) while (get_key() == 0) { } reboot(); } + if (enable_trace && num_available_cpus > 1) { + trace(0, "all other CPUs started"); + set_scroll_lock(true); + } init_state = 2; } continue;