Skip to content

Usage of references is in conflict with use for MMIO #10

@RalfJung

Description

@RalfJung

As described at rust-embedded/volatile-register#10, there is a big problem with having things like &VolatileCell and using that for volatile accesses: these references are marked as dereferencable and the compiler is allowed ti insert spurious (and non-volatile) read accesses.

There currently is no way in Rust to have references without permitting the compiler to do spurious reads.

Some more discussions for context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions