From ce47b93e8834bb4811e788737ae1a6ea750af79c Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 8 Apr 2026 14:20:48 +0200 Subject: x86_64: implement LAPIC initialization --- arch/x86_64/include/arch/devices/local_apic.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'arch/x86_64/include') diff --git a/arch/x86_64/include/arch/devices/local_apic.hpp b/arch/x86_64/include/arch/devices/local_apic.hpp index 71e9758..7f125c3 100644 --- a/arch/x86_64/include/arch/devices/local_apic.hpp +++ b/arch/x86_64/include/arch/devices/local_apic.hpp @@ -17,10 +17,14 @@ namespace arch::devices auto init() -> bool override; private: + [[nodiscard]] auto read_register(std::size_t offset) const -> std::uint32_t; + auto write_register(std::size_t offset, std::uint32_t value) -> void; + std::uint64_t m_hardware_id{}; kapi::memory::physical_address m_base{}; + kapi::memory::linear_address m_virtual_base{}; }; } // namespace arch::devices -#endif \ No newline at end of file +#endif -- cgit v1.2.3