1 static_assert(!(SYSCALLENT_BASE_NR & (SYSCALLENT_BASE_NR - 1)),
2 "SYSCALLENT_BASE_NR is not a power of 2 (or zero)");
3 static_assert(nsyscalls0 < SYSCALLENT_BASE_NR,
4 "syscall table is too big, "
5 "shuffling will only make everything worse");
6
7 kernel_ulong_t
8 shuffle_scno_pers(kernel_ulong_t scno, int pers)
9 {
10 return scno ^ SYSCALLENT_BASE_NR;
11 }