]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/arm64/kernel/entry.S
arm64: don't call C code with el0's fp register
[mirror_ubuntu-zesty-kernel.git] / arch / arm64 / kernel / entry.S
index e394f8c9595a493f00c083f1d0733ad1fdca5a27..2284c296e3f71a11286d0969e067285977bc42f6 100644 (file)
@@ -93,6 +93,8 @@
        and     tsk, tsk, #~(THREAD_SIZE - 1)   // Ensure MDSCR_EL1.SS is clear,
        ldr     x19, [tsk, #TI_FLAGS]           // since we can unmask debug
        disable_step_tsk x19, x20               // exceptions when scheduling.
+
+       mov     x29, xzr                        // fp pointed to user-space
        .else
        add     x21, sp, #S_FRAME_SIZE
        .endif