Skip to content

Commit

Permalink
add '\n' after "Calibrating timer loop"
Browse files Browse the repository at this point in the history
During timer calibration, other CPUs might come up printing their boot
messages. The '\n' prevents a mix-up of messages during boot.

Change-Id: I64bcfc37ea14b75588accbd7a2be32a79b3c9a66
  • Loading branch information
Frank Mehnert authored and jermar committed Apr 17, 2024
1 parent d7b4ebe commit c785fbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kern/kernel_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ Kernel_thread::bootstrap()
// Needs to be done before the timer is enabled. Otherwise after returning
// from printf() there could be a burst of timer interrupts distorting the
// timer loop calibration. The measurement intervals would be far too short.
printf("Calibrating timer loop... ");
printf("Calibrating timer loop...\n");
Timer_tick::enable(current_cpu());
Proc::sti();
Watchdog::enable();
// Init delay loop, needs working timer interrupt
Delay::init();
printf("done.\n");
printf("Timer calibration done.\n");

run();
}
Expand Down

0 comments on commit c785fbc

Please sign in to comment.