Giter VIP home page Giter VIP logo

Comments (3)

eason-777 avatar eason-777 commented on May 18, 2024

我总把分页和虚拟内存绑在一起想,我的理解是“开启分页之后,虚拟内存也自动开启了”,不知道这种想法对不对。

from flash-linux0.11-talk.

eason-777 avatar eason-777 commented on May 18, 2024

破案了。“能直接用线性地址0x90000当作物理地址”的原因在“第9回”中解释了,因为linux0.11假设了内存空间只有16M,页目录表中4项,每张页表1024项,就能表达4 * 1024 * 1024 * (4 * 1024)=16M,恰好能使得线性地址和物理地址是一一对应的关系。
至于分页是否和虚拟内存总是绑定在一起,我认为答案是肯定的,因为分页就是为了突破物理内存的限制而产生,也就是说是为virtual memory而产生。虽然在此处可以忽略虚拟内存,因为分页之后的线性空间和物理空间大小一致了。

from flash-linux0.11-talk.

eason-777 avatar eason-777 commented on May 18, 2024

btw, 第9回中,“15M线性地址转换成物理地址”的例图应该是出错了,是13M。

from flash-linux0.11-talk.

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.