Unverified Commit df16c40c authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Palmer Dabbelt
Browse files

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

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarNick Kossifidis <mick@ics.forth.gr>
Reviewed-by: default avatarAtish Patra <atish.patra@wdc.com>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 09afac77
......@@ -22,8 +22,9 @@
/* Mask all interrupts */
/* Mask and clear all interrupts */
csrw sie, zero
csrw sip, zero
/* Load the global pointer */
.option push
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment