Commit caec7773 authored by Dario Nieuwenhuis's avatar Dario Nieuwenhuis
Browse files

Fix interrupt::free() unsoundness on multi-hart systems.

This is unsound on multi-hart because it only disables interrupts in the
current hart. For multi-hart chips, a chip-specific critical section implementation
is needed instead.

Unsoundness is fixed by not returning the `CriticalSection` token.

This is a breaking change.
parent 65db20e7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment