Kernel: Replace VERIFY_NOT_REACHED with TODO_AARCH64

This makes it easier to differentiate between cases where certain
functionality is not implemented vs. cases where a code location
should really be unreachable.
This commit is contained in:
Gunnar Beutner 2022-10-16 16:23:44 +02:00 committed by Linus Groh
commit dfee6f73d2
Notes: sideshowbarker 2024-07-17 05:41:35 +09:00
10 changed files with 50 additions and 49 deletions

View file

@ -26,6 +26,7 @@ extern "C" {
}
#define TODO() __assertion_failed("TODO", __FILE__, __LINE__, __PRETTY_FUNCTION__)
#define TODO_AARCH64() __assertion_failed("TODO_AARCH64", __FILE__, __LINE__, __PRETTY_FUNCTION__)
#define VERIFY_INTERRUPTS_DISABLED() VERIFY(!(Processor::are_interrupts_enabled()))
#define VERIFY_INTERRUPTS_ENABLED() VERIFY(Processor::are_interrupts_enabled())