1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2025-01-22 21:51:13 +00:00

Update linux-bootstrap-5.md

This commit is contained in:
Ding Fei 2017-09-18 11:08:19 +08:00 committed by GitHub
parent 2bbbbb9524
commit 28707551b5

View File

@ -38,7 +38,7 @@ ENTRY(startup_64)
movl %eax, %gs
```
in the beginning of the `startup_64`. All segment registers besides `cs` now point to the `ds` which is `0x18` (if you don't understand why it is `0x18`, read the previous part).
in the beginning of the `startup_64`. All segment registers except `cs` are cleared.
The next step is computation of difference between where the kernel was compiled and where it was loaded: