Skip to content

Commit 7d5e461

Browse files
Fix some typos in paging section. (#128)
* Fix typo on line 201 of paging section "page table" instead of "page teble" * Update 03_Paging.md Add a missing "it" in "if it is 0". Split the sentence into two parts, so that its easier to read. * Update I_Acknowledgments.md
1 parent 4bc1478 commit 7d5e461

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

04_Memory_Management/03_Paging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Below is a list of all the fields present in the table entries, with an explanat
198198
* **User/Supervisor**: It describes the privilege level required to access this address. If clear the page has the supervisor level, while if it is set the level is user. The cpu identifies supervisor/user level by checking the CPL (current protection level, set by the segment registers). If it is less than 3 then the accesses are made in supervisor mode, if it's equal to 3 they are made in user mode.
199199
* **PWT** (Page Level Write Through): Controls the caching policy (write-through or write-back). I usually leave it to 0, for more information refer to the Intel Developer Manuals.
200200
* **PCD** (Page Level Cache Disable): Controls the caching of individual pages or tables. I usually leave it to 0, for more information refer to the Intel Developer Manuals.
201-
* **A** (Accessed): This value is set by the CPU, if is 0 it means the page hasn't been accessed yet. It's set when the page (or page teble) has been accessed since this bit was last cleared.
201+
* **A** (Accessed): This value is set by the CPU. If it is 0, it means the page hasn't been accessed yet. It's set when the page (or page table) has been accessed since this bit was last cleared.
202202
* **D** (Dirty): If set, indicates that a page has been written to since last cleared. This flag is supposed to only apply to page tables, but some emulators will set it on other levels as well. This flag and the accessed flag are provided for being use by the memory management software, the CPU only set it when its value is 0. Otherwise, is up to the operating system's memory manager to decide if it has to be cleared or not. Ignoring them is also fine.
203203
* **PS** (Page Size): Reserved in the pml4, if set on the PDPR it means address translation stops at this level and is mapping a 1GB page. Check for 1gb page support before using this. More commonly this can be set on the PD entry to stop translation at that level, and map a 2MB page.
204204
* **PAT** (Page Attribute Table Index) only for the page table: It selects the PAT entry (in combination with the PWT and PCD bits above), refer to the Intel Manual for a more detailed explanation.

99_Appendices/I_Acknowledgments.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ In no particular order:
2727
- @AntoninRuan ([https://github.com/AntoninRuan](https://github.com/AntoninRuan))
2828
- @sudw1n ([https://github.com/sudw1n](https://github.com/sudw1n))
2929
- @alexdev404 ([https://github.com/AlexDev404](https://github.com/AlexDev404))
30+
- @frischerZucker ([https://github.com/frischerZucker](https://github.com/frischerZucker))

0 commit comments

Comments
 (0)