소스 검색

fix breakage from introducing bits header for sys/io.h

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.
Rich Felker 12 년 전
부모
커밋
0004ea613a
7개의 변경된 파일3개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 0
      arch/arm/bits/io.h
  2. 0 3
      arch/i386/bits/io.h
  3. 0 0
      arch/microblaze/bits/io.h
  4. 0 0
      arch/mips/bits/io.h
  5. 0 0
      arch/powerpc/bits/io.h
  6. 0 3
      arch/x86_64/bits/io.h
  7. 3 0
      include/sys/io.h

+ 0 - 0
arch/arm/bits/io.h


+ 0 - 3
arch/i386/bits/io.h

@@ -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));

+ 0 - 0
arch/microblaze/bits/io.h


+ 0 - 0
arch/mips/bits/io.h


+ 0 - 0
arch/powerpc/bits/io.h


+ 0 - 3
arch/x86_64/bits/io.h

@@ -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));

+ 3 - 0
include/sys/io.h

@@ -8,6 +8,9 @@ extern "C" {
 
 #include <bits/io.h>
 
+int iopl(int);
+int ioperm(unsigned long, unsigned long, int);
+
 #ifdef __cplusplus
 }
 #endif