summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-20 10:26:28 +0100
committerPaul Mundt <lethal@linux-sh.org>2008-01-28 05:18:50 +0100
commitac490a4893d37279f704876d430c3683071398b2 (patch)
tree3423633363dc1fcb064bfbb22ca72c1c19549f33
parentsh: Share bug/debug traps across _32 and _64. (diff)
downloadlinux-ac490a4893d37279f704876d430c3683071398b2.tar.xz
linux-ac490a4893d37279f704876d430c3683071398b2.zip
sh: Move quad-word real-address I/O defs to io.h.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/kernel/ptrace_64.c1
-rw-r--r--include/asm-sh/io.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/arch/sh/kernel/ptrace_64.c b/arch/sh/kernel/ptrace_64.c
index 14e7d5e5679a..51bb546365cb 100644
--- a/arch/sh/kernel/ptrace_64.c
+++ b/arch/sh/kernel/ptrace_64.c
@@ -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;
diff --git a/include/asm-sh/io.h b/include/asm-sh/io.h
index 556aabe844c5..74305edceeeb 100644
--- a/include/asm-sh/io.h
+++ b/include/asm-sh/io.h
@@ -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)