From 863a6b029731ec8c4d82695d466d1b0f1053716f Mon Sep 17 00:00:00 2001 From: ruthgrace Date: Sat, 31 Oct 2015 02:56:48 -0400 Subject: [PATCH] fixed grammar in linux-bootstrap-1.md, Segment registers align section --- 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 e0b3a34..46fa2e7 100644 --- a/Booting/linux-bootstrap-1.md +++ b/Booting/linux-bootstrap-1.md @@ -342,7 +342,7 @@ Let's look at the implementation. Segment registers align -------------------------------------------------------------------------------- -First of all it ensures that `ds` and `es` segment registers point to the same address and disables interrupts with `cli` instruction: +First of all it ensures that `ds` and `es` segment registers point to the same address and disables interrupts with the `cli` instruction: ```assembly movw %ds, %ax @@ -366,7 +366,7 @@ _start: lretw ``` -push `ds` value to stack, and address of [6](https://github.com/torvalds/linux/blob/master/arch/x86/boot/header.S#L494) label and execute `lretw` instruction. When we call `lretw`, it loads address of label `6` into the [instruction pointer](https://en.wikipedia.org/wiki/Program_counter) register and `cs` with value of `ds`. After this we will have `ds` and `cs` with the same values. +push `ds` value to the stack with the address of the [6](https://github.com/torvalds/linux/blob/master/arch/x86/boot/header.S#L494) label and execute `lretw` instruction. When we call `lretw`, it loads address of label `6` into the [instruction pointer](https://en.wikipedia.org/wiki/Program_counter) register and `cs` with the value of `ds`. After this `ds` and `cs` will have the same values. Stack Setup --------------------------------------------------------------------------------