Skip to content

Commit 06b0453

Browse files
committed
Update README.md
1 parent 0096079 commit 06b0453

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

Chapter-8/README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ The two types of entries (table and directory) look like the same. Only the fiel
4141
* `A`: indicate if the page or table was accessed
4242
* `D`: (only for pages table) indicate if the page was written
4343
* `PS` (only for pages directory) indicate the size of pages:
44-
* 0 = 4ko
45-
* 1 = 4mo
44+
* 0 = 4kb
45+
* 1 = 4mb
4646

47-
**Note:** Physical addresses in the pages diretcory or pages table are written using 20 bits because these addresses are aligned on 4ko, so the last 12bits should be equal to 0.
47+
**Note:** Physical addresses in the pages diretcory or pages table are written using 20 bits because these addresses are aligned on 4kb, so the last 12bits should be equal to 0.
4848

4949
* A pages directory or pages table used 1024*4 = 4096 bytes = 4k
50-
* A pages table can address 1024 * 4k = 4 Mo
51-
* A pages directory can address 1024 * (1024 * 4k) = 4 Go
50+
* A pages table can address 1024 * 4k = 4 Mb
51+
* A pages directory can address 1024 * (1024 * 4k) = 4 Gb
5252

5353
#### How to enable pagination?
5454

@@ -63,5 +63,13 @@ asm(" mov %%cr0, %%eax; \
6363

6464
But before, we need to initialize our pages directory with at least one pages table.
6565

66+
#### First Implementation: Identity Mapping
67+
68+
For a first implementation, we will not create user task. The page will apply only to the kernel as the first 4 MB of virtual memory coincide with the first 4 MB of physical memory:
69+
70+
71+
72+
73+
6674

6775

0 commit comments

Comments
 (0)