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