-
Notifications
You must be signed in to change notification settings - Fork 67
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
make debug_print_bootinfo() a bit more verbose #51
base: master
Are you sure you want to change the base?
Conversation
What did the previous output look like? |
|
ok. Thanks for the improvement. Two comments:
both of these mean you can easily paste the data into a spread sheet or input file without manually munging the data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really in favor of rewriting this function to completely change how it prints this struct. Is there a reason you can't add this as a separate function with a goal of being more human readable?
I think it would be reasonable to append missing fields to the end of the current format for things like extra boot info blobs, but if you want a different output format all together, then this should be a separate function.
printf("Paddr | Size | Device\n"); | ||
|
||
int sizes[CONFIG_WORD_SIZE] = {0}; | ||
for (int i = 0; i < CONFIG_MAX_NUM_BOOTINFO_UNTYPED_CAPS && i < (info->untyped.end - info->untyped.start); i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ordering is important because it matches the order of caps in the root CNode.
It's now:
|
@kent-mcleod: I can also make this a separate function also. It's just that for what I usually do the memory map in the physical order more is more useful than the cap slot order. And the "Untyped summary" has not much use at all, as is mixes caps for free memory and device memory. |
So maybe you just want to add a new function that prints a human readable physical memory map and uses the bootinfo_t struct as it's input? |
3adf82b
to
a8b3d4f
Compare
929b801
to
1f58559
Compare
cb246ce
to
52a4507
Compare
0e7bf43
to
1ee71c1
Compare
cdcd67a
to
3ff25c7
Compare
0b74819
to
c086369
Compare
Signed-off-by: Axel Heider <[email protected]>
Signed-off-by: Axel Heider <[email protected]>
Also adds a helper function for printing the slot region. Signed-off-by: Axel Heider <[email protected]>
Signed-off-by: Axel Heider <[email protected]>
Signed-off-by: Axel Heider <[email protected]>
Signed-off-by: Axel Heider <[email protected]>
On i.MX6/sabre is prints this now: