Skip to content

Clang defines permissions as predefined macros, but they are the wrong values #124

@davidchisnall

Description

@davidchisnall

The __CHERI_CAP_PERMISSION_PERMIT_*__ macros are defined unconditionally for all CHERI platforms. They should be made per-target. CHERIoT will define them differently and will define a few CHERIoT-specific values here. Ideally, we'd define these only in the compiler (which also needs to know the value of some of them for other things - including ideally teaching optimisers that a function that is dynamically passed an immutable pointer cannot mutate the callee). For now, we probably want to just do it in the front end but eventually we should centralise this knowledge somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions