Skip to content

Commit 68726ca

Browse files
authored
fix: paging address space calculation (#98)
1 parent 8969dac commit 68726ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

04_Memory_Management/03_Paging.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ If we are using 2MB pages this is how the address will be handled by the paging
226226
* Bits 29 ... 21 are the PD entry.
227227
* Offset in the page directory.
228228
229-
Every table has 512 elements, so we have an address space of $2^{512}*2^{512}*2^{512}*0x200000$ (that is the page size)
229+
Every table has 512 elements, so we have an address space of $512*512*512*0x200000$ (that is the page size)
230230
231231
### Address translation Using 4KB Pages
232232
@@ -246,7 +246,7 @@ If we are using 4kB pages this is how the address will be handled by the paging
246246
* Offset in the page table.
247247
248248
Same as above:
249-
Every table has 512 elements, so we have an address space of: $2^{512}*2^{512}*2^{512}*2^{512}*0x1000$ (that is the page size)
249+
Every table has 512 elements, so we have an address space of: $512*512*512*512*0x1000$ (that is the page size)
250250
251251
## Page Fault
252252

99_Appendices/I_Acknowledgments.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ In no particular order:
2020
- @AnErrupTion ([https://github.com/AnErrupTion](https://github.com/AnErrupTion))
2121
- @MRRcode979 ([https://github.com/MRRcode979](https://github.com/MRRcode979))
2222
- @Hqnnqh ([https://github.com/Hqnnqh](https://github.com/Hqnnqh))
23+
- @malletgaetan ([https://github.com/malletgaetan](https://github.com/malletgaetan))

0 commit comments

Comments
 (0)