summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2020-04-14 22:14:52 +0300
committerAndreas Kling <kling@serenityos.org>2020-04-15 12:35:10 +0200
commit223a863c6da843298e48ca09cea22c56ce4b3b23 (patch)
tree6403a4089db7f8f2c7d5d1ff19dfaec29643d6ba
parentf5090ab8105c36c28addd30aaa9c387cb35d12e4 (diff)
downloadserenity-223a863c6da843298e48ca09cea22c56ce4b3b23.zip
LibBareMetal: Accept a u16 type pointer in the appropriate IO functions
-rw-r--r--Libraries/LibBareMetal/IO.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibBareMetal/IO.h b/Libraries/LibBareMetal/IO.h
index 860753e155..6d3eec41bd 100644
--- a/Libraries/LibBareMetal/IO.h
+++ b/Libraries/LibBareMetal/IO.h
@@ -64,7 +64,7 @@ inline u32 in32(u16 port)
return value;
}
-inline void repeated_in16(u16 port, u8* buffer, int buffer_size)
+inline void repeated_in16(u16 port, u16* buffer, int buffer_size)
{
asm volatile("rep insw"
: "+D"(buffer), "+c"(buffer_size)
@@ -87,7 +87,7 @@ inline void out32(u16 port, u32 value)
asm volatile("outl %0, %1" ::"a"(value), "Nd"(port));
}
-inline void repeated_out16(u16 port, const u8* data, int data_size)
+inline void repeated_out16(u16 port, const u16* data, int data_size)
{
asm volatile("rep outsw"
: "+S"(data), "+c"(data_size)