mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
8340437210
commit
8b9cf76d0f
|
@ -148,7 +148,7 @@ struct old_linux_dirent;
|
||||||
asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n" \
|
asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n" \
|
||||||
"\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
|
"\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
|
||||||
#else
|
#else
|
||||||
#ifdef CONFIG_ALPHA
|
#if defined(CONFIG_ALPHA) || defined(CONFIG_MIPS)
|
||||||
#define SYSCALL_ALIAS(alias, name) \
|
#define SYSCALL_ALIAS(alias, name) \
|
||||||
asm ( #alias " = " #name "\n\t.globl " #alias)
|
asm ( #alias " = " #name "\n\t.globl " #alias)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue