diff options
| author | Ard Biesheuvel <[email protected]> | 2016-08-31 12:05:16 +0100 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2016-09-02 11:47:51 +0100 |
| commit | 60699ba18b69ff210ed0304bc23f6c9d11d27a72 (patch) | |
| tree | dc618b2522ad8382207796cc43f772ebf4c250d4 /tools/perf/scripts/python | |
| parent | b929fe320e5f3c91c76cca81be80f2dde2ac54a6 (diff) | |
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 <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions