OSDN Git Service

MIPS: context switch: Use save/restore instead of set/clear for Status.CU2
authorHuacai Chen <chenhc@lemote.com>
Mon, 21 Sep 2020 09:12:26 +0000 (17:12 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 21 Sep 2020 20:14:47 +0000 (22:14 +0200)
commit4e43e5df5850ca8300180f422727e42a5065aaaa
treebfede98a2cccf4cfb275519cbb321b946005f668
parent6fa573a3e307af923c3220beeba65e8f566e94c2
MIPS: context switch: Use save/restore instead of set/clear for Status.CU2

Some processors (such as Loongson-3) need to enable CU2 in kernel mode,
current set/clear method will lose Status.CU2 during context switching,
so use save/restore method instead.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/switch_to.h