提交 856ad744 编写于 作者: Y Yinan Xu

extintr: manually enable the WFI instruction

上级 465c6d39
......@@ -188,6 +188,8 @@ void external_intr() {
asm volatile("csrs sie, %0" : : "r"((1 << 9)));
asm volatile("csrs sstatus, 2");
plic_intr_init();
// enable WFI instruction
asm volatile("csrs 0x5c4, %0" : : "r"((0x7)));
// trigger interrupts
// s-mode
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册