diff options
author | David Howells <dhowells@redhat.com> | 2010-09-29 02:57:02 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-09-29 03:01:14 +0200 |
commit | 62bdb288bf464862a2801b2e53aadc6c4d100fab (patch) | |
tree | 35f321df2ab9091d2f4a1f788b609ad36fed03db /arch/mn10300/mm/cache-disabled.c | |
parent | alpha: fix compile problem in arch/alpha/kernel/signal.c (diff) | |
download | linux-62bdb288bf464862a2801b2e53aadc6c4d100fab.tar.xz linux-62bdb288bf464862a2801b2e53aadc6c4d100fab.zip |
MN10300: Handle missing sys_cacheflush() when caching disabled
When caching is disabled on the MN10300 arch, the sys_cacheflush()
function is removed by conditional stuff in the makefiles, but is still
referred to by the syscall table.
Provide a null version that just returns 0 when caching is disabled (or
-EINVAL if the arguments are silly).
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | arch/mn10300/mm/cache-disabled.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/mn10300/mm/cache-disabled.c b/arch/mn10300/mm/cache-disabled.c new file mode 100644 index 000000000000..f669ea42aba6 --- /dev/null +++ b/arch/mn10300/mm/cache-disabled.c @@ -0,0 +1,21 @@ +/* Handle the cache being disabled + * + * Copyright (C) 2010 Red Hat, Inc. All Rights Reserved. + * Written by David Howells (dhowells@redhat.com) + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public Licence + * as published by the Free Software Foundation; either version + * 2 of the Licence, or (at your option) any later version. + */ +#include <linux/mm.h> + +/* + * allow userspace to flush the instruction cache + */ +asmlinkage long sys_cacheflush(unsigned long start, unsigned long end) +{ + if (end < start) + return -EINVAL; + return 0; +} |