[PATCH 14/17] arm64: entry: move NO_SYSCALL setup to C

Anshuman Khandual anshuman.khandual at arm.com
Thu Jan 9 21:37:27 PST 2020

On 01/09/2020 12:26 AM, Mark Rutland wrote:
> In the entry assembly we set up pt_regs::syscallno to NO_SYSCALL so that
> any ptrace calls will see a sensible value. For real syscalls, the
> actual syscall number is setup in C code, in do_el0_svc or
> do_el0_svc_compat.
> Given that tracing isn't performed until the usual EL0 entry work is
> performed, we can move the default syscallno setup to C code, making
> things simpler and more legible.
> Signed-off-by: Mark Rutland <mark.rutland at arm.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: James Morse <james.morse at arm.com>
> Cc: Will Deacon <will at kernel.org>

Reviewed-by: Anshuman Khandual <anshuman.khandual at arm.com>

More information about the linux-arm-kernel mailing list