| .. | .. |
|---|
| 28 | 28 | #include <linux/sched/mm.h> |
|---|
| 29 | 29 | #include <linux/shm.h> |
|---|
| 30 | 30 | |
|---|
| 31 | | -typedef void (*syscall_t)(void); |
|---|
| 31 | +syscall_t sys_call_table[__NR_syscalls] /* FIXME __cacheline_aligned */= { |
|---|
| 32 | + [0 ... __NR_syscalls - 1] = (syscall_t)&sys_ni_syscall, |
|---|
| 32 | 33 | |
|---|
| 33 | | -syscall_t sys_call_table[__NR_syscall_count] /* FIXME __cacheline_aligned */= { |
|---|
| 34 | | - [0 ... __NR_syscall_count - 1] = (syscall_t)&sys_ni_syscall, |
|---|
| 35 | | - |
|---|
| 36 | | -#define __SYSCALL(nr,symbol,nargs) [ nr ] = (syscall_t)symbol, |
|---|
| 37 | | -#include <uapi/asm/unistd.h> |
|---|
| 34 | +#define __SYSCALL(nr, entry, nargs)[nr] = (syscall_t)entry, |
|---|
| 35 | +#include <asm/syscall_table.h> |
|---|
| 36 | +#undef __SYSCALL |
|---|
| 38 | 37 | }; |
|---|
| 39 | 38 | |
|---|
| 40 | 39 | #define COLOUR_ALIGN(addr, pgoff) \ |
|---|