]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Change system_call_exception calling convention
authorRohan McLure <rmclure@linux.ibm.com>
Wed, 21 Sep 2022 06:56:00 +0000 (16:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:09 +0000 (19:22 +1000)
commit82af50b7ec6558e7efa52fb7cc85169a8b39f73d
treeb13a12041449c8ac129cc0479be77ded55e82f9e
parente276a07ef5071f8722d3e766b31e2eabf6efa243
powerpc: Change system_call_exception calling convention

Change system_call_exception arguments to pass a pointer to a stack
frame container caller state, as well as the original r0, which
determines the number of the syscall. This has been observed to yield
improved performance to passing them by registers, circumventing the
need to allocate a stack frame.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Retain clearing of high bits of args for compat tasks]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220921065605.1051927-21-rmclure@linux.ibm.com
arch/powerpc/include/asm/interrupt.h
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/interrupt_64.S
arch/powerpc/kernel/syscall.c