rCore-Tutorial icon indicating copy to clipboard operation
rCore-Tutorial copied to clipboard

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

Open mapleFU opened this issue 4 years ago • 2 comments
trafficstars

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

  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 avatar Feb 14 '21 15:02 mapleFU

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

wyfcyx avatar Feb 14 '21 15:02 wyfcyx

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

mapleFU avatar Feb 14 '21 15:02 mapleFU