/* * Copyright (c) 2020, Liav A. * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Kernel { UnhandledInterruptHandler::UnhandledInterruptHandler(u8 interrupt_vector) : GenericInterruptHandler(interrupt_vector) { } void UnhandledInterruptHandler::handle_interrupt(const RegisterState&) { PANIC("Interrupt: Unhandled vector {} was invoked for handle_interrupt(RegisterState&).", interrupt_number()); } [[noreturn]] bool UnhandledInterruptHandler::eoi() { PANIC("Interrupt: Unhandled vector {} was invoked for eoi().", interrupt_number()); } UnhandledInterruptHandler::~UnhandledInterruptHandler() { } }