aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-04-08 14:55:18 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-04-08 14:55:18 +0200
commit2ed34cc51a534171f0fe08808634834bc22cf84d (patch)
tree5b0bdbbf7b7377586935261aa141b3202cb8a431 /arch/x86_64/include
parent296742bfa509524dc8effc3dcae4b6231d37705f (diff)
downloadteachos-2ed34cc51a534171f0fe08808634834bc22cf84d.tar.xz
teachos-2ed34cc51a534171f0fe08808634834bc22cf84d.zip
x86_64: only initialize BSP LAPIC
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/devices/local_apic.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86_64/include/arch/devices/local_apic.hpp b/arch/x86_64/include/arch/devices/local_apic.hpp
index 7f125c3..7ae0a02 100644
--- a/arch/x86_64/include/arch/devices/local_apic.hpp
+++ b/arch/x86_64/include/arch/devices/local_apic.hpp
@@ -12,7 +12,8 @@ namespace arch::devices
struct local_apic : kapi::devices::device
{
- local_apic(std::size_t major, std::size_t minor, std::uint64_t hardware_id, kapi::memory::physical_address base);
+ local_apic(std::size_t major, std::size_t minor, std::uint64_t hardware_id, kapi::memory::physical_address base,
+ bool is_bsp);
auto init() -> bool override;
@@ -23,6 +24,7 @@ namespace arch::devices
std::uint64_t m_hardware_id{};
kapi::memory::physical_address m_base{};
kapi::memory::linear_address m_virtual_base{};
+ bool m_is_bsp{};
};
} // namespace arch::devices