mirror of
https://github.com/0xAX/linux-insides.git
synced 2024-12-22 22:58:08 +00:00
Update linux-bootstrap-1.md
This commit is contained in:
parent
f53722f8d5
commit
aedf30cbf4
@ -342,12 +342,12 @@ Let's look at implementation.
|
|||||||
Segment registers align
|
Segment registers align
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
First of all it ensures that `ds` and `es` segment registers point to the same address and disable interrupts with `cld` instruction:
|
First of all it ensures that `ds` and `es` segment registers point to the same address and disable interrupts with `cli` instruction:
|
||||||
|
|
||||||
```assembly
|
```assembly
|
||||||
movw %ds, %ax
|
movw %ds, %ax
|
||||||
movw %ax, %es
|
movw %ax, %es
|
||||||
cld
|
cli
|
||||||
```
|
```
|
||||||
|
|
||||||
As I wrote above, grub2 loads kernel setup code at `0x10000` address and `cs` at `0x1020` because execution doesn't start from the start of file, but from:
|
As I wrote above, grub2 loads kernel setup code at `0x10000` address and `cs` at `0x1020` because execution doesn't start from the start of file, but from:
|
||||||
|
Loading…
Reference in New Issue
Block a user