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
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/String.h>
|
|
|
|
|
#include <AK/Types.h>
|
|
|
|
|
#include <Kernel/Interrupts/GenericInterruptHandler.h>
|
|
|
|
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
|
class UnhandledInterruptHandler final : public GenericInterruptHandler {
|
|
|
|
|
public:
|
|
|
|
|
explicit UnhandledInterruptHandler(u8 interrupt_vector);
|
|
|
|
|
virtual ~UnhandledInterruptHandler();
|
|
|
|
|
|
2021-06-05 03:00:18 -03:00
|
|
|
virtual bool handle_interrupt(const RegisterState&) override;
|
2020-02-22 14:59:42 -03:00
|
|
|
|
2020-05-16 01:49:24 -03:00
|
|
|
[[noreturn]] virtual bool eoi() override;
|
2020-02-22 14:59:42 -03:00
|
|
|
|
2020-03-05 14:13:55 -03:00
|
|
|
virtual HandlerType type() const override { return HandlerType::UnhandledInterruptHandler; }
|
2021-07-10 20:46:09 -03:00
|
|
|
virtual StringView purpose() const override { return "Unhandled Interrupt Handler"; }
|
|
|
|
|
virtual StringView controller() const override { VERIFY_NOT_REACHED(); }
|
2020-02-22 14:59:42 -03:00
|
|
|
|
2020-02-23 09:14:01 -03:00
|
|
|
virtual size_t sharing_devices_count() const override { return 0; }
|
2020-02-22 14:59:42 -03:00
|
|
|
virtual bool is_shared_handler() const override { return false; }
|
|
|
|
|
virtual bool is_sharing_with_others() const override { return false; }
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
};
|
|
|
|
|
}
|