Thanks to visit codestin.com
Credit goes to github.com

Skip to content

update ch2 #241

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

Merged
merged 4 commits into from
Apr 24, 2025
Merged

update ch2 #241

merged 4 commits into from
Apr 24, 2025

Conversation

guoraymon
Copy link
Contributor

No description provided.

@wyfcyx
Copy link
Collaborator

wyfcyx commented Apr 23, 2025

内核栈的相关改动OK;
sepc的改动的话,这个上下文应该是概括包括Exception和Interrupt在内的所有Trap的情况,这样改就不能描述Interrupt了。可以展开写一下Exception和Interrupt各是什么情况。

@guoraymon
Copy link
Contributor Author

内核栈的相关改动OK; sepc的改动的话,这个上下文应该是概括包括Exception和Interrupt在内的所有Trap的情况,这样改就不能描述Interrupt了。可以展开写一下Exception和Interrupt各是什么情况。

查阅 riscv-privileged 后发现官方描述是:
When a trap is taken into S-mode, sepc is written with the virtual address of the instruction that was
interrupted or that encountered the exception. Otherwise, sepc is never written by the implementation,
though it may be explicitly written by software.

因此章节还没涉及虚拟地址,修改为如下描述您看可以吗:
sepc 会被修改为中断或触发异常的指令的地址。

@wyfcyx
Copy link
Collaborator

wyfcyx commented Apr 24, 2025

我又稍微补充了一下。感谢对项目的贡献!

@wyfcyx wyfcyx merged commit 14f21cf into rcore-os:main Apr 24, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants