From 81777efad4c3220add44bdac5a33ddbeb4b72e76 Mon Sep 17 00:00:00 2001 From: nimisolo Date: Tue, 28 Jul 2015 11:32:13 +0800 Subject: [PATCH] It should be "cld" here :) --- Booting/linux-bootstrap-1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Booting/linux-bootstrap-1.md b/Booting/linux-bootstrap-1.md index 2ccbad8..80f8182 100644 --- a/Booting/linux-bootstrap-1.md +++ b/Booting/linux-bootstrap-1.md @@ -342,12 +342,12 @@ Let's look at implementation. Segment registers align -------------------------------------------------------------------------------- -First of all it ensures that `ds` and `es` segment registers point to the same address and enables interrupts with `sti` instruction: +First of all it ensures that `ds` and `es` segment registers point to the same address and disable interrupts with `cld` instruction: ```assembly movw %ds, %ax movw %ax, %es - sti + cld ``` 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: