[CVE-2009-0029] powerpc: Enable syscall wrappers for 64-bit
[deliverable/linux.git] / include / linux / syscalls.h
index 0bb537d7ba2e3db514efeae1745e98e3aad50eb1..90aa5eba87a2d45b865df08c84567ee9a0bd80e1 100644 (file)
@@ -103,8 +103,14 @@ struct old_linux_dirent;
 #define SYSCALL_DEFINE5(...)    SYSCALL_DEFINEx(5, __VA_ARGS__)
 #define SYSCALL_DEFINE6(...)    SYSCALL_DEFINEx(6, __VA_ARGS__)
 
+#ifdef CONFIG_PPC64
+#define SYSCALL_ALIAS(alias, name)                                     \
+       asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n"      \
+            "\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
+#else
 #define SYSCALL_ALIAS(alias, name)                                     \
        asm ("\t.globl " #alias "\n\t.set " #alias ", " #name)
+#endif
 
 #ifdef CONFIG_HAVE_SYSCALL_WRAPPERS
 
This page took 0.024115 seconds and 5 git commands to generate.