MIPS: Loongson64: SMP: Fix up play_dead jump indicator
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 3 Nov 2020 07:12:04 +0000 (15:12 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 11 Nov 2020 22:53:13 +0000 (23:53 +0100)
commit381ad3843b26ec9b461e7973729ef64b36ed4627
tree9adc11a4903710b321516e37d721834a77509625
parentfed4955f304eb62acfdf86ecf05ea164856e09d8
MIPS: Loongson64: SMP: Fix up play_dead jump indicator

In play_dead function, the whole 64-bit PC mailbox was used as a indicator
to determine if the master core had written boot jump information.

However, after we introduced CSR mailsend, the hardware will not guarante
an atomic write for the 64-bit PC mailbox. Thus we have to use the lower
32-bit which is written at the last as the jump indicator instead.

Signed-off-by: Lu Zeng <zenglu@loongson.cn>
Signed-off-by: Jun Yi <yijun@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/loongson64/smp.c