aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/devices/legacy_pit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/devices/legacy_pit.cpp')
-rw-r--r--arch/x86_64/src/devices/legacy_pit.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86_64/src/devices/legacy_pit.cpp b/arch/x86_64/src/devices/legacy_pit.cpp
index f2fb70e..970f538 100644
--- a/arch/x86_64/src/devices/legacy_pit.cpp
+++ b/arch/x86_64/src/devices/legacy_pit.cpp
@@ -6,6 +6,7 @@
#include "arch/device_io/port_io.hpp"
+#include <cstddef>
#include <cstdint>
namespace arch::devices
@@ -19,8 +20,8 @@ namespace arch::devices
using channel_2_port = io::port<0x42, std::uint8_t, io::port_write>;
} // namespace
- legacy_pit::legacy_pit(std::uint32_t frequency_in_hz)
- : kapi::devices::device{kapi::devices::allocate_major_number(), 0, "legacy_pit"}
+ legacy_pit::legacy_pit(std::size_t major, std::uint32_t frequency_in_hz)
+ : kapi::devices::device{major, 0, "legacy_pit"}
, m_irq_number{0}
, m_frequency_in_hz{frequency_in_hz}
{}