Thanks to visit codestin.com
Credit goes to github.com

Skip to content

x86: avoid static_init! in chip.rs #4575

@domnudragota

Description

@domnudragota

As discussed at Tock World Europe: static_init! is used in the x86 chip crate’s chip.rs. Using it at the chip level can create multiple &'static mut aliases, allow accidental double-initialization, and tie behavior to fragile init order. This macro should be confined to board setup only.

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