]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: clear all pending interrupts when booting
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Apr 2019 09:14:36 +0000 (11:14 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Thu, 25 Apr 2019 21:51:10 +0000 (14:51 -0700)
commit64220e52ca97afbea189ef422aea1f250107dc1b
treec1c45c1738eddba7c15f06e22bec302a30f47884
parent136b602b3410458b0f77a820eafaca86dd50139b
riscv: clear all pending interrupts when booting

Just in case an old interrupt is pending make sure we clear everything
asserted before this kernel started.  Based on similar M-mode code in
opensbi.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nick Kossifidis <mick@ics.forth.gr>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/head.S