+31
−16
Loading
Sunway inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB73UR -------------------------------- The position is not reserved for $31 in pt_regs. An overflow will occur during storing in do_entUna, which could corrupt PC. A judgement statement is used to set reg_addr, and (reg->regs[reg]) has been changed to *reg_addr. Signed-off-by:Gu Yuchen <guyuchen@wxiat.com> Reviewed-by:
He Sheng <hesheng@wxiat.com> Signed-off-by:
Gu Zitao <guzitao@wxiat.com>