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

Pointers to data from mmap not volatile #6

Open
larspontoppidan opened this issue Nov 11, 2020 · 0 comments
Open

Pointers to data from mmap not volatile #6

larspontoppidan opened this issue Nov 11, 2020 · 0 comments

Comments

@larspontoppidan
Copy link

The pointers to data from mmap must be declared volatile, otherwise there is no guarantee in what order writes or reads will happen. Seemingly inconsequential changes to the code may make or break correct function if these pointers are not volatile.

(Btw. I just want to say thanks for the code, it helped me tremendously to get the DMA working, but this issue was a real pain :) )

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

No branches or pull requests

1 participant