summaryrefslogtreecommitdiffstats
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2009-04-21 13:44:13 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-21 07:50:58 -0700
commit8b9cf76d0fa6cd98fe42dd2f86460d6ede55fed8 (patch)
tree2c9f926f83bdcbc260304aa243087613a3894871 /include/linux/syscalls.h
parent8340437210390676f687633a80e3748c40885dc8 (diff)
downloadblackbird-op-linux-8b9cf76d0fa6cd98fe42dd2f86460d6ede55fed8.tar.gz
blackbird-op-linux-8b9cf76d0fa6cd98fe42dd2f86460d6ede55fed8.zip
Fix SYSCALL_ALIAS for older MIPS assembler
Older MIPS assembler don't support .set for defining aliases. Using = works for old and new assembers. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r--include/linux/syscalls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index dabe4ad89141..40617c1d8976 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -148,7 +148,7 @@ struct old_linux_dirent;
asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n" \
"\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
#else
-#ifdef CONFIG_ALPHA
+#if defined(CONFIG_ALPHA) || defined(CONFIG_MIPS)
#define SYSCALL_ALIAS(alias, name) \
asm ( #alias " = " #name "\n\t.globl " #alias)
#else
OpenPOWER on IntegriCloud