lkml.org 
[lkml]   [2006]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.6.17-rc5-mm2 link issues on s390
Martin Schwidefsky wrote:

> Can't comment on the port issues yet but we plan to add the s390 support
> to the lock-validator. It is just a cool debugging tool.

OK. So I'll keep my #ifdef hack for the moment.

> Seems reasonable. __io_wirt() is a nop, so you are simply writing to the
> specified address.

Here it is,

thanks !

C.

This patch adds __raw_writeq required by __iowrite64_copy.

It also adds all the related quad routines.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>

---
include/asm-s390/io.h | 5 +++++
1 files changed, 5 insertions(+)

Index: 2.6.17-rc5-mm2/include/asm-s390/io.h
===================================================================
--- 2.6.17-rc5-mm2.orig/include/asm-s390/io.h
+++ 2.6.17-rc5-mm2/include/asm-s390/io.h
@@ -86,20 +86,25 @@
#define readb(addr) (*(volatile unsigned char *) __io_virt(addr))
#define readw(addr) (*(volatile unsigned short *) __io_virt(addr))
#define readl(addr) (*(volatile unsigned int *) __io_virt(addr))
+#define readq(addr) (*(volatile unsigned long *) __io_virt(addr))

#define readb_relaxed(addr) readb(addr)
#define readw_relaxed(addr) readw(addr)
#define readl_relaxed(addr) readl(addr)
+#define readq_relaxed(addr) readq(addr)
#define __raw_readb readb
#define __raw_readw readw
#define __raw_readl readl
+#define __raw_readq readq

#define writeb(b,addr) (*(volatile unsigned char *) __io_virt(addr) = (b))
#define writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b))
#define writel(b,addr) (*(volatile unsigned int *) __io_virt(addr) = (b))
+#define writeq(b,addr) (*(volatile unsigned long *) __io_virt(addr) = (b))
#define __raw_writeb writeb
#define __raw_writew writew
#define __raw_writel writel
+#define __raw_writeq writeq

#define memset_io(a,b,c) memset(__io_virt(a),(b),(c))
#define memcpy_fromio(a,b,c) memcpy((a),__io_virt(b),(c))
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-06-01 15:56    [W:0.103 / U:57.808 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site