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

use write_unaligned to write data to the pci device #786

Merged
merged 2 commits into from
Jul 7, 2023

Conversation

stlankes
Copy link
Contributor

@stlankes stlankes commented Jul 7, 2023

gurantees that the kernel 16-/32-bit registers to write the data to the device memory

gurantees that the kernel 16-/32-bit registers to write the
data to the device memory
@stlankes stlankes requested a review from mkroening July 7, 2023 10:03
Copy link
Member

@mkroening mkroening left a comment

Choose a reason for hiding this comment

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

I think, we might even have to use core::intrinsics::unaligned_volatile_store here.

@stlankes
Copy link
Contributor Author

stlankes commented Jul 7, 2023

In this case, we have to enable the nightly feature core_intrinsics. Do we want it?

@mkroening
Copy link
Member

In this case, we have to enable the nightly feature core_intrinsics. Do we want it?

We'd rather not, but I am uncertain if using inline assembly to emulate the intrinsic would be better. Maybe we should go for core_intrinsics. 🤔

@stlankes
Copy link
Contributor Author

stlankes commented Jul 7, 2023

Ok, I enabled the feature

@mkroening mkroening enabled auto-merge July 7, 2023 14:15
@mkroening mkroening added this pull request to the merge queue Jul 7, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 7, 2023
@mkroening mkroening added this pull request to the merge queue Jul 7, 2023
Merged via the queue into hermit-os:master with commit 1a7ccf7 Jul 7, 2023
8 checks passed
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