[kernel] Clean up interrupts.cpp
There was a lot of old kruft in interrupts.cpp - clean it up and make irq_handler also use kassert for invalid states.
This commit is contained in:
@@ -21,7 +21,9 @@ enum class isr : uint8_t
|
||||
};
|
||||
|
||||
/// Helper operator to add an offset to an isr vector
|
||||
isr operator+(const isr &lhs, int rhs);
|
||||
constexpr isr operator+(const isr &lhs, int rhs) {
|
||||
return static_cast<isr>(static_cast<uint8_t>(lhs) + rhs);
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
/// Set the CPU interrupt enable flag (sti)
|
||||
|
||||
Reference in New Issue
Block a user