aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-04-02 15:55:47 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-04-02 15:55:47 +0200
commitc5afb5c1ce1c084c840dbb58d73af6fe2b235ec7 (patch)
treeb9f097cbcf14e264a6818103a73c48a31830ffe4 /arch/x86_64/include
parent21489576381d827871e7cdf060929c5d7f3d4e9f (diff)
downloadteachos-c5afb5c1ce1c084c840dbb58d73af6fe2b235ec7.tar.xz
teachos-c5afb5c1ce1c084c840dbb58d73af6fe2b235ec7.zip
x86_64: ensure PIT is not overwhelmed on config
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/device_io/port_io.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86_64/include/arch/device_io/port_io.hpp b/arch/x86_64/include/arch/device_io/port_io.hpp
index 70773dd..4c8d66a 100644
--- a/arch/x86_64/include/arch/device_io/port_io.hpp
+++ b/arch/x86_64/include/arch/device_io/port_io.hpp
@@ -102,6 +102,11 @@ namespace arch::io
: std::string_view{"eax"};
};
+ auto inline wait() -> void
+ {
+ port<0x80, std::uint8_t, port_write>::write<std::uint8_t>(0);
+ }
+
} // namespace arch::io
#endif \ No newline at end of file