Skip to content
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

关于 Lab4 "内核栈" 寄存器数目的一些疑问 #134

Open
mapleFU opened this issue Feb 14, 2021 · 2 comments
Open

关于 Lab4 "内核栈" 寄存器数目的一些疑问 #134

mapleFU opened this issue Feb 14, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@mapleFU
Copy link
Contributor

mapleFU commented Feb 14, 2021

需要保存的寄存器应该是:

  1. x1
  2. 原来的 sp,即 x2
  3. x3-x32 的通用寄存器
  4. sstatus
  5. sepc

上述应该是 32 + 2 == 34 个寄存器

https://rcore-os.github.io/rCore-Tutorial-deploy/docs/lab-4/guide/part-5.html 这里,目前版本似乎给了36,有什么特殊原因吗?

@mapleFU mapleFU added the enhancement New feature or request label Feb 14, 2021
@wyfcyx
Copy link
Collaborator

wyfcyx commented Feb 14, 2021

目前lab4分支上最新的代码确实是34,应该是文档还没更新吧。

@mapleFU
Copy link
Contributor Author

mapleFU commented Feb 14, 2021

@wyfcyx Hi, 我在 #135 修了一下这个,可以看一看嘛(。ì _ í。)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants