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

barriers? #4

Open
RobertBerger opened this issue Oct 1, 2015 · 0 comments
Open

barriers? #4

RobertBerger opened this issue Oct 1, 2015 · 0 comments

Comments

@RobertBerger
Copy link

Hi,

Say we expose registers of an FPGA through UIO to user space and say we need to guarantee a certain sequence of write operations without having the compiler and/or processor reordering the writes e.g. write a block of registers (order does not matter), but writing a specific bit in a specific register at the end would start a timer (all the others need to be written before this one is written).

In kernel space I would use barriers or write e.g. to IO ports on x86 to guarantee this. How would I do this with UIO and/or with libuio. Maybe I am totally wrong here, but I see a potential reordering problem and if so maybe new functions should be added to libuio.

Another thing I am kind of missing are atomic bit operations, so the compiler does not optimize things away it should not.

What do you think?

Thanks,

Robert

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

No branches or pull requests

2 participants