OSDN Git Service

arm64: convert native/compat syscall entry to C
authorMark Rutland <mark.rutland@arm.com>
Wed, 11 Jul 2018 13:56:45 +0000 (14:56 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 12 Jul 2018 13:49:47 +0000 (14:49 +0100)
commit3b7142752e4bee153df6db4a76ca104ef0d7c0b4
tree3f51bae1958091a7fe9d395f9c998dc9365b276f
parentf37099b6992a0b818c7b51b899e435f4006a9f90
arm64: convert native/compat syscall entry to C

Now that the syscall invocation logic is in C, we can migrate the rest
of the syscall entry logic over, so that the entry assembly needn't look
at the register values at all.

The SVE reset across syscall logic now unconditionally clears TIF_SVE,
but sve_user_disable() will only write back to CPACR_EL1 when SVE is
actually enabled.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Dave Martin <dave.martin@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/syscall.h
arch/arm64/kernel/entry.S
arch/arm64/kernel/syscall.c