summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorFiroz Khan <firoz.khan@linaro.org>2018-11-13 11:34:32 +0530
committerMichal Simek <michal.simek@xilinx.com>2018-11-16 08:24:33 +0100
commitc0b2826aa02a0747c3016457b9c1917ba14d0655 (patch)
treea33ff2dd5af44077fcfcb1755dc90688cd84109e /README
parent68a385c6c75090798996db42d440db119056a10d (diff)
downloadlinux-c0b2826aa02a0747c3016457b9c1917ba14d0655.tar.bz2
microblaze: move __NR_syscalls macro from asm/unistd.h
__NR_syscalls holds the number of system call exist in microblaze architecture. We have to change the value of __NR_syscalls, if we add or delete a system call. One of the patch in this patch series has a script which will generate a uapi header based on syscall.tbl file. The syscall.tbl file contains the total number of system calls information. So we have two option to update __NR- _syscalls value. 1. Update __NR_syscalls in asm/unistd.h manually by count- ing the no.of system calls. No need to update NR_sys- calls until we either add a new system call or delete existing system call. 2. We can keep this feature it above mentioned script, that will count the number of syscalls and keep it in a generated file. In this case we don't need to expli- citly update __NR_syscalls in asm/unistd.h file. The 2nd option will be the recommended one. For that, I moved the __NR_syscalls macro from asm/unistd.h to uapi- /asm/unistd.h. While __NR_syscalls isn't strictly part of the uapi, having it as part of the generated header to simplifies the implementation. We also need to enclose this macro with #ifdef __KERNEL__ to avoid side effects. Signed-off-by: Firoz Khan <firoz.khan@linaro.org> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions