From a1d744cf5af66ff677f61c36e4e538afee68b0bd Mon Sep 17 00:00:00 2001 From: Amit Levy Date: Sun, 15 Nov 2015 13:55:58 -0500 Subject: [PATCH] Fix typo in "Entering long mode" I think there is a typo in the section describing how the P2 mapping is set up. The corresponding code sets _P2_'s third entry. --- posts/2015-08-25-entering-longmode.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts/2015-08-25-entering-longmode.md b/posts/2015-08-25-entering-longmode.md index 86d7d08d..007d36c3 100644 --- a/posts/2015-08-25-entering-longmode.md +++ b/posts/2015-08-25-entering-longmode.md @@ -257,7 +257,7 @@ setup_page_tables: ``` We just set the present and writable bits (`0b11` is a binary number) in the aligned P3 table address and move it to the first 4 bytes of the P4 table. Then we do the same to link the first P3 entry to the `p2_table`. -Now we need to map P2's first entry to a huge page starting at 0, P2's second entry to a huge page starting at 2MiB, P3's third entry to a huge page starting at 4MiB, and so on. It's time for our first (and only) assembly loop: +Now we need to map P2's first entry to a huge page starting at 0, P2's second entry to a huge page starting at 2MiB, P2's third entry to a huge page starting at 4MiB, and so on. It's time for our first (and only) assembly loop: ```nasm setup_page_tables: