Comments (1)
@clamyang when you run the program, you'll see a section above the Page Table which says:
The format of the page table is simple:
The high-order (left-most) bit is the VALID bit.
⭐ If the bit is 1, the rest of the entry is the PFN.
If the bit is 0, the page is not valid.
This ultimately means that a page table entry contains two pieces of information - whether it is valid and then also the Physical Frame Number (PFN). Pay attention to the line above with the ⭐, it states that if the Most Significant Bit (MSB) is 1, then the rest of the number, excluding that bit, represents the PFN.
The example in the README 0x80000006
is represented in hexadecimal, and if we wrote this out in binary it would be 1000 0000 0000 0000 0000 0000 0000 0110
, which clearly shows that the MSB is 1 and therefore this page entry is valid.
To get the PFN, we ignore the MSB and look only at the rest of the number to get the PFN, which is 000 0000 0000 0000 0000 0000 0000 0110
. Since it is binary, we can safely ignore leading zeroes and write it more compactly as 0110
, or 0x6
in hexadecimal.
Hope that helps! 😸
from ostep-homework.
Related Issues (20)
- Chapter 44 ssd simulator - is it doing correct erase counts for direct mapping?
- Sisop
- The python code does not support for Python3. HOT 2
- when i execute process-run.py in shell, there is a problem. HOT 1
- Condition Variable - Incorrect Locking in main-two-cvs-while?
- Seed has no effect HOT 1
- There has a bug of BOOST in mlfq.py HOT 3
- Possible bug in segmentation simulator
- mlfq.py bug HOT 2
- Wrong argument name for ffs.py or typo in the book
- Possible bug in raid.py
- In "Why? Motivating The API", some problems
- Operating system hemework
- Can I complete my homework on the Win platform? HOT 2
- Questions about homework HOT 1
- Possible bug with `test` instruction
- Questions about running these programs HOT 1
- vm-mechanism: conflicting definitions of 'address space' HOT 1
- chapter 6 - Direct Execution homework: What is a good enough measurement?
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 ostep-homework.