Comments (2)
对的,PC 的值是保存在 sepc 中,stvec 保存的应该是 trampoline.S 的起始地址。
from mit6.s081.
确实。教材4.1:
stvec
: The kernel writes the address of its trap handler here; the RISC-V jumps here to handle a trap.sepc
: When a trap occurs, RISC-V saves the program counter here (since the pc is then overwritten with stvec). The sret (return from trap) instruction copies sepc to the pc. The kernel can write to sepc to control where sret goes.
from mit6.s081.
Related Issues (20)
- 关于内核页表的问题 HOT 4
- 6.4节的翻译问题 HOT 1
- Lec13.4 文字错误
- Lec14.2 文字错误
- Lec15.4 文字错误
- Lec16.5 文字问题
- Lec16.7 文字问题
- Lec15.8 文字问题
- 不太理解这一部分什么意思 HOT 1
- 请问这门课的视频是在哪里可以找到呢? HOT 1
- 11.4 xv6线程切换 这一节有个问答有疑问
- 6.s081
- lec05的5.3-risc-v-and-x86图片显示异常
- 关于字幕可否参考问题
- lec05 5.4 RISC-V寄存器
- 为什么没有lec02? HOT 1
- 希望可以提供PDF的下载方式 HOT 1
- 能否提供暗色模式切换按钮
- Typo in 14.4 inode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mit6.s081.