UnhandledInterruptHandler.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/String.h>
  8. #include <AK/Types.h>
  9. #include <Kernel/Interrupts/GenericInterruptHandler.h>
  10. namespace Kernel {
  11. class UnhandledInterruptHandler final : public GenericInterruptHandler {
  12. public:
  13. explicit UnhandledInterruptHandler(u8 interrupt_vector);
  14. virtual ~UnhandledInterruptHandler();
  15. virtual bool handle_interrupt(const RegisterState&) override;
  16. [[noreturn]] virtual bool eoi() override;
  17. virtual HandlerType type() const override { return HandlerType::UnhandledInterruptHandler; }
  18. virtual StringView purpose() const override { return "Unhandled Interrupt Handler"; }
  19. virtual StringView controller() const override { VERIFY_NOT_REACHED(); }
  20. virtual size_t sharing_devices_count() const override { return 0; }
  21. virtual bool is_shared_handler() const override { return false; }
  22. virtual bool is_sharing_with_others() const override { return false; }
  23. private:
  24. };
  25. }