diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-27 06:58:18 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-27 07:00:14 +0100 |
| commit | 05269b10e50a80f557c2be475904ff15dc1bbec4 (patch) | |
| tree | 9f63b9973403580000f5eecab68974b504919fee | |
| parent | 4d3b5d9115aa896c0ed12758ff0fc9a16ebc8df2 (diff) | |
| download | teachos-05269b10e50a80f557c2be475904ff15dc1bbec4.tar.xz teachos-05269b10e50a80f557c2be475904ff15dc1bbec4.zip | |
x86_64/port_io: fix assembly templates
| -rw-r--r-- | arch/x86_64/include/arch/device_io/port_io.hpp | 6 |
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"}, }; }; |
