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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-06-05 09:00:18 +03:00
|
|
|
bool UnhandledInterruptHandler::handle_interrupt(const RegisterState&)
|
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
|
|
|
}
|
|
|
|
|
|
|
|
UnhandledInterruptHandler::~UnhandledInterruptHandler()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|