You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't have memcpy_c and friends duplicate their non-_c versions for purecap
In purecap code, both are equivalent (and should be identical
implementations), so this is just a waste of space. Instead we can just
define the explicit capability versions to the normal pointer versions.
For convenience, like how we define __capability to nothing when CHERI
is not available, also define them as aliases for their pointer versions
when CHERI isn't available, meaning hybrid code can make use of CHERI
features without needing so many #ifdef's. The kernel currently does
this with memcpy_c for non-CHERI builds, too.
0 commit comments