mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
1682f0b760
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
29 lines
734 B
C++
29 lines
734 B
C++
/*
|
|
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <Kernel/Interrupts/UnhandledInterruptHandler.h>
|
|
#include <Kernel/Panic.h>
|
|
|
|
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()
|
|
{
|
|
}
|
|
}
|