linux-stable/arch/xtensa/kernel
Max Filippov 0e60f0b758 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>
2024-04-02 19:42:35 -07:00
..
syscalls lsm/stable-6.8 PR 20240105 2024-01-09 12:57:46 -08:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile kbuild: use obj-y instead extra-y for objects placed at the head 2022-10-02 18:04:05 +09:00
align.S xtensa: fix unaligned and load/store configuration interaction 2023-07-10 21:41:04 -07:00
asm-offsets.c xtensa: improve call0 ABI probing 2022-05-17 03:35:43 -07:00
coprocessor.S xtensa: support coprocessors on SMP 2022-05-01 19:51:23 -07:00
entry.S RCU pull request for v5.20 (or whatever) 2022-08-02 19:12:45 -07:00
head.S xtensa: use register window specific opcodes only when present 2021-10-18 22:19:35 -07:00
hibernate.c xtensa: add hibernation support 2022-05-01 19:51:24 -07:00
hw_breakpoint.c xtensa: hw_breakpoint: include header for missing prototype 2023-09-20 05:03:21 -07:00
irq.c xtensa: irq: include <asm/traps.h> 2023-09-20 05:03:18 -07:00
jump_label.c xtensa: patch_text: Fixup last cpu should be master 2022-04-13 03:36:34 -07:00
mcount.S xtensa: add asm-prototypes.h 2023-06-12 19:48:57 -07:00
module.c
mxhead.S xtensa: add missing XCHAL_HAVE_WINDOWED check 2022-03-09 13:59:15 -08:00
pci-dma.c dma-mapping: merge <linux/dma-noncoherent.h> into <linux/dma-map-ops.h> 2020-10-06 07:07:06 +02:00
pci.c xtensa: fix warning comparing pointer to 0 2021-04-04 15:39:02 -07:00
perf_event.c xtensa: PMU: fix base address for the newer hardware 2023-08-27 19:22:56 -07:00
platform.c xtensa: clean up default platform functions 2023-06-12 19:48:56 -07:00
process.c xtensa: fix MAKE_PC_FROM_RA second argument 2024-04-02 19:42:35 -07:00
ptrace.c xtensa: ptrace: add prototypes to <asm/ptrace.h> 2023-09-20 05:03:19 -07:00
s32c1i_selftest.c xtensa: clean up exception handler prototypes 2022-05-01 19:51:22 -07:00
setup.c vgacon, arch/*: remove unused screen_info definitions 2023-10-17 10:17:02 +02:00
signal.c xtensa: signal: include headers for function prototypes 2023-09-20 05:03:19 -07:00
smp.c xtensa: smp: add headers for missing function prototypes 2023-09-20 05:03:20 -07:00
stacktrace.c xtensa: fix MAKE_PC_FROM_RA second argument 2024-04-02 19:42:35 -07:00
syscall.c xtensa: remove vma linked list walks 2022-09-26 19:46:20 -07:00
time.c xtensa: drop platform_heartbeat 2023-06-12 19:48:55 -07:00
traps.c xtensa: traps: add <linux/cpu.h> for function prototype 2023-09-20 05:03:20 -07:00
vectors.S xtensa: rename PT_SIZE to PT_KERNEL_SIZE 2022-03-07 12:02:48 -08:00
vmlinux.lds.S xtensa: add XIP-aware MTD support 2023-08-28 18:25:23 -07:00
xtensa_ksyms.c xtensa: add asm-prototypes.h 2023-06-12 19:48:57 -07:00