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

Alignment and size fixes in fpga_spi #126

Merged
merged 2 commits into from
Apr 8, 2022
Merged

Alignment and size fixes in fpga_spi #126

merged 2 commits into from
Apr 8, 2022

Conversation

ericonr
Copy link
Member

@ericonr ericonr commented Apr 8, 2022

No description provided.

@ericonr
Copy link
Member Author

ericonr commented Apr 8, 2022

Touches on #125

fpga_spi.c reads from this struct by aliasing it to an uint32_t pointer
and using that to iterate through it. That means it should be aligned to
4 bytes, to so the reads don't generate faults, and that its size should
be a multiple of 4, otherwise we'd have to deal with defining incomplete
reads for the last element.
Since we are using an uint32_t pointer, the size used to iterate over
the board_diagnostic_t structure should be a multiple of 4.
@augustofg augustofg merged commit 5c8d264 into devel Apr 8, 2022
@ericonr ericonr deleted the alignment branch April 8, 2022 13:18
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.

2 participants