Page MenuHomeFreeBSD

sys/_types.h: define fallback __(u)intcap_t
AcceptedPublic

Authored by brooks on Wed, Nov 19, 11:18 AM.
Tags
None
Referenced Files
F136793588: D53820.id166753.diff
Wed, Nov 19, 2:29 PM
F136791782: D53820.id.diff
Wed, Nov 19, 2:09 PM
F136790939: D53820.diff
Wed, Nov 19, 2:02 PM
Subscribers

Details

Reviewers
imp
kib
Group Reviewers
cheri
Summary

intcap_t and uintcap_t are new primative types in CHERI-aware ABIs
that are used to define (u)intptr_t. To allow coexistance of integer
pointers and hybrid code, define them to __(u)intptr_t when they are
not otherwise available.

Effort: CHERI upstreaming
Sponsored by: Innovate UK

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 68728
Build 65611: arc lint + arc unit

Event Timeline

brooks created this revision.

On CheriBSD we also include intcap_t and uintcap_t to be friendly, but we're trying to discourage the hybrid programming model so I'd like to stick with __ variants in FreeBSD.

This revision is now accepted and ready to land.Wed, Nov 19, 1:47 PM
markj added inline comments.
sys/sys/_types.h
159

I'd be more explicit here about when these types are supposed to be useful, i.e., when exactly they should be used instead of (u)intptr_t. Like, would we ever use these in the base system?