提交 6ad4e70c 编写于 作者: B Benjamin Herrenschmidt 提交者: Paul Mackerras

[POWERPC] Fix IDE build with ARCH=ppc

The recent IO accessor changes broke IDE on arch/ppc due to the IDE
stream IO macros using the new reads/writes{b,w,l} accessors that
are only defined for arch/powerpc. This adds them to arch/ppc.
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 757db1ed
...@@ -231,6 +231,14 @@ static inline void __raw_writel(__u32 b, volatile void __iomem *addr) ...@@ -231,6 +231,14 @@ static inline void __raw_writel(__u32 b, volatile void __iomem *addr)
#define insl(port, buf, nl) _insl_ns((port)+___IO_BASE, (buf), (nl)) #define insl(port, buf, nl) _insl_ns((port)+___IO_BASE, (buf), (nl))
#define outsl(port, buf, nl) _outsl_ns((port)+___IO_BASE, (buf), (nl)) #define outsl(port, buf, nl) _outsl_ns((port)+___IO_BASE, (buf), (nl))
#define readsb(a, b, n) _insb((a), (b), (n))
#define readsw(a, b, n) _insw_ns((a), (b), (n))
#define readsl(a, b, n) _insl_ns((a), (b), (n))
#define writesb(a, b, n) _outsb((a),(b),(n))
#define writesw(a, b, n) _outsw_ns((a),(b),(n))
#define writesl(a, b, n) _outsl_ns((a),(b),(n))
/* /*
* On powermacs and 8xx we will get a machine check exception * On powermacs and 8xx we will get a machine check exception
* if we try to read data from a non-existent I/O port. Because * if we try to read data from a non-existent I/O port. Because
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册