forked from Minki/linux
[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>
This commit is contained in:
parent
ff23db5373
commit
92fe15a3d2
@ -45,8 +45,13 @@ static inline void writel(unsigned int b, volatile void __iomem *addr)
|
|||||||
{
|
{
|
||||||
*(volatile unsigned int __force *) addr = b;
|
*(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_writeb writeb
|
||||||
#define __raw_writew writew
|
#define __raw_writew writew
|
||||||
#define __raw_writel writel
|
#define __raw_writel writel
|
||||||
|
#define __raw_writeq writeq
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user