pkgsrc-ng/x11/modular-xorg-server/patches/patch-hw_xfree86_common_compiler.h
2013-09-26 17:14:40 +02:00

54 lines
1.5 KiB
C

$NetBSD: patch-hw_xfree86_common_compiler.h,v 1.1 2013/05/21 18:38:03 joerg Exp $
--- hw/xfree86/common/compiler.h.orig 2013-05-21 17:33:57.000000000 +0000
+++ hw/xfree86/common/compiler.h
@@ -1392,26 +1392,26 @@ inl(unsigned short port)
static __inline__ void
outb(unsigned short port, unsigned char val)
{
- __asm__ __volatile__("out%B0 (%1)"::"a"(val), "d"(port));
+ __asm__ __volatile__("outb %0, %1"::"a"(val), "d"(port));
}
static __inline__ void
outw(unsigned short port, unsigned short val)
{
- __asm__ __volatile__("out%W0 (%1)"::"a"(val), "d"(port));
+ __asm__ __volatile__("outw %0, %1"::"a"(val), "d"(port));
}
static __inline__ void
outl(unsigned short port, unsigned int val)
{
- __asm__ __volatile__("out%L0 (%1)"::"a"(val), "d"(port));
+ __asm__ __volatile__("outl %0, %1"::"a"(val), "d"(port));
}
static __inline__ unsigned int
inb(unsigned short port)
{
unsigned char ret;
- __asm__ __volatile__("in%B0 (%1)":"=a"(ret):"d"(port));
+ __asm__ __volatile__("inb %1, %0":"=a"(ret):"d"(port));
return ret;
}
@@ -1420,7 +1420,7 @@ static __inline__ unsigned int
inw(unsigned short port)
{
unsigned short ret;
- __asm__ __volatile__("in%W0 (%1)":"=a"(ret):"d"(port));
+ __asm__ __volatile__("inw %1, %0":"=a"(ret):"d"(port));
return ret;
}
@@ -1429,7 +1429,7 @@ static __inline__ unsigned int
inl(unsigned short port)
{
unsigned int ret;
- __asm__ __volatile__("in%L0 (%1)":"=a"(ret):"d"(port));
+ __asm__ __volatile__("inl %1, %0":"=a"(ret):"d"(port));
return ret;
}