aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-27 06:58:18 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-27 07:00:14 +0100
commit05269b10e50a80f557c2be475904ff15dc1bbec4 (patch)
tree9f63b9973403580000f5eecab68974b504919fee /arch/x86_64/include
parent4d3b5d9115aa896c0ed12758ff0fc9a16ebc8df2 (diff)
downloadteachos-05269b10e50a80f557c2be475904ff15dc1bbec4.tar.xz
teachos-05269b10e50a80f557c2be475904ff15dc1bbec4.zip
x86_64/port_io: fix assembly templates
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/device_io/port_io.hpp6
1 files changed, 3 insertions, 3 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 65e58e3..70773dd 100644
--- a/arch/x86_64/include/arch/device_io/port_io.hpp
+++ b/arch/x86_64/include/arch/device_io/port_io.hpp
@@ -69,9 +69,9 @@ namespace arch::io
//! The assembly templates used for writing to an I/O port.
constexpr auto static code = std::array{
- std::string_view{"mov %[port], %%dx\nmov %%dx, %[data]\nout %%al, %%dx"},
- std::string_view{"mov %[port], %%dx\nmov %%dx, %[data]\nout %%ax, %%dx"},
- std::string_view{"mov %[port], %%dx\nmov %%dx, %[data]\nout %%eax, %%dx"},
+ std::string_view{"mov %[port], %%dx\nmov %[data], %%al\nout %%al, %%dx"},
+ std::string_view{"mov %[port], %%dx\nmov %[data], %%ax\nout %%ax, %%dx"},
+ std::string_view{"mov %[port], %%dx\nmov %[data], %%eax\nout %%eax, %%dx"},
};
};