Skip to content

Use proper halting sequence for the panic handler #7

@dylanmckay

Description

@dylanmckay

Currently the current panic handler simply is loop { }. In release builds, this will likely optimize out and it also has problems because interrupts will still execute.

We should probably do something like this

asm!("cli"); // disable interrupts

loop {
    asm!( "" ::::: "volatile"); // wrong syntax, I'm going from memory
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions