Skip to content

Commit

Permalink
boot: fix indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
  • Loading branch information
0xAX committed Jun 17, 2018
1 parent 9d2aa86 commit 01ce518
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Booting/README.md
Expand Up @@ -9,4 +9,4 @@ This chapter describes the linux kernel boot process. Here you will see a series
* [Kernel Decompression](linux-bootstrap-5.md) - describes preparation before kernel decompression and details of direct decompression.
* [Kernel random address randomization](linux-bootstrap-6.md) - describes randomization of the Linux kernel load address.

This chapter coincides with with `Linux kernel v4.16`.
This chapter coincides with with `Linux kernel v4.17`.
10 changes: 5 additions & 5 deletions Booting/linux-bootstrap-5.md
Expand Up @@ -67,12 +67,12 @@ In the next step we can see setup of the stack pointer, resetting of the flags r
```assembly
leaq boot_stack_end(%rbx), %rsp
leaq gdt(%rip), %rax
movq %rax, gdt64+2(%rip)
lgdt gdt64(%rip)
leaq gdt(%rip), %rax
movq %rax, gdt64+2(%rip)
lgdt gdt64(%rip)
pushq $0
popfq
pushq $0
popfq
```

If you look at the Linux kernel source code after `lgdt gdt64(%rip)` instruction, you will see that there is some additional code. This code builds trampoline to enable [5-level pagging](https://lwn.net/Articles/708526/) if need. We will consider only 4-level paging in this books, so this code will be omitted.
Expand Down

0 comments on commit 01ce518

Please sign in to comment.