-
Notifications
You must be signed in to change notification settings - Fork 3
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 a signed version of ptraddr_t #11
Comments
Doesn't I'm not opposed to adding this type since the signed kernel address comparison is a valid use case (while you could also do unsigned comparisons that may require changing more code). Maybe we also need a "signed machine word" type? |
Well, "signed ABI word" then. The problem with |
This is sometimes needed as a useful way to express "signed machine word" (which
ssize_t
andptrdiff_t
are not required to be, even if in practice they are, nor doeslong
suffice due to Windows's LLP64 which presumably would be LL64PC128 for CHERI) or as a way to deal with sentinel values like-1
similar tossize_t
, and also to be able to perform signed comparisons against addresses to distinguish between kernel and user addresses. The general consensus seems to be thatsptraddr_t
is the best name for it. See #8 for earlier discussions.The text was updated successfully, but these errors were encountered: