fix breakage from introducing bits header for sys/io.h
authorRich Felker <dalias@aerifal.cx>
Mon, 19 Nov 2012 00:58:15 +0000 (19:58 -0500)
committerRich Felker <dalias@aerifal.cx>
Mon, 19 Nov 2012 00:58:15 +0000 (19:58 -0500)
apparently some other archs have sys/io.h and should not break just
because they don't have the x86 port io functions. provide a blank
bits/io.h everywhere for now.

arch/arm/bits/io.h [new file with mode: 0644]
arch/i386/bits/io.h
arch/microblaze/bits/io.h [new file with mode: 0644]
arch/mips/bits/io.h [new file with mode: 0644]
arch/powerpc/bits/io.h [new file with mode: 0644]
arch/x86_64/bits/io.h
include/sys/io.h

diff --git a/arch/arm/bits/io.h b/arch/arm/bits/io.h
new file mode 100644 (file)
index 0000000..e69de29
index d26ea57..dd5bddc 100644 (file)
@@ -1,6 +1,3 @@
-int iopl(int);
-int ioperm(unsigned long, unsigned long, int);
-
 static __inline void outb(unsigned char __val, unsigned short __port)
 {
        __asm__ volatile ("outb %0,%1" : : "a" (__val), "dN" (__port));
diff --git a/arch/microblaze/bits/io.h b/arch/microblaze/bits/io.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/arch/mips/bits/io.h b/arch/mips/bits/io.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/arch/powerpc/bits/io.h b/arch/powerpc/bits/io.h
new file mode 100644 (file)
index 0000000..e69de29
index d26ea57..dd5bddc 100644 (file)
@@ -1,6 +1,3 @@
-int iopl(int);
-int ioperm(unsigned long, unsigned long, int);
-
 static __inline void outb(unsigned char __val, unsigned short __port)
 {
        __asm__ volatile ("outb %0,%1" : : "a" (__val), "dN" (__port));
index ce5423e..16658ce 100644 (file)
@@ -8,6 +8,9 @@ extern "C" {
 
 #include <bits/io.h>
 
+int iopl(int);
+int ioperm(unsigned long, unsigned long, int);
+
 #ifdef __cplusplus
 }
 #endif