diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-08-31 14:05:16 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-09-02 13:47:51 +0300 |
commit | 60699ba18b69ff210ed0304bc23f6c9d11d27a72 (patch) | |
tree | dc618b2522ad8382207796cc43f772ebf4c250d4 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | b929fe320e5f3c91c76cca81be80f2dde2ac54a6 (diff) | |
download | linux-60699ba18b69ff210ed0304bc23f6c9d11d27a72.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions