Skip to content

Commit 30941bc

Browse files
committed
Add infos about format of pages table en directory entries
1 parent fa35456 commit 30941bc

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

Chapter-8/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,21 @@ The translation of a linear address to a physical address is done in multiple st
2727

2828
![Address translation](./paging_memory.png)
2929

30+
#### Format for pages table and directory
31+
32+
The two types of entries (table and directory) look like the same. Only the field in gray will be used in our OS.
33+
34+
![Page directory entry](./page_directory_entry.png)
35+
36+
![Page table entry](./page_table_entry.png)
37+
38+
* `P`: indicate if the page or table is in physical memory
39+
* `R/W`: indicate if the page or table is accessible in writting (equals 1)
40+
* `U/S`: equals 1 to allow access to non-preferred tasks
41+
* `A`: indicate if the page or table was accessed
42+
* `D`: (only for pages table) indicate if the page was written
43+
* `PS` (only for pages directory) indicate the size of pages:
44+
* 0 = 4ko
45+
* 1 = 4mo
46+
47+

Chapter-8/page_directory_entry.png

1.96 KB
Loading

Chapter-8/page_table_entry.png

1.87 KB
Loading

0 commit comments

Comments
 (0)