Skip to content

Compiler barrier implementation and use #1

@berkus

Description

@berkus

I see a compiler_barrier() is just empty asm, however shouldn't it be a core::sync::atomic::compiler_fence(Ordering::SeqCst) instead?

Also, all the memory barrier instructions should probably be guarded with compiler fences like here (see discussion in rust-embedded/cortex-m#308 and fix in rust-embedded/cortex-m#311).

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