riscv: add support smp_pause / smp_resume
commit7c9540ea1d46a776ec92b58f99074f51b430f9bb
authorXiang Wang <wxjstz@126.com>
Thu, 11 Oct 2018 09:30:37 +0000 (11 17:30 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 5 Nov 2018 09:03:40 +0000 (5 09:03 +0000)
treedc9b3d25062791f40edd72ddcccaa3dd0171b85c
parentc85f9c589726caba41970d5fbdadd8a147dd7956
riscv: add support smp_pause / smp_resume

See https://doc.coreboot.org/arch/riscv/ we know that we need to execute
smp_pause at the start of each stage and smp_resume at the end of each
stage.

Change-Id: I6f8159637bfb15f54f0abeb335de2ba6e9cf82fb
Signed-off-by: Xiang Wang <wxjstz@126.com>
Reviewed-on: https://review.coreboot.org/29023
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Philipp Hug <philipp@hug.cx>
src/arch/riscv/Kconfig
src/arch/riscv/Makefile.inc
src/arch/riscv/include/arch/smp/smp.h [new file with mode: 0644]
src/arch/riscv/include/mcall.h
src/arch/riscv/smp.c [new file with mode: 0644]
src/soc/sifive/fu540/Kconfig
src/soc/sifive/fu540/Makefile.inc
src/soc/sifive/fu540/clint.c
src/soc/ucb/riscv/Kconfig
src/soc/ucb/riscv/Makefile.inc
src/soc/ucb/riscv/ipi.c [moved from src/soc/sifive/fu540/include/soc/clint.h with 70% similarity]