MIPS: Loongson-3: Calculate ra properly when unwinding the stack
authorHuacai Chen <chenhc@lemote.com>
Mon, 21 Sep 2020 09:12:28 +0000 (17:12 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 21 Sep 2020 20:15:22 +0000 (22:15 +0200)
commitbc1c969f1158485f64e360659f755d19136bb5b0
treed9e0e0f9a5fdd6cc021b5134af8280fdf66d8c47
parent195615ecc8309082a524433cf552eda722b26c1c
MIPS: Loongson-3: Calculate ra properly when unwinding the stack

Loongson-3 has 16-bytes load/store instructions: gslq and gssq. This
patch calculate ra properly when unwinding the stack, if ra is saved
by gssq and restored by gslq.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/process.c