Blackfin: add new cacheflush syscall
commit99a5b2878b56d24919eb7e646f2d8e02f63a6efc
authorSonic Zhang <sonic.zhang@analog.com>
Mon, 6 Sep 2010 10:16:04 +0000 (6 10:16 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 22 Oct 2010 07:48:59 +0000 (22 03:48 -0400)
tree5db99463ad9f68e383aa54c9d102f91f5b890091
parent73775b892ee70bdc0dbd6aeeebb50894d062f9a1
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>
arch/blackfin/include/asm/Kbuild
arch/blackfin/include/asm/cachectl.h [new file with mode: 0644]
arch/blackfin/include/asm/ptrace.h
arch/blackfin/include/asm/unistd.h
arch/blackfin/kernel/ptrace.c
arch/blackfin/kernel/sys_bfin.c
arch/blackfin/mach-common/entry.S