linux/arch/xtensa
Max Filippov 34a57be0f9 xtensa: fix xtensa_wsr always writing 0
commit a3d0245c58f962ee99d4440ea0eaf45fb7f5a5cc 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-15 14:18:03 +02:00
..
boot xtensa: virt: fix PCI IO ports mapping 2019-10-15 14:29:53 -07:00
configs xtensa: virt: add defconfig and DTS 2019-07-08 14:32:06 -07:00
include xtensa: fix xtensa_wsr always writing 0 2022-04-15 14:18:03 +02:00
kernel xtensa: fix stop_machine_cpuslocked call in patch_text 2022-04-15 14:18:03 +02:00
lib xtensa: abstract 'entry' and 'retw' in assembly code 2019-07-08 10:04:48 -07:00
mm xtensa: use CONFIG_USE_OF instead of CONFIG_OF 2021-10-13 10:08:18 +02:00
oprofile
platforms xtensa: xtfpga: Try software restart before simulating CPU reset 2021-10-27 09:54:25 +02:00
variants
Kconfig xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG 2021-09-12 08:56:39 +02:00
Kconfig.debug
Makefile xtensa: generate uapi header and syscall table header files 2018-12-02 23:45:41 -08:00