linux-stable/arch/xtensa
Max Filippov 85814e6461 xtensa: fix xtensa_wsr always writing 0
commit a3d0245c58 upstream.

The commit cad6fade6e ("xtensa: clean up WSR*/RSR*/get_sr/set_sr")
replaced 'WSR' macro in the function xtensa_wsr with 'xtensa_set_sr',
but variable 'v' in the xtensa_set_sr body shadowed the argument 'v'
passed to it, resulting in wrong value written to debug registers.

Fix that by removing intermediate variable from the xtensa_set_sr
macro body.

Cc: stable@vger.kernel.org
Fixes: cad6fade6e ("xtensa: clean up WSR*/RSR*/get_sr/set_sr")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-08 14:23:03 +02:00
..
boot xtensa: remove unneeded export in boot-elf/Makefile 2021-04-04 15:39:02 -07:00
configs drivers/char: remove /dev/kmem for good 2021-05-07 00:26:34 -07:00
include xtensa: fix xtensa_wsr always writing 0 2022-04-08 14:23:03 +02:00
kernel xtensa: fix stop_machine_cpuslocked call in patch_text 2022-04-08 14:23:03 +02:00
lib xtensa: propagate the calling conventions change down into csum_partial_copy_generic() 2020-08-20 15:45:21 -04:00
mm xtensa: define update_mmu_tlb function 2022-04-08 14:23:03 +02:00
platforms xtensa: xtfpga: Try software restart before simulating CPU reset 2021-10-05 12:19:05 -07:00
variants xtensa: add test_kc705_be variant 2018-08-20 12:34:45 -07:00
Kbuild xtensa: move core-y in arch/xtensa/Makefile to arch/xtensa/Kbuild 2021-08-11 11:37:13 -07:00
Kconfig Tracing updates for 5.15: 2021-09-05 11:50:41 -07:00
Kconfig.debug xtensa: make stack dump size configurable 2019-11-26 11:33:39 -08:00
Makefile xtensa: move core-y in arch/xtensa/Makefile to arch/xtensa/Kbuild 2021-08-11 11:37:13 -07:00