diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2010-09-06 10:16:04 (GMT) |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-10-22 07:48:59 (GMT) |
commit | 99a5b2878b56d24919eb7e646f2d8e02f63a6efc (patch) | |
tree | 5db99463ad9f68e383aa54c9d102f91f5b890091 /arch/blackfin/include/asm/ptrace.h | |
parent | 73775b892ee70bdc0dbd6aeeebb50894d062f9a1 (diff) | |
download | linux-99a5b2878b56d24919eb7e646f2d8e02f63a6efc.tar.xz |
Blackfin: add new cacheflush syscall
Flushing caches sometimes requires anomaly workarounds which require
supervisor-only insns. Normally we don't need to flush caches from
userspace so this isn't a problem, but when gcc generates trampolines
on the stack, we do.
So add a new syscall for gcc to use modeled after the mips version.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include/asm/ptrace.h')
-rw-r--r-- | arch/blackfin/include/asm/ptrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/ptrace.h b/arch/blackfin/include/asm/ptrace.h index aaa1c6c..832d7c0 100644 --- a/arch/blackfin/include/asm/ptrace.h +++ b/arch/blackfin/include/asm/ptrace.h @@ -113,6 +113,9 @@ extern void user_disable_single_step(struct task_struct *child); /* common code demands this function */ #define ptrace_disable(child) user_disable_single_step(child) +extern int is_user_addr_valid(struct task_struct *child, + unsigned long start, unsigned long len); + /* * Get the address of the live pt_regs for the specified task. * These are saved onto the top kernel stack when the process |