mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:37:34 +00:00
Kernel: Stub more functions to progress aarch64 build
This commit is contained in:
parent
f9ab02429b
commit
32f4c8df6c
5 changed files with 36 additions and 1 deletions
|
@ -54,4 +54,9 @@ NonnullLockRefPtr<IRQController> InterruptManagement::get_responsible_irq_contro
|
||||||
return m_interrupt_controllers[0];
|
return m_interrupt_controllers[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void InterruptManagement::enumerate_interrupt_handlers(Function<void(GenericInterruptHandler&)>)
|
||||||
|
{
|
||||||
|
TODO_AARCH64();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,8 @@ public:
|
||||||
Vector<NonnullLockRefPtr<IRQController>> const& controllers();
|
Vector<NonnullLockRefPtr<IRQController>> const& controllers();
|
||||||
NonnullLockRefPtr<IRQController> get_responsible_irq_controller(u8 interrupt_vector);
|
NonnullLockRefPtr<IRQController> get_responsible_irq_controller(u8 interrupt_vector);
|
||||||
|
|
||||||
|
void enumerate_interrupt_handlers(Function<void(GenericInterruptHandler&)>);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
InterruptManagement() = default;
|
InterruptManagement() = default;
|
||||||
void find_controllers();
|
void find_controllers();
|
||||||
|
|
|
@ -215,6 +215,28 @@ public:
|
||||||
return *g_current_processor;
|
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.
|
// FIXME: Move this into generic Processor class, when there is such a class.
|
||||||
ALWAYS_INLINE static bool is_bootstrap_processor()
|
ALWAYS_INLINE static bool is_bootstrap_processor()
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,6 +32,7 @@ struct RegisterState {
|
||||||
(void)value;
|
(void)value;
|
||||||
TODO_AARCH64();
|
TODO_AARCH64();
|
||||||
}
|
}
|
||||||
|
FlatPtr bp() const { TODO_AARCH64(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
inline void copy_kernel_registers_into_ptrace_registers(PtraceRegisters& ptrace_regs, RegisterState const& kernel_regs)
|
inline void copy_kernel_registers_into_ptrace_registers(PtraceRegisters& ptrace_regs, RegisterState const& kernel_regs)
|
||||||
|
|
|
@ -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());
|
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()) {
|
if (subclass_code == SubclassID::IDEController && kernel_command_line().is_ide_enabled()) {
|
||||||
m_controllers.append(PCIIDELegacyModeController::initialize(device_identifier, force_pio));
|
m_controllers.append(PCIIDELegacyModeController::initialize(device_identifier, force_pio));
|
||||||
}
|
}
|
||||||
|
#elif ARCH(AARCH64)
|
||||||
|
(void)force_pio;
|
||||||
|
TODO_AARCH64();
|
||||||
|
#else
|
||||||
|
# error Unknown architecture
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (subclass_code == SubclassID::SATAController
|
if (subclass_code == SubclassID::SATAController
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue