-
Notifications
You must be signed in to change notification settings - Fork 133
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
Add InterruptDescriptorTable::load_unsafe #137
Conversation
Thanks for the pull request! Could you clarify why the current API is insufficient? Creating a |
@tomaka Friendly ping :). |
So there are three use cases that this might be targeting:
@tomaka have I missed anything? As all of these use cases can be solved though other mechanisms, I think this can be closed. |
This is indeed what I was talking about. While any use case can be achieved, I also fail to understand why adding this unsafe method is undesirable? |
@josephlr Thanks a lot for the examples! I agree that there are better options for the first two use cases: For use case 1 you can use the safe However, I think that an
I have no problem with unsafe methods in general, as long as there is a reasonable use case for them. I didn't think of temporary IDTs, so I didn't understand the advantage of such a method in comparison to the safe approaches that already exist. Now that I know where this method would be useful, I'm fine with merging this PR. Thanks again for opening it and sorry for the delay in merging! |
Published as version 0.10.1 |
Without this kind of method, there is no way right now to have a dynamically-allocated IDT, and thus no real way to have a separate IDT per CPU.