ARM: aarch64: add ENTRY_PROC macro for arm64
arm64 has no __naked__ attribute and the compiler adds a function prologue
for saving x29 and x30 to the stack for all C functions. This includes
functions defined using the ENTRY_FUNCTION macro. Therefore, the stack
needs to be setup before entering a C function, which is not possible if
the entry is a C function.

Provide a macro to implement the entry in assembly to be able to setup the
stack before entering the low level entry function.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 64d9589 commit be2ca38aaaac1739421588a71a6fc2c601bc7604
@Michael Tretter Michael Tretter authored on 7 Dec 2018
Sascha Hauer committed on 10 Dec 2018
Showing 1 changed file
View
arch/arm/include/asm/barebox-arm64.h 0 → 100644