mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
LibBareMetal: Accept a u16 type pointer in the appropriate IO functions
This commit is contained in:
parent
f5090ab810
commit
223a863c6d
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ inline u32 in32(u16 port)
|
||||||
return value;
|
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"
|
asm volatile("rep insw"
|
||||||
: "+D"(buffer), "+c"(buffer_size)
|
: "+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));
|
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"
|
asm volatile("rep outsw"
|
||||||
: "+S"(data), "+c"(data_size)
|
: "+S"(data), "+c"(data_size)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue