2020-02-22 20:59:42 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
|
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-02-22 20:59:42 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <Kernel/Interrupts/UnhandledInterruptHandler.h>
|
2021-02-14 11:30:31 +03:00
|
|
|
#include <Kernel/Panic.h>
|
2020-02-22 20:59:42 +03:00
|
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
UnhandledInterruptHandler::UnhandledInterruptHandler(u8 interrupt_vector)
|
|
|
|
: GenericInterruptHandler(interrupt_vector)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-04-01 20:58:27 +03:00
|
|
|
bool UnhandledInterruptHandler::handle_interrupt(RegisterState const&)
|
2020-02-22 20:59:42 +03:00
|
|
|
{
|
2021-02-14 11:30:31 +03:00
|
|
|
PANIC("Interrupt: Unhandled vector {} was invoked for handle_interrupt(RegisterState&).", interrupt_number());
|
2020-02-22 20:59:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
[[noreturn]] bool UnhandledInterruptHandler::eoi()
|
|
|
|
{
|
2021-02-14 11:30:31 +03:00
|
|
|
PANIC("Interrupt: Unhandled vector {} was invoked for eoi().", interrupt_number());
|
2020-02-22 20:59:42 +03:00
|
|
|
}
|
|
|
|
|
2022-03-16 22:15:15 +03:00
|
|
|
UnhandledInterruptHandler::~UnhandledInterruptHandler() = default;
|
2020-02-22 20:59:42 +03:00
|
|
|
}
|