syscall: tweak shuffle_scno ifdefery

* syscall.c (shuffle_scno): Check for ARM_FIRST_SHUFFLED_SYSCALL
instead of ARM || AARCH64.  This does not result to any code change
but looks more comprehensible.
This commit is contained in:
Дмитрий Левин 2017-12-24 15:07:10 +00:00
parent 2a09a8cd8a
commit 660f100099

View File

@ -483,7 +483,7 @@ dumpio(struct tcb *tcp)
static kernel_ulong_t
shuffle_scno(kernel_ulong_t scno)
{
#if defined(ARM) || defined(AARCH64) /* So far only 32-bit ARM needs this */
#ifdef ARM_FIRST_SHUFFLED_SYSCALL /* So far only 32-bit ARM needs this */
if (scno < ARM_FIRST_SHUFFLED_SYSCALL)
return scno;
@ -506,7 +506,7 @@ shuffle_scno(kernel_ulong_t scno)
if (scno <= ARM_SECOND_SHUFFLED_SYSCALL + ARM_LAST_SPECIAL_SYSCALL) {
return scno + 0x000f0000 - ARM_SECOND_SHUFFLED_SYSCALL;
}
#endif /* ARM || AARCH64 */
#endif /* ARM_FIRST_SHUFFLED_SYSCALL */
return scno;
}