Skip to content

term "granule" used through rust-sel4 crates not in sel4 itself #277

@midnightveil

Description

@midnightveil

I noticed that the rust-sel4 bindings seem to have used the "Granule" referring to the SmallPage, in the ARM sense, and it's defined as an alias for x86, RISC-V. And it has made its way into the tutorial: https://sel4.github.io/seL4-rust-tutorial/root-task/spawn-task.html#step-7e-challenge.

This confused a colleague (@dreamliner787-9) as it's not actually used anywhere in seL4, nor documented that well.

It seems to be a term derived from the ARM spec (which uses it because Granule is generic over 4K/16K/64K minimum memory unit size), though seL4 doesn't even support the 16K/64K page types.

At the very least I don't see why it would be defined for x86 or RISC-V, given it's not an architectural term there either.

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