Magellan Linux

Annotation of /trunk/klibc/patches/klibc-1.5.14-x86_64-fix-io.h.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 713 - (hide annotations) (download)
Thu Dec 18 21:47:16 2008 UTC (15 years, 6 months ago) by niro
File size: 773 byte(s)
io.h fixes on x86_64

1 niro 713 diff -Nur klibc-1.5.14.orig/usr/include/arch/x86_64/sys/io.h klibc-1.5.14/usr/include/arch/x86_64/sys/io.h
2     --- klibc-1.5.14.orig/usr/include/arch/x86_64/sys/io.h 2008-07-30 23:06:03.000000000 +0200
3     +++ klibc-1.5.14/usr/include/arch/x86_64/sys/io.h 2008-09-18 14:34:20.000000000 +0200
4     @@ -60,21 +60,21 @@
5     {
6     unsigned char __v;
7     asm volatile ("inb %1,%0" : "=a" (__v) : "dN"(__p));
8     - return v;
9     + return __v;
10     }
11    
12     static __inline__ unsigned short inw(unsigned short __p)
13     {
14     unsigned short __v;
15     asm volatile ("inw %1,%0" : "=a" (__v) : "dN"(__p));
16     - return v;
17     + return __v;
18     }
19    
20     static __inline__ unsigned int inl(unsigned short __p)
21     {
22     unsigned int __v;
23     asm volatile ("inl %1,%0" : "=a" (__v) : "dN"(__p));
24     - return v;
25     + return __v;
26     }
27    
28     /* String I/O macros */