Files
android_kernel_xiaomi_sm8450/arch/arm64/kernel
Ard Biesheuvel 60699ba18b arm64: head.S: use ordinary stack frame for __primary_switched()
Instead of stashing the value of the link register in x28 before setting
up the stack and calling into C code, create an ordinary PCS compatible
stack frame so that we can push the return address onto the stack.

Since exception handlers require a stack as well, assign the stack pointer
register before installing the vector table.

Note that this accounts for the difference between THREAD_START_SP and
THREAD_SIZE, given that the stack pointer is always decremented before
calling into any C code.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2016-09-02 11:47:51 +01:00
..
2016-08-25 18:00:29 +01:00
2012-09-17 13:42:21 +01:00
2016-08-25 18:00:29 +01:00
2016-06-27 16:31:25 +01:00
2016-06-27 16:31:25 +01:00
2016-03-04 18:19:17 +00:00
2016-06-27 16:31:25 +01:00
2016-07-19 15:03:20 +01:00
2016-02-24 14:57:27 +00:00
2016-02-24 14:57:24 +00:00
2016-08-01 12:23:44 -05:00
2016-05-20 17:58:30 -07:00
2016-08-31 12:31:38 +01:00
2016-04-20 12:22:42 +01:00