1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-09-14 16:08:00 +00:00

Kernel: Add GenericInterruptHandler.cpp to aarch64 build

This requires us to add an Interrupts.h file in the Kernel/Arch
directory, which includes the architecture specific files.

The commit also stubs out the functions to be able to compile the
aarch64 Kernel.
This commit is contained in:
Timon Kruiper 2022-05-11 16:54:03 +02:00 committed by Linus Groh
parent f1baa56cc8
commit 2fd5e9f729
9 changed files with 68 additions and 6 deletions

View file

@ -8,6 +8,7 @@
#include <AK/Types.h>
#include <Kernel/FileSystem/Inode.h>
#include <Kernel/Interrupts/InterruptManagement.h>
#include <Kernel/KString.h>
#include <Kernel/Locking/SpinlockProtected.h>
#include <Kernel/Memory/SharedInodeVMObject.h>
@ -136,3 +137,13 @@ void KString::operator delete(void*)
extern "C" {
FlatPtr kernel_mapping_base;
}
// InterruptManagement.cpp
namespace Kernel {
u8 InterruptManagement::acquire_mapped_interrupt_number(u8)
{
VERIFY_NOT_REACHED();
}
}

View file

@ -0,0 +1,26 @@
/*
* Copyright (c) 2022, Timon Kruiper <timonkruiper@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Arch/Interrupts.h>
namespace Kernel {
GenericInterruptHandler& get_interrupt_handler(u8)
{
VERIFY_NOT_REACHED();
}
void register_generic_interrupt_handler(u8, GenericInterruptHandler&)
{
VERIFY_NOT_REACHED();
}
void unregister_generic_interrupt_handler(u8, GenericInterruptHandler&)
{
VERIFY_NOT_REACHED();
}
}