-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rCore-Tutorial-Book-v3/chapter9/2device-driver-0 #196
Comments
有个错别字 |
这两个地址是有一个写错了么? |
这一段的最后有两个比较粗心的错误:应该是mstatus寄存器中的meie位,而不是mie寄存器,mie本身是mstatus的另一个位,控制全局中断是否开启;同理,最后sie寄存器也应改为sstatus寄存器。 |
@chestNutLsj 这段话并没有问题。MIE寄存器提供MEIE、MTIE和MSIE三个标志位分别用于控制M-mode级别外部中断、时钟中断和软中断是否有效。这段话所说的外部中断就是由MIE寄存器的MEIE位控制的。mstatus寄存器中也没有MEIE位,其中的MIE位是用来控制所有中断(包括外部中断、时钟中断和软中断)是否有效的。具体可查看RISC-V特权级规范(20211203)3.1.6节和3.1.9节。 |
Claim 0x0c20_0004 按优先级顺序返回下一个中断 读操作(Claim) |
外设平台 - rCore-Tutorial-Book-v3 3.6.0-alpha.1 文档
https://rcore-os.cn/rCore-Tutorial-Book-v3/chapter9/2device-driver-0.html
The text was updated successfully, but these errors were encountered: