[PATCH] Fix include/asm-mips/io.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Another small fix. In the latest change, writeb() and friends got
changed to use __ioswa*p*X(), and this is not defined
anywhere. Changed back to __ioswa*b*X().

Now let's see if I can boot this kernel :)

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb@jblache.org> 

--- io.h.orig	2003-07-01 16:05:46.000000000 +0000
+++ io.h	2003-07-01 16:05:09.000000000 +0000
@@ -295,10 +295,10 @@
 	local_irq_restore(flags);					\
 })
 
-#define writeb(b,addr)		__raw_writeb(__ioswap8(b),(addr))
-#define writew(w,addr)		__raw_writew(__ioswap16(w),(addr))
-#define writel(l,addr)		__raw_writel(__ioswap32(l),(addr))
-#define writeq(q,addr)		__raw_writeq(__ioswap64(q),(addr))
+#define writeb(b,addr)		__raw_writeb(__ioswab8(b),(addr))
+#define writew(w,addr)		__raw_writew(__ioswab16(w),(addr))
+#define writel(l,addr)		__raw_writel(__ioswab32(l),(addr))
+#define writeq(q,addr)		__raw_writeq(__ioswab64(q),(addr))
 
 #define memset_io(a,b,c)	memset((void *)(a),(b),(c))
 #define memcpy_fromio(a,b,c)	memcpy((a),(void *)(b),(c))

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux