summaryrefslogtreecommitdiffstats
path: root/include/asm-um/io.h
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2006-06-30 10:55:59 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-30 20:25:38 +0200
commit92fe15a3d24fa53e7e961c549c488d0bb642d895 (patch)
tree168020a6356ce53e52d1e22211c11c3262966c55 /include/asm-um/io.h
parent[PATCH] uml: fix biarch gcc build on x86_64 (diff)
downloadlinux-92fe15a3d24fa53e7e961c549c488d0bb642d895.tar.xz
linux-92fe15a3d24fa53e7e961c549c488d0bb642d895.zip
[PATCH] uml: add __raw_writeq definition
The x86_64 build requires a definition for __raw_writeq. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-um/io.h')
-rw-r--r--include/asm-um/io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-um/io.h b/include/asm-um/io.h
index 1934d9340e2c..44e8b8c772ae 100644
--- a/include/asm-um/io.h
+++ b/include/asm-um/io.h
@@ -45,8 +45,13 @@ static inline void writel(unsigned int b, volatile void __iomem *addr)
{
*(volatile unsigned int __force *) addr = b;
}
+static inline void writeq(unsigned int b, volatile void __iomem *addr)
+{
+ *(volatile unsigned long long __force *) addr = b;
+}
#define __raw_writeb writeb
#define __raw_writew writew
#define __raw_writel writel
+#define __raw_writeq writeq
#endif