]> www.infradead.org Git - users/jedix/linux-maple.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)
commitbf03ebfe94eaa7d612e6b030306c5fef8ab20208
tree2b1213c20e86ae522169d1585a4e4046181debf3
parentd7c5e82c08a0fb8b8d5186cdcb6d2c54ada4076b
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