linux-brain/arch/xtensa/kernel
Max Filippov b6e7dbf0ed xtensa: move coprocessor_flush to the .text section
commit ab5eb336411f18fd449a1fb37d36a55ec422603f upstream.

coprocessor_flush is not a part of fast exception handlers, but it uses
parts of fast coprocessor handling code that's why it's in the same
source file. It uses call0 opcode to invoke those parts so there are no
limitations on their relative location, but the rest of the code calls
coprocessor_flush with call8 and that doesn't work when vectors are
placed in a different gigabyte-aligned area than the rest of the kernel.

Move coprocessor_flush from the .exception.text section to the .text so
that it's reachable from the rest of the kernel with call8.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-07 14:47:42 +02:00
..
syscalls clone3-v5.3 2019-07-11 10:09:44 -07:00
.gitignore xtensa: tell git to ignore generated files 2013-06-05 10:14:19 -07:00
Makefile xtensa: implement jump_label support 2018-12-20 14:44:38 -08:00
align.S xtensa: clean up word alignment macros in assembly code 2017-12-10 14:48:53 -08:00
asm-offsets.c xtensa: add missing exclusive access state management 2020-08-21 13:05:24 +02:00
coprocessor.S xtensa: move coprocessor_flush to the .text section 2021-04-07 14:47:42 +02:00
entry.S xtensa: fix system_call interaction with ptrace 2020-10-01 13:17:22 +02:00
head.S xtensa: clean up PS_WOE_BIT usage 2019-09-01 13:11:57 -07:00
hw_breakpoint.c xtensa: replace variant/core.h with asm/core.h 2019-05-06 17:48:55 -07:00
irq.c xtensa: drop variant IRQ support 2018-08-20 12:28:05 -07:00
jump_label.c jump_label: move 'asm goto' support test to Kconfig 2019-01-06 09:46:51 +09:00
mcount.S xtensa: abstract 'entry' and 'retw' in assembly code 2019-07-08 10:04:48 -07:00
module.c xtensa: clean up custom-controlled debug output 2017-12-16 22:37:08 -08:00
mxhead.S xtensa: drop unused sections and remapped reset handlers 2015-11-03 17:19:39 +03:00
pci-dma.c dma-mapping: always use VM_DMA_COHERENT for generic DMA remap 2019-09-04 11:13:20 +02:00
pci.c xtensa: use generic pcibios_set_master and pcibios_enable_device 2019-06-16 23:31:29 -07:00
perf_event.c xtensa: fix xtensa_pmu_setup prototype 2020-08-21 13:05:24 +02:00
platform.c xtensa: drop dead PCI support code 2019-06-16 23:31:28 -07:00
process.c xtensa: Implement copy_thread_tls 2020-01-14 20:08:35 +01:00
ptrace.c xtensa: fix system_call interaction with ptrace 2020-10-01 13:17:22 +02:00
s32c1i_selftest.c xtensa: move S32C1I self-test to a separate file 2016-11-16 15:08:28 -08:00
setup.c xtensa: update *pos in cpuinfo_op.next 2020-07-29 10:18:26 +02:00
signal.c xtensa: add support for call0 ABI in userspace 2019-09-01 13:11:57 -07:00
smp.c xtensa: replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC 2019-05-14 19:52:50 -07:00
stacktrace.c xtensa: add support for call0 ABI in userspace 2019-09-01 13:11:57 -07:00
syscall.c xtensa: implement syscall tracepoints 2018-12-17 13:50:25 -08:00
time.c xtensa: clean up arch/xtensa/kernel/time.c 2019-02-07 12:16:49 -08:00
traps.c xtensa: add support for call0 ABI in userspace 2019-09-01 13:11:57 -07:00
vectors.S xtensa: use call instead of callx in assembly code 2017-12-10 14:48:52 -08:00
vmlinux.lds.S xtensa: replace variant/core.h with asm/core.h 2019-05-06 17:48:55 -07:00
xtensa_ksyms.c xtensa: fix __sync_fetch_and_{and,or}_4 declarations 2020-07-29 10:18:26 +02:00