|
17 | 17 | #include <asm/ppc_asm.h> |
18 | 18 |
|
19 | 19 | #ifdef CONFIG_PPC64 |
20 | | -#define SYSCALL(func) .8byte DOTSYM(sys_##func),DOTSYM(sys_##func) |
21 | | -#define COMPAT_SYS(func) .8byte DOTSYM(sys_##func),DOTSYM(compat_sys_##func) |
22 | | -#define PPC_SYS(func) .8byte DOTSYM(ppc_##func),DOTSYM(ppc_##func) |
23 | | -#define OLDSYS(func) .8byte DOTSYM(sys_ni_syscall),DOTSYM(sys_ni_syscall) |
24 | | -#define SYS32ONLY(func) .8byte DOTSYM(sys_ni_syscall),DOTSYM(compat_sys_##func) |
25 | | -#define PPC64ONLY(func) .8byte DOTSYM(ppc_##func),DOTSYM(sys_ni_syscall) |
26 | | -#define SYSX(f, f3264, f32) .8byte DOTSYM(f),DOTSYM(f3264) |
| 20 | +#define SYSCALL(func) .8byte DOTSYM(sys_##func) |
| 21 | +#define COMPAT_SYS(func) .8byte DOTSYM(sys_##func) |
| 22 | +#define PPC_SYS(func) .8byte DOTSYM(ppc_##func) |
| 23 | +#define OLDSYS(func) .8byte DOTSYM(sys_ni_syscall) |
| 24 | +#define SYS32ONLY(func) .8byte DOTSYM(sys_ni_syscall) |
| 25 | +#define PPC64ONLY(func) .8byte DOTSYM(ppc_##func) |
| 26 | +#define SYSX(f, f3264, f32) .8byte DOTSYM(f) |
27 | 27 | #else |
28 | 28 | #define SYSCALL(func) .long sys_##func |
29 | 29 | #define COMPAT_SYS(func) .long sys_##func |
|
46 | 46 |
|
47 | 47 | .globl sys_call_table |
48 | 48 | sys_call_table: |
| 49 | +#include <asm/systbl.h> |
| 50 | + |
| 51 | +#undef SYSCALL |
| 52 | +#undef COMPAT_SYS |
| 53 | +#undef PPC_SYS |
| 54 | +#undef OLDSYS |
| 55 | +#undef SYS32ONLY |
| 56 | +#undef PPC64ONLY |
| 57 | +#undef SYSX |
49 | 58 |
|
| 59 | +#ifdef CONFIG_COMPAT |
| 60 | +#define SYSCALL(func) .8byte DOTSYM(sys_##func) |
| 61 | +#define COMPAT_SYS(func) .8byte DOTSYM(compat_sys_##func) |
| 62 | +#define PPC_SYS(func) .8byte DOTSYM(ppc_##func) |
| 63 | +#define OLDSYS(func) .8byte DOTSYM(sys_ni_syscall) |
| 64 | +#define SYS32ONLY(func) .8byte DOTSYM(compat_sys_##func) |
| 65 | +#define PPC64ONLY(func) .8byte DOTSYM(sys_ni_syscall) |
| 66 | +#define SYSX(f, f3264, f32) .8byte DOTSYM(f3264) |
| 67 | + |
| 68 | +.globl compat_sys_call_table |
| 69 | +compat_sys_call_table: |
50 | 70 | #define compat_sys_sigsuspend sys_sigsuspend |
51 | 71 | #include <asm/systbl.h> |
| 72 | +#endif |
0 commit comments