From 8c76586ebdfdbc98e1016b22233858aa8583a2e1 Mon Sep 17 00:00:00 2001 From: Quentin Perez Date: Sun, 20 Sep 2015 20:51:17 +0200 Subject: [PATCH] missing register --- 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 2ec9b27..e223c5d 100644 --- a/Booting/linux-bootstrap-1.md +++ b/Booting/linux-bootstrap-1.md @@ -324,7 +324,7 @@ Actually this is the first code that runs (aside from the previous jump instruct It means that segment registers will have following values after kernel setup starts: ``` -fs = es = ds = ss = 0x1000 +gs = fs = es = ds = ss = 0x1000 cs = 0x1020 ``` @@ -347,7 +347,7 @@ First of all it ensures that `ds` and `es` segment registers point to the same a ```assembly movw %ds, %ax movw %ax, %es - cli + cli ``` As I wrote earlier, grub2 loads kernel setup code at address `0x10000` and `cs` at `0x1020` because execution doesn't start from the start of file, but from: