GithubHelp home page GithubHelp logo

6.4节的翻译问题 about mit6.s081 HOT 1 CLOSED

huihongxiao avatar huihongxiao commented on August 20, 2024
6.4节的翻译问题

from mit6.s081.

Comments (1)

huihongxiao avatar huihongxiao commented on August 20, 2024

原文中有这么一段话

这里的控制是通过STVEC寄存器完成的,这是一个只能在supervisor mode下读写的特权寄存器。在从用户空间进入到内核空间之前,内核会设置好STVEC寄存器指向内核希望trap代码运行的位置。

这里说STVEC寄存器是内核设置的,那么是不是应该是“从内核空间进入到用户空间之前,内核会设置好STVEC寄存器”?

的确。因为用户空间在最最最开始是从内核空间的代码进入的,在这个时候,内核会设置STVEC寄存器,这样当用户空间代码需要进入trap时,PC会跳转到STVEC寄存器的地址。

还有一处可能有问题的地方

切换page table的代价比较高,如果ecall打包完成了这部分工作,那就不可能对一些系统调用进行改进,使其不用在不必要的场景切换page table。

这里的这个不可能似乎有些不通畅?

不可能改成了不能

from mit6.s081.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.