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