Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/boot output #281

Open
wants to merge 3 commits into
base: riscv
Choose a base branch
from

Conversation

echtwerner
Copy link

The kernel boot output is a bit more verbose with this changes.

It is intressting to see how many cycle the other CPU's have to wait before they will be initialized.
Ensure kernel boot message is consistently spaced from other output
@@ -10,12 +10,13 @@ volatile static int started = 0;
void
main()
{
// Initialize an array to hold a waitcycle count per cpu.
uint waitcycle[NCPU];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this to be an array?

Since, if I understand it correctly, main() is run by every cpu core independently, each with its own stack. If we put waitcycle on the stack, there is no need for this to be an array.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same asking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants