Skip to content

Commit

Permalink
Fix error in non-page table mapping size.
Browse files Browse the repository at this point in the history
If the page size is 4KiB and the address space is 4GiB, this means there are
1048576 possible pages, each of which use 4 bytes to store an address, meaning
space taken is 4MiB not 1MiB.
  • Loading branch information
lorenzo-stoakes committed May 14, 2016
1 parent 19932a2 commit 992a740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 3.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ flags, see the [PAE wikipedia article][PAE] for more details.)

* Virtual memory is divided into separate directories so we can have a 'sparse'
set of data structures for each process. Each PGD takes up a page of memory
(4KiB on i386), rather than the 1MiB it would take to map the whole 4GiB
(4KiB on i386), rather than the 4MiB it would take to map the whole 4GiB
address space if it were only a single list.

## 3.1 Describing the Page Directory
Expand Down
2 changes: 1 addition & 1 deletion all.md
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ flags, see the [PAE wikipedia article][PAE] for more details.)

* Virtual memory is divided into separate directories so we can have a 'sparse'
set of data structures for each process. Each PGD takes up a page of memory
(4KiB on i386), rather than the 1MiB it would take to map the whole 4GiB
(4KiB on i386), rather than the 4MiB it would take to map the whole 4GiB
address space if it were only a single list.

### 3.1 Describing the Page Directory
Expand Down

0 comments on commit 992a740

Please sign in to comment.