Skip to content
Snippets Groups Projects
Commit ef30c2c7 authored by rsc's avatar rsc
Browse files

no more w

parent bcca6c6b
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,10 @@
// hardware instructions.
static __inline uchar
inb(int port)
inb(ushort port)
{
uchar data;
__asm __volatile("inb %w1,%0" : "=a" (data) : "d" (port));
__asm __volatile("in %1,%0" : "=a" (data) : "d" (port));
return data;
}
......@@ -19,15 +19,15 @@ insl(int port, void *addr, int cnt)
}
static __inline void
outb(int port, uchar data)
outb(ushort port, uchar data)
{
__asm __volatile("outb %0,%w1" : : "a" (data), "d" (port));
__asm __volatile("out %0,%1" : : "a" (data), "d" (port));
}
static __inline void
outw(int port, ushort data)
outw(ushort port, ushort data)
{
__asm __volatile("outw %0,%w1" : : "a" (data), "d" (port));
__asm __volatile("out %0,%1" : : "a" (data), "d" (port));
}
static __inline void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment