diff options
author | Max Filippov | 2024-02-17 05:15:42 -0800 |
---|---|---|
committer | Max Filippov | 2024-04-02 19:42:35 -0700 |
commit | 0e60f0b75884677fb9f4f2ad40d52b43451564d5 (patch) | |
tree | cbda30782a8b37ff846b105448cef69f6e03b061 /drivers/char | |
parent | e8f897f4afef0031fe618a8e94127a0934896aba (diff) |
xtensa: fix MAKE_PC_FROM_RA second argument
Xtensa has two-argument MAKE_PC_FROM_RA macro to convert a0 to an actual
return address because when windowed ABI is used call{,x}{4,8,12}
opcodes stuff encoded window size into the top 2 bits of the register
that becomes a return address in the called function. Second argument of
that macro is supposed to be an address having these 2 topmost bits set
correctly, but the comment suggested that that could be the stack
address. However the stack doesn't have to be in the same 1GByte region
as the code, especially in noMMU XIP configurations.
Fix the comment and use either _text or regs->pc as the second argument
for the MAKE_PC_FROM_RA macro.
Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions