From 7a92195259483866a6157b4617f57018c2f1e183 Mon Sep 17 00:00:00 2001 From: Alexander Kuleshov Date: Sun, 24 Jan 2016 00:05:15 +0600 Subject: [PATCH] Finish with fourth part of booting process --- Booting/linux-bootstrap-4.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Booting/linux-bootstrap-4.md b/Booting/linux-bootstrap-4.md index 6f79a27..d6d39f0 100644 --- a/Booting/linux-bootstrap-4.md +++ b/Booting/linux-bootstrap-4.md @@ -497,7 +497,7 @@ Here we do almost the same as in the previous example, all entries will be with That's all. All preparation are finished and now we can see transition to the long mode. -Transition to long mode +Transition to the 64-bit mode -------------------------------------------------------------------------------- First of all we need to set the `EFER.LME` flag in the [MSR](http://en.wikipedia.org/wiki/Model-specific_register) to `0xC0000080`: @@ -525,13 +525,13 @@ After this we push this address to the stack and enable paging by setting `PG` a movl %eax, %cr0 ``` -and call: +and execute: ```assembly lret ``` -Remember that we pushed the address of the `startup_64` function to the stack in the previous step, and after the `lret` instruction, the CPU extracts the address of it and jumps there. +instruction. Remember that we pushed the address of the `startup_64` function to the stack in the previous step, and after the `lret` instruction, the CPU extracts the address of it and jumps there. After all of these steps we're finally in 64-bit mode: