diff options
author | Mark Rutland <[email protected]> | 2020-11-30 11:59:44 +0000 |
---|---|---|
committer | Will Deacon <[email protected]> | 2020-11-30 12:11:37 +0000 |
commit | 3cb5ed4d76c15fb97c10e5e9f5268d92c68222ca (patch) | |
tree | 8508227f2d219c60dd00f6c9f52cbc3cdf869821 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 2f911d494f3f028bbe6346e383a354225682cf1b (diff) |
arm64: entry: prepare ret_to_user for function call
In a subsequent patch ret_to_user will need to make a C function call
(in some configurations) which may clobber x0-x18 at the start of the
finish_ret_to_user block, before enable_step_tsk consumes the flags
loaded into x1.
In preparation for this, let's load the flags into x19, which is
preserved across C function calls. This avoids a redundant reload of the
flags and ensures we operate on a consistent shapshot regardless.
There should be no functional change as a result of this patch. At this
point of the entry/exit paths we only need to preserve x28 (tsk) and the
sp, and x19 is free for this use.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: James Morse <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions