]> git.baikalelectronics.ru Git - kernel.git/commit
ia64: add an offset for system call number
authorFiroz Khan <firoz.khan@linaro.org>
Tue, 13 Nov 2018 06:57:43 +0000 (12:27 +0530)
committerTony Luck <tony.luck@intel.com>
Tue, 13 Nov 2018 16:56:12 +0000 (08:56 -0800)
commite70cfff711ad80308858b0e269813cea900b195f
tree2b1213c20e86ae522169d1585a4e4046181debf3
parentac61a53954b018f1a3cc59f549c5679a06dd2578
ia64: add an offset for system call number

The system call number in ia64 architecture starts with 1024.
But most of the other architecute starts with 0. In order to
come up with a common implementation to generate uapi header
we need to add an offset - __NR_Linux with a value 1024.

One of the patch in this patch series does have a script to
generate uapi header which uses syscall.tbl file. In syscall-
.tbl contain system call number. With the use of __NR_Linux,
we can start the number from 0 instead of 1024.

Signed-off-by: Firoz Khan <firoz.khan@linaro.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/include/uapi/asm/unistd.h