sh: Move quad-word real-address I/O defs to io.h.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 20 Nov 2007 09:26:28 +0000 (18:26 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jan 2008 04:18:50 +0000 (13:18 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/ptrace_64.c
include/asm-sh/io.h

index 14e7d5e5679a28bcb60424a2f4b3822666b6ec36..51bb546365cbadad0809410be974e3d0ca3c6051 100644 (file)
@@ -253,7 +253,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
 
 asmlinkage int sh64_ptrace(long request, long pid, long addr, long data)
 {
-       extern void poke_real_address_q(unsigned long long addr, unsigned long long data);
 #define WPC_DBRMODE 0x0d104008
        static int first_call = 1;
 
index 556aabe844c56a642afa7b9b04900e8147ef546f..74305edceeeb9aee51007b9854922029c472c4ea 100644 (file)
@@ -248,6 +248,11 @@ static inline void ctrl_delay(void)
 #endif
 }
 
+/* Quad-word real-mode I/O, don't ask.. */
+unsigned long long peek_real_address_q(unsigned long long addr);
+unsigned long long poke_real_address_q(unsigned long long addr,
+                                      unsigned long long val);
+
 #define IO_SPACE_LIMIT 0xffffffff
 
 #if !defined(CONFIG_MMU)