2022-05-11 14:54:03 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Timon Kruiper <timonkruiper@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/Platform.h>
|
|
|
|
#include <AK/Types.h>
|
|
|
|
|
|
|
|
#if ARCH(X86_64) || ARCH(I386)
|
|
|
|
# include <Kernel/Arch/x86/Interrupts.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
|
|
|
|
class GenericInterruptHandler;
|
|
|
|
|
|
|
|
GenericInterruptHandler& get_interrupt_handler(u8 interrupt_number);
|
|
|
|
void register_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
|
|
|
|
void unregister_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
|
|
|
|
|
2022-05-17 09:07:02 +00:00
|
|
|
void initialize_interrupts();
|
|
|
|
|
2022-05-11 14:54:03 +00:00
|
|
|
}
|