Kernel: Stub more functions to progress aarch64 build

This commit is contained in:
Timon Kruiper 2022-10-25 18:44:54 +02:00 committed by Gunnar Beutner
parent f9ab02429b
commit 32f4c8df6c
Notes: sideshowbarker 2024-07-17 07:19:27 +09:00
5 changed files with 36 additions and 1 deletions

View File

@ -54,4 +54,9 @@ NonnullLockRefPtr<IRQController> InterruptManagement::get_responsible_irq_contro
return m_interrupt_controllers[0];
}
void InterruptManagement::enumerate_interrupt_handlers(Function<void(GenericInterruptHandler&)>)
{
TODO_AARCH64();
}
}

View File

@ -23,6 +23,8 @@ public:
Vector<NonnullLockRefPtr<IRQController>> const& controllers();
NonnullLockRefPtr<IRQController> get_responsible_irq_controller(u8 interrupt_vector);
void enumerate_interrupt_handlers(Function<void(GenericInterruptHandler&)>);
private:
InterruptManagement() = default;
void find_controllers();

View File

@ -215,6 +215,28 @@ public:
return *g_current_processor;
}
template<IteratorFunction<Processor&> Callback>
static inline IterationDecision for_each(Callback)
{
TODO_AARCH64();
}
template<VoidFunction<Processor&> Callback>
static inline IterationDecision for_each(Callback)
{
TODO_AARCH64();
}
u64 time_spent_idle() const
{
TODO_AARCH64();
}
static u32 count()
{
TODO_AARCH64();
}
// FIXME: Move this into generic Processor class, when there is such a class.
ALWAYS_INLINE static bool is_bootstrap_processor()
{

View File

@ -32,6 +32,7 @@ struct RegisterState {
(void)value;
TODO_AARCH64();
}
FlatPtr bp() const { TODO_AARCH64(); }
};
inline void copy_kernel_registers_into_ptrace_registers(PtraceRegisters& ptrace_regs, RegisterState const& kernel_regs)

View File

@ -102,11 +102,16 @@ UNMAP_AFTER_INIT void StorageManagement::enumerate_pci_controllers(bool force_pi
}
}
#if ARCH(I386) || ARCH(X86_64)
auto subclass_code = static_cast<SubclassID>(device_identifier.subclass_code().value());
#if ARCH(I386) || ARCH(X86_64)
if (subclass_code == SubclassID::IDEController && kernel_command_line().is_ide_enabled()) {
m_controllers.append(PCIIDELegacyModeController::initialize(device_identifier, force_pio));
}
#elif ARCH(AARCH64)
(void)force_pio;
TODO_AARCH64();
#else
# error Unknown architecture
#endif
if (subclass_code == SubclassID::SATAController