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

kernel attributes: explain their location #57

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Nov 25, 2024

Add a little more detail on why kernel attributes are where they are.

Copy link
Member

@ppannuto ppannuto left a comment

Choose a reason for hiding this comment

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

Maybe also add this?

Comment on lines +14 to +15
in flash and working backwards.

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
in flash and working backwards.
in flash and working backwards.
Storing attributes at the end also has a secondary benefit of zero-filling the rest of
the flash region. While not essential for correct operation, as unused flash should
always be inaccessible, this provides an additional defense-in-depth step for the
Tock platform by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm nervous about that because tockloader doesn't always actually write those zeros.

Copy link
Member

Choose a reason for hiding this comment

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

If we promise to write those zeros in documentation, that'll also make it harder to ship sparse files to accelerate flashing and reduce write cycles. So I wouldn't want to go that far.

@ppannuto ppannuto merged commit fb92843 into master Jan 16, 2025
4 checks passed
@ppannuto ppannuto deleted the kernel-attr-location branch January 16, 2025 20:19
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.

4 participants