• Max Filippov's avatar
    xtensa: fix a7 clobbering in coprocessor context load/store · 839769c3
    Max Filippov authored
    Fast coprocessor exception handler saves a3..a6, but coprocessor context
    load/store code uses a4..a7 as temporaries, potentially clobbering a7.
    'Potentially' because coprocessor state load/store macros may not use
    all four temporary registers (and neither FPU nor HiFi macros do).
    Use a3..a6 as intended.
    
    Cc: stable@vger.kernel.org
    Fixes: c658eac6 ("[XTENSA] Add support for configurable registers and coprocessors")
    Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
    839769c3
coprocessor.S 5.29 KB