mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 05:35:52 +03:00
7c0540a229
This has KString, KBuffer, DoubleBuffer, KBufferBuilder, IOWindow, UserOrKernelBuffer and ScopedCritical classes being moved to the Kernel/Library subdirectory. Also, move the panic and assertions handling code to that directory.
28 lines
749 B
C++
28 lines
749 B
C++
/*
|
|
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <Kernel/Interrupts/UnhandledInterruptHandler.h>
|
|
#include <Kernel/Library/Panic.h>
|
|
|
|
namespace Kernel {
|
|
UnhandledInterruptHandler::UnhandledInterruptHandler(u8 interrupt_vector)
|
|
: GenericInterruptHandler(interrupt_vector)
|
|
{
|
|
}
|
|
|
|
bool UnhandledInterruptHandler::handle_interrupt(RegisterState const&)
|
|
{
|
|
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() = default;
|
|
}
|