]> 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)
commitfcbd6d63dae90a5366cf0569b11a6c6a75544599
treec4b32d5157b506c49644ff830a67259290552eb0
parenta0a45fe2da5b33e237f960a506efd8559fbcf090
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