]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: assembler: add utility macros to push/pop stack frames
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 29 Mar 2018 13:13:22 +0000 (15:13 +0200)
committerWill Deacon <will.deacon@arm.com>
Wed, 11 Apr 2018 17:50:34 +0000 (18:50 +0100)
commitb6606d6cb3617dbae652f0af6871921bd10bb1b6
treec4b32d5157b506c49644ff830a67259290552eb0
parent7416214fa513bb7a2de50bc1236c75daa2936d44
arm64: assembler: add utility macros to push/pop stack frames

We are going to add code to all the NEON crypto routines that will
turn them into non-leaf functions, so we need to manage the stack
frames. To make this less tedious and error prone, add some macros
that take the number of callee saved registers to preserve and the
extra size to allocate in the stack frame (for locals) and emit
the ldp/stp sequences.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/assembler.h