arm64: efi: add missing frame pointer assignment
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 3 Mar 2016 16:31:32 +0000 (17:31 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 4 Mar 2016 18:12:23 +0000 (18:12 +0000)
The prologue of the EFI entry point pushes x29 and x30 onto the stack but
fails to create the stack frame correctly by omitting the assignment of x29
to the new value of the stack pointer. So fix that.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/efi-entry.S

index f82036e02485a0abe27349e3ec76a00a491f7450..cae3112f779122528545dc086549f9d82c688d52 100644 (file)
@@ -35,6 +35,7 @@ ENTRY(entry)
         * for image_addr variable passed to efi_entry().
         */
        stp     x29, x30, [sp, #-32]!
+       mov     x29, sp
 
        /*
         * Call efi_entry to do the real work.